diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 2004-10-29 09:06:05 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 2004-10-29 09:06:05 +0000 |
commit | 3add449a170be706377b66bee46af25633bc945c (patch) | |
tree | 7415df14a37624ff0b24fd40bde079927a88c28a /audio/slimserver/files/slimserver.sh.in | |
parent | 975af646f278430e563b72219a2c3055b211eb1a (diff) |
This commit was manufactured by cvs2svn to create tag 'RELEASE_5_3_0'.release/5.3.0
Notes
Notes:
svn path=/head/; revision=120459
svn path=/tags/RELEASE_5_3_0/; revision=120460; tag=release/5.3.0
Diffstat (limited to 'audio/slimserver/files/slimserver.sh.in')
-rw-r--r-- | audio/slimserver/files/slimserver.sh.in | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/audio/slimserver/files/slimserver.sh.in b/audio/slimserver/files/slimserver.sh.in deleted file mode 100644 index 18f2381edf9f..000000000000 --- a/audio/slimserver/files/slimserver.sh.in +++ /dev/null @@ -1,68 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -# PROVIDE: slimserver -# REQUIRE: LOGIN -# KEYWORD: FreeBSD shutdown - -# -# Add the following lines to /etc/rc.conf to enable slimserver: -# -#slimserver_enable="YES" -# - -. %%RC_SUBR%% - -name=slimserver -start_precmd="slimserver_start_precmd" -stop_cmd="slimserver_stop" -rcvar=`set_rcvar` - -command=%%PREFIX%%/%%SLIMDIR%%/slimserver.pl -pidfile=/var/run/${name}.pid -conffile=/var/db/slimserver/slimserver.conf -logfile=/var/log/slimserver.log -u=slimserv -g=slimserv -command_args="--daemon --prefsfile=${conffile} --logfile=${logfile} --user=${u} --group=${g} --pidfile=${pidfile}" - -PGREP=%%PGREPBASE%%/bin/pgrep - -slimserver_start_precmd() -{ - if [ ! -f ${conffile} ]; then - touch ${conffile} - chown slimserv:slimserv ${conffile} - fi -} - -slimserver_stop() -{ - if [ ! -f ${pidfile} ]; then - exit - fi - echo 'Stopping SlimServer.' - rc_pid=`cat ${pidfile}` - rc_pid=`${PGREP} -u ${u} | grep ${rc_pid}` - if [ -n "${rc_pid}" ]; then - # Should be mDNSResponderPosix, but the port truncates - rc_pids="${rc_pid} `${PGREP} -u ${u} mDNSResponderPos`" - - kill $sig_stop $rc_pids - wait_for_pids $rc_pids - else - echo "${name} not running? (check ${pidfile})" - fi - - rm -f ${pidfile} -} - -# set defaults - -slimserver_enable=${slimserver_enable:-"NO"} -slimserver_flags=${slimserver_flags:-""} - -load_rc_config ${name} -run_rc_command "$1" |