Linux6.5 CentOS
下面是我在/etc/init/中的启动脚本
start on runlevel [2345]
stop on runlevel [!2345]
exec /usr/bin/riofs --fuse-options="allow_other" --fmode=0777 --dmode=0777 ct.recordergo /mnt/applications/recorder/streams/_definst_/s3我想在启动时运行这个程序一次。
我在/var/log/upstart中没有日志。
我不确定剧本是否有效。如何才能让它记录成功或失败?
发布于 2014-06-04 17:19:50
可以使用initctl log-priority <priority>命令对系统日志启用调试。
若要更改Upstart将消息记录到系统日志的优先级,您可以在任何时候使用日志优先级命令更改日志优先级,如下所示: initctl日志优先级,其中
<priority>可能是:调试、信息、消息、警告、致命错误之一。
发布于 2014-06-11 16:12:08
centos中的Upstart版本非常陈旧(2010年版本为0.6.5),不支持日志记录。使用Upstart中记录的工作:
https://serverfault.com/questions/601806
复制相似问题