blob: 0d971cf5d54efdd5df6b956ba3ab2aa7f0d4933b (
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
36
37
|
#!/sbin/runscript
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header$
pidfile=/var/run/galileo.pid
logdir=/var/log/galileo
uid=galileo
gid=galileo
depend() {
need net
}
start() {
ebegin "Starting Galileo tracker synchroniser"
start-stop-daemon \
--start --exec /usr/bin/galileo \
--pidfile ${pidfile} \
--make-pidfile \
--user ${uid} \
--group ${gid} \
--stderr "${logdir}/galileo.log" \
--background \
-- \
--config /etc/galileorc \
daemon
eend $? "Failed to start Galileo tracker synchroniser"
}
stop() {
ebegin "Stopping Galileo tracker synchroniser"
start-stop-daemon --retry 10 --stop --pidfile ${pidfile}
eend $? "Failed to stop Galileo tracker synchroniser"
}
|