minor: subsonic.sh : crontab / SUBSONIC_PIDFILE

Got an idea? Missing something? Post your feature request here.

Moderator: moderators

minor: subsonic.sh : crontab / SUBSONIC_PIDFILE

Postby nightwalker » Tue Mar 02, 2010 6:57 pm

I inserted the following code:

Tests to see if subsonic_pidfile is running, otherwise, it will delete the pidfile, and continue with normal start logic.

This also allows you to crontab your subsonic
*/10 * * * * /home/subsonic/subsonic.sh

#################################
cd `dirname $0`
###
if test -r $SUBSONIC_PIDFILE; then
pid=`cat $SUBSONIC_PIDFILE`
if `kill -CHLD $pid >/dev/null 2>&1`; then
exit 0
fi
rm -f $SUBSONIC_PIDFILE
fi
###
${JAVA} -Xmx${SUBSONIC_MAX_MEMORY}m \
#################################
nightwalker
 
Posts: 1
Joined: Tue Mar 02, 2010 6:52 pm

Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 9 guests