net-misc/bopm: Support tmpfs /run for bug #562032. Thanks shentino, grknight.
[gentoo.git] / net-misc / bopm / files / bopm.init.d-r1
1 #!/sbin/openrc-run
2 # Copyright 1999-2015 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4 # $Id$
5
6 command="/usr/bin/bopm"
7 description="Blitzed Open Proxy Monitor"
8 start_stop_daemon_args="--quiet --chuid ${BOPM_UID}"
9 pidfile="${PIDFILE}"
10
11 depend() {
12         need net
13 }
14
15 start_pre() {
16         checkpath -o ${BOPM_UID} -d "$(dirname "${PIDFILE}")"
17 }