File: 52-use-update-rc.d-for-disable.diff

package info (click to toggle)
mumble 1.3.4-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 43,608 kB
  • sloc: ansic: 150,503; cpp: 71,621; xml: 14,417; python: 2,207; perl: 1,225; sh: 1,075; makefile: 685; asm: 360; php: 344; cs: 55; objc: 42; ruby: 37
file content (27 lines) | stat: -rw-r--r-- 837 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: remove disable from init script to comply with Debian Policy
 section ยง9.3.3.1. Daemon enable/disable is now via command
 'update-rc.d mumble-server [enable|disable]' instead.
Author: Christopher Knadle <Chris.Knadle@coredump.us>
Last-Updated: 2018-06-06

--- a/scripts/murmur.init
+++ b/scripts/murmur.init
@@ -25,7 +25,6 @@
 
 INIFILE=/etc/mumble-server.ini
 DAEMON_OPTS="-ini $INIFILE"
-MURMUR_DAEMON_START=0
 MURMUR_USE_CAPABILITIES=0
 MURMUR_LIMIT_NOFILE=0
 
@@ -43,10 +42,6 @@
 
 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
 	if [ "$MURMUR_USE_CAPABILITIES" != "1" ] ; then