diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 2005-10-16 07:41:55 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 2005-10-16 07:41:55 +0000 |
commit | 40a3261d1a6e2617f6afde0cd6d762a7e211af7a (patch) | |
tree | d70bbf882801af3a4e58dde3ed6a1da1849479d4 /audio/squeezeboxserver/files/squeezecenter.sh.in | |
parent | a9f801a2186fcb89f70f7dcb211c6d4922c0e3af (diff) | |
download | ports-40a3261d1a6e2617f6afde0cd6d762a7e211af7a.tar.gz ports-40a3261d1a6e2617f6afde0cd6d762a7e211af7a.zip |
This commit was manufactured by cvs2svn to create tag 'RELEASE_6_0_0'.release/6.0.0
Notes
Notes:
svn path=/head/; revision=145533
svn path=/tags/RELEASE_6_0_0/; revision=145534; tag=release/6.0.0
Diffstat (limited to 'audio/squeezeboxserver/files/squeezecenter.sh.in')
-rw-r--r-- | audio/squeezeboxserver/files/squeezecenter.sh.in | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/audio/squeezeboxserver/files/squeezecenter.sh.in b/audio/squeezeboxserver/files/squeezecenter.sh.in deleted file mode 100644 index d4617c1cc2a8..000000000000 --- a/audio/squeezeboxserver/files/squeezecenter.sh.in +++ /dev/null @@ -1,86 +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 -logfile=/var/log/slimserver.log -statedir=/var/db/slimserver -cachedir=${statedir}/cache -playlistdir=${statedir}/playlists -conffile=${statedir}/slimserver.conf -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 [ ! -d ${statedir} ]; then - mkdir -p ${statedir} - chown -R ${u}:${g} ${statedir} - fi - if [ ! -d ${cachedir} ]; then - mkdir -p ${cachedir} - chown -R ${u}:${g} ${cachedir} - fi - if [ ! -d ${playlistdir} ]; then - mkdir -p ${playlistdir} - chown -R ${u}:${g} ${playlistdir} - fi - if [ ! -f ${conffile} ]; then - touch ${conffile} - chown ${u}:${g} ${conffile} - fi - if [ ! -f ${logfile} ]; then - touch ${logfile} - chown ${u}:${g} ${logfile} - 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} -} - -load_rc_config ${name} - -slimserver_enable=${slimserver_enable:-"NO"} -slimserver_flags=${slimserver_flags:-""} - -run_rc_command "$1" |