blob: 96e9a8aa7d0b1f8641eb5ac1683a8e44293aeaff (
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
34
35
|
#!/bin/sh
#RCUPDATE:3 4:71:This line is required for script management
. /etc/rc.d/config/functions
. /etc/rc.d/config/basic
SERVICE=timed
EXE="/usr/sbin/timed"
opts="start stop reconfig restart"
start() {
ebegin "Starting ${SERVICE}"
start-stop-daemon --start --quiet --exec $EXE -- $TIMED 1>&2
eend $? "Error starting ${SERVICE}."
}
stop() {
ebegin "Stopping ${SERVICE}"
start-stop-daemon --stop --quiet -u root -n $SERVICE 1>&2
eend $? "Error stopping ${SERVICE}."
}
reconfig () {
ebegin "Reconfiguring ${SERVICE}"
start-stop-daemon --stop --quiet -u root -n $SERVICE --signal 1 1>&2
eend $? "Error reconfiguring ${SERVICE}."
}
restart () {
stop
start
}
doservice ${@}
|