blob: 8900cd0b44fd86f3e8d45674e5d25f253e0f4cc7 (
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
|
#!/sbin/openrc-run
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
depend() {
need net
}
start() {
ebegin "Starting p3scan"
start-stop-daemon --start --quiet --pidfile /var/run/p3scan/p3scan.pid --exec /usr/sbin/p3scan
eend $?
}
stop() {
ebegin "Stopping p3scan"
start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/p3scan/p3scan.pid
eend $?
}
restart() {
ebegin "Restarting p3scan"
svc_stop
sleep 1
svc_start
eend $?
}
|