升级 Yosemite 后开机服务无法自行启动

Delbert 发布于 2014年10月24日
shippo7 等1人欣赏。

在10.9下正常的校园网客户端iNode升级后无法联网。经过几天的搜索,终于找到解决方案:

sudo /Library/StartupItems/iNodeAuthService/iNodeAuthService start

来启动服务。每次开机手动执行这个命令很麻烦,而且 StartupItems 本身就是自启动服务的路径。

已经修复磁盘权限,并将客户端删除重新安装,包括上面这个路径重新安装,重启后还是需要手动执行上述命令,再启动客户端才可以。

根据网上找到的资料,只要在 StartupItems路径下,.plist和脚本对应就可以自启动的。不知道各位有什么解决办法。

共2条回复
Delbert 回复于 2014年10月24日

根据 SOF 上 MySQL 的问题和 <launchd.info> 的说明,自己写了plist,之后执行sudo launchctl load -w /path/to/plist,重启后还是不行。但是再load plist就提示已经运行了。

launchd plist如下:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
    <dict>
        <key>Label</key>
        <string>com.h3c.iNode</string>
        <key>Program</key>
        <string>/Library/StartupItems/iNodeAuthService/iNodeAuthService</string>
        <key>RunAtLoad</key>
        <true/>
    </dict>
</plist>

不知道各位有什么解决办法。

Delbert 回复于 2014年10月24日

自己解决了: http://delbert.me/archives/701.html

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
    <dict>
        <key>Label</key>
        <string>com.h3c.iNode</string>
        <key>Program</key>
        <string>/Applications/iNodeClient/AuthenMngService</string>
        <key>KeepAlive</key>
        <true/>
    </dict>
</plist>

直接无视iNodeMon即可。

登录 或者 注册
相关帖子