launchctl list status 出现异常的解决方法
来源:互联网 发布:淘宝卖家欺骗消费者 编辑:程序博客网 时间:2024/06/04 18:22
从stackoverflow上转载一篇文章,讨论了在Mac OS中通过launchctl list发现plist运行的Status出现异常的解决方法,其实就是安装launchcontrol图形工具。
launchcontrol是一款强大的后台服务管理进程launchd辅助工具,能够帮助我们自定义并管理各种System/Global/UserAgents。可以查看程序的运行状态,是否出错,以及非常详细的出错提示信息。
what does launchd status 78 mean?? why my user agent not running??
I want to run a unison sync service running in the background whenever I login. But the status code of my agent is 78
. I don't know why, I tried some fix posted online, but it just doesn't work.
What's the problem?? below is the plist file for my service.
<?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>syncmyproject</string> <key>StandardOutPath</key> <string>/var/log/syncmyproject.log</string> <key>StandardErrorPath</key> <string>/var/log/syncmyproject.log</string> <key>RunAtLoad</key> <true/> <key>KeepAlive</key> <true/> <key>Debug</key> <true/> <key>EnableGlobbing</key> <true/> <key>ProgramArguments</key> <array> <string>/usr/local/bin/unison</string> <string>-auto</string> <string>-batch</string> <string>-repeat watch</string> <string>~/home/project</string> <string>~/project</string> </array></dict></plist>
2 Answers
I read man launchctl
, find 78 means function not implemented
. It doesn't help much.
Finally I make it work, actually there were errors in the plist, I recommend to install the brew cask install launchcontrol
, which is a gui tool for launchctl, it can help detect errors and trouble shooting.
#!/bin/sh
– getthemike Feb 26 at 14:37- launchctl list status 出现异常的解决方法
- 出现 HTTP Status 500 - Servlet.init() for servlet springmvc threw exception 异常的原因及解决方法
- Android中BLE连接出现“BluetoothGatt status 133”的解决方法
- java中常出现的异常及解决方法
- dnw出现未处理的异常解决方法、、
- jedis 中出现ArrayIndexOutOfBoundsException异常的解决方法
- web Services中出现的异常解决方法
- 使用JDBC出现NoClassDefFoundError异常的解决方法
- android签名打包出现异常的解决方法。
- BlazeDS数据服务出现Http status code:502错误的解决方法
- 关于Python安装模块出现error: command 'gcc' failed with exit status 1错误的解决方法
- list集合迭代过程中增删出现异常,及解决方法
- 再使用java list的时候出现空指针异常
- Launchctl - mac下的运行管理器
- 出现服务Network List Service不能启动的解决方法
- 出现服务Network List Service不能启动的解决方法
- 调试出现LoaderLock异常的几种解决方法
- java 10大常见异常,出现的原因和解决方法
- animate.css
- 了解Node.js的异步式I/O与事件式编程
- RxJava 入门 慕课网
- linux下snmp4j获取net-snmp的基本信息
- JMeter学习-016-思路篇之-山重水复柳暗花明
- launchctl list status 出现异常的解决方法
- 小左分享|驴友的户外生存
- Sqoop1.4.6的安装及命令行使用
- java企业级应用之术语篇,值得一看!
- QQ音乐MV/腾讯视频下载教程
- 神思二代身份证读卡器Demo的C++版本
- 报表单元格和统计图模态窗口的设
- 【nginx源码学习与运用 三】变长数组ngx_array_t
- log4j配置文件(.properties)详解
grep
this file for possible clues as to what's wrong:/var/log/system.log
– Nick Dec 1 at 19:52