blob: bf036840bd5c369ef8cb33bce63dea8d3e0d95ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/sbin/openrc-run
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
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
}
|