blob: 7b0d0591aca5ff83763624e45dcaba0b0fbdc743 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/sbin/openrc-run
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
opts="depend start stop"
depend() {
need net
}
start() {
ebegin "Starting Blitzed Open Proxy Monitor"
start-stop-daemon --start --quiet --chuid ${BOPM_UID} --exec /usr/bin/bopm
eend $?
}
stop() {
ebegin "Stopping Blitzed Open Proxy Monitor"
kill $(</var/run/bopm/bopm.pid)
eend $?
rm -f /var/run/bopm/bopm.pid
}
|