summaryrefslogtreecommitdiff
blob: 35ca2b8a6719678dbc8023e0ef910aa005e1d759 (plain)
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
--- aiccu/doc/aiccu.init.gentoo
+++ aiccu/doc/aiccu.init.gentoo
@@ -2,7 +2,7 @@
 
 depend() {
 	need net
-	after ntp-client
+	after ntp-client ntpd
 }
 
 checkconfig() {
@@ -23,14 +23,19 @@
 start() {
 	checkconfig || return 1
 	ebegin "Starting aiccu"
-	start-stop-daemon --start --oknodo --quiet --exec /usr/sbin/aiccu -- start
+	start-stop-daemon --start --quiet --exec /usr/sbin/aiccu -- start
 	eend $?
 }
 
 
 stop() {
 	ebegin "Stopping aiccu"
-	start-stop-daemon --stop --oknodo --quiet --exec /usr/sbin/aiccu -- stop
+	start-stop-daemon --stop --pidfile /var/run/aiccu.pid --quiet --exec /usr/sbin/aiccu -- stop
 	eend $?
 }
 
+restart() {
+	stop
+	sleep 3
+	start
+}