在FreeBSD上是否存在
supervisord
的预先存在的启动脚本?如果没有,是否有一个很好的指南为FreeBSD编写rc.d脚本?我对这个平台很陌生.
谢谢.
更新:
我现在在/usr/local/etc/rc.d/supervisord中有以下内容,但它似乎没有工作.我没有在与supervisord相关的启动滚动中看到任何内容.
- #!/bin/sh
- # PROVIDE: supervisord
- # REQUIRE: LOGIN
- # KEYWORD: shutdown
- . /etc/rc.subr
- name="supervisord"
- rcvar=`set_rcvar`
- load_rc_config "$name"
- command="/usr/local/bin/${name}"
- command_args="-c /usr/local/etc/supervisord.conf"
- supervisord_enable=${supervisord_enable-"NO"}
- supervisord_pidfile=${supervisord_pidfile-"/var/run/supervisord.pid"}
- pidfile="${supervisord_pidfile}"
- run_rc_command "$1"