chen0520
V2EX  ›  macOS

mac os 下如何保证断电重启应用保活

  •  
  •   chen0520 · Dec 20, 2024 · 2446 views
    This topic created in 512 days ago, the information mentioned may be changed or developed.

    目前需要常驻运行一个 utm 的虚拟机,现在碰到 2 个问题 1.设置了/Library/LaunchDaemon 下的启动脚本,但是必须要登录过后才能启动,猜测是否是因为 utm 是图形化程序,阻塞了? 2.脚本判断了 -d /Volumes/nvme 这个磁盘存在后再启动 utm 虚拟机(镜像放在了外置磁盘),但是还是有很大的概率出现镜像大小为 0 ,无法启动的情况。

    PS:或者有没有一个重启后直接登陆的方案? 求助各位 macos 大佬

    4 replies    2024-12-23 09:52:10 +08:00
    di11wei
        1
    di11wei  
       Dec 20, 2024 via iPhone
    设置-账户,里面可以设置自动登录不需要密码
    https://support.apple.com/zh-cn/102316

    是这个意思不
    codehz
        2
    codehz  
       Dec 20, 2024
    开机没登录的话磁盘加密都没解开,根本没法读取内容
    ihwbunny
        3
    ihwbunny  
       Dec 21, 2024
    2. 可以用 df 命令来判断
    chen0520
        4
    chen0520  
    OP
       Dec 23, 2024
    @codehz 没加密,总之比较诡异,我试了下是 utmctl 命令的问题,很奇怪
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2969 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 04:57 · PVG 12:57 · LAX 21:57 · JFK 00:57
    ♥ Do have faith in what you're doing.