blob: e1de75d0b566ae477c0829f9958a448d88f8a03b (
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
|
#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
PIDFILE=/var/run/jobarchived.pid
depend() {
need gmond
}
start() {
ebegin "Starting Jobarchived"
start-stop-daemon --start --exec /sbin/jobarchived.py -- -p ${PIDFILE} -c /etc/jobarchived.conf
eend 0
}
stop() {
ebegin "Stopping Jobarchived"
start-stop-daemon --stop --quiet --signal TERM -p ${PIDFILE}
eend $?
}
restart() {
svc_stop
sleep 3
svc_start
}
# vim:ts=4
|