diff options
author | Thorvald Natvig <slicer@users.sourceforge.net> | 2007-12-10 21:03:35 +0300 |
---|---|---|
committer | Thorvald Natvig <slicer@users.sourceforge.net> | 2007-12-10 21:03:35 +0300 |
commit | a78b7ca170bb3a709bd4ae4abb277762fc8fa896 (patch) | |
tree | 4b3298eb443055f933278b450f26e88fadadbfba /scripts/murmur.init | |
parent | f59fa905ef35ee0854f9fd77c1a0610b592b41ff (diff) |
Add murmur.default for init script
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@896 05730e5d-ab1b-0410-a4ac-84af385074fa
Diffstat (limited to 'scripts/murmur.init')
-rwxr-xr-x | scripts/murmur.init | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/murmur.init b/scripts/murmur.init index deb935ae7..2713f6d6e 100755 --- a/scripts/murmur.init +++ b/scripts/murmur.init @@ -19,10 +19,12 @@ PIDFILE=$PIDDIR/murmur.pid DAEMON=/usr/sbin/murmurd USER=Murmur GROUP=Murmur + test -x $DAEMON || exit 0 INIFILE=/etc/murmur.ini DAEMON_OPTS="-ini $INIFILE" +MURMUR_DAEMON_START=1 # Include murmur defaults if available if [ -f /etc/default/murmur ] ; then @@ -34,8 +36,12 @@ fi case "$1" in start) + if [ "$MURMUR_DAEMON_START" != "1" ] ; then + log_warning_msg "Not starting $DESC $NAME, disabled via /etc/default/$NAME" + exit 0 + fi [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" - [ -d $PIDDIR ] || install -o $USER -d $PIDDIR + [ -d $PIDDIR ] || install -o $USER -d $PIDDIR start-stop-daemon --start --quiet \ --pidfile $PIDFILE \ --chuid $USER:$GROUP \ |