File: init.patch

package info (click to toggle)
smartdns 40%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,860 kB
  • sloc: ansic: 23,518; sh: 1,906; javascript: 720; makefile: 129
file content (38 lines) | stat: -rw-r--r-- 933 bytes parent folder | download
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
28
29
30
31
32
33
34
35
36
37
38
Descriptoin: have lintian shutup
Forwarded: no need
Index: smartdns/etc/init.d/smartdns
===================================================================
--- smartdns.orig/etc/init.d/smartdns
+++ smartdns/etc/init.d/smartdns
@@ -17,8 +17,8 @@
 
 ### BEGIN INIT INFO
 # Provides:        smartdns
-# Required-Start:  $network 
-# Required-Stop:   $network 
+# Required-Start:  $network $local_fs
+# Required-Stop:   $network $local_fs
 # Default-Start:   2 3 4 5
 # Default-Stop:
 # Short-Description: Start smartdns server
@@ -26,7 +26,10 @@
 
 PATH=/sbin:/bin:/usr/sbin:/usr/bin
 
+. /lib/lsb/init-functions
+if test -r /etc/default/smartdns; then
 . /etc/default/smartdns
+fi
 SMARTDNS=/usr/sbin/smartdns
 PIDFILE=/var/run/smartdns.pid
 
@@ -95,6 +98,9 @@ case $1 in
 		echo "smartdns server is running."
 		status=$?
 		;;
+	reload|force-reload)
+		$0 restart
+		;;
 	*)
 		echo "Usage: $0 {start|stop|restart|status}"
 		exit 2