diff options
| author | William Grzybowski <wg@FreeBSD.org> | 2013-12-26 11:49:42 +0000 |
|---|---|---|
| committer | William Grzybowski <wg@FreeBSD.org> | 2013-12-26 11:49:42 +0000 |
| commit | 13dc2491db5b6fc90980c8bd99af929ba0a4309a (patch) | |
| tree | c4b0db20338a9938b6e84863d96333387a5a7bbc /sysutils/py-supervisor/files | |
| parent | Do not overwrite config.inc.php; (diff) | |
sysutils/py-supervisor: allow user and config location for rc config
- Allow user and config location for rc config [1]
- Allow staging
- Switch from easy_install to install
- Use python auto plist
PR: ports/183788 [1]
Submitted by: Sevan Janiyan <venture37 geeklan.co.uk>
Approved by: maintainer
Notes
Notes:
svn path=/head/; revision=337484
Diffstat (limited to 'sysutils/py-supervisor/files')
| -rw-r--r-- | sysutils/py-supervisor/files/supervisord.in | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/sysutils/py-supervisor/files/supervisord.in b/sysutils/py-supervisor/files/supervisord.in index e27a952849f9..3007e684e038 100644 --- a/sysutils/py-supervisor/files/supervisord.in +++ b/sysutils/py-supervisor/files/supervisord.in @@ -9,7 +9,10 @@ # Add the following line to /etc/rc.conf.local or /etc/rc.conf # to enable supervisord: # -# supervisord_enable="YES" +# supervisord_enable="bool" Set to NO by default. +# Set it to YES to enable supervisord. +# supervisord_config (patch): Set to %%PREFIX%%/etc/supervisord.conf by default. +# supervisord_user (username): Set to root by default. # . /etc/rc.subr @@ -17,12 +20,15 @@ name="supervisord" rcvar=supervisord_enable -command="%%PREFIX%%/bin/${name}" -command_interpreter="%%PYTHON_CMD%%" -pidfile="%%PIDDIR%%/${name}.pid" - load_rc_config $name : ${supervisord_enable="NO"} +: ${supervisord_config="%%PREFIX%%/etc/supervisord.conf"} +: ${supervisord_user="root"} + +command="%%PREFIX%%/bin/${name}" +command_args="-u ${supervisord_user} -c ${supervisord_config}" +command_interpreter="%%PYTHON_CMD%%" +pidfile="%%PIDDIR%%/${name}.pid" run_rc_command "$1" |
