[email protected] /Volumes/T7Shield/test$ ls
testdaemon.plist testdaemon.sh
[email protected] /Volumes/T7Shield/test$ launchctl load testdaemon.plist
Load failed: 5: Input/output error
Try running `launchctl bootstrap` as root for richer errors.
[email protected] /Volumes/T7Shield/test$ plutil testdaemon.plist
testdaemon.plist: OK
如果把脚本移动到系统盘就能正常 load, 有人知道如何解决吗?
![]() |
1
churchmice 145 天前
Try running `launchctl bootstrap` as root for richer errors.
|
![]() |
2
neilyoone 145 天前
Try running `launchctl bootstrap` as root for richer errors.
|
3
blackcurrant OP ```
[email protected] /Volumes/T7Shield/test$ launchctl bootstrap gui/501 testdaemon.plist Bootstrap failed: 5: Input/output error Try re-running the command as root for richer errors. [email protected] /Volumes/T7Shield/test$ sudo launchctl bootstrap gui/501 testdaemon.plist [email protected] /Volumes/T7Shield/test$ launchctl list|grep test - 78 testdaemon [email protected] /Volumes/T7Shield/test$ sudo launchctl kickstart -k gui/501/testdaemon [email protected] /Volumes/T7Shield/test$ ps -ef|grep test 501 20046 7610 0 8:02PM ttys005 0:00.00 grep --color=always test ``` 用 sudo launchctl bootstrap 似乎能够载入,但是并没有运行。 |