diff options
author | Nathan Phillip Brink <binki@gentoo.org> | 2015-10-03 03:03:06 +0000 |
---|---|---|
committer | Nathan Phillip Brink <binki@gentoo.org> | 2015-10-03 03:03:06 +0000 |
commit | 0528c472627b1698f679374ceaf9534586dabfa2 (patch) | |
tree | ddcfd0c13356ee8227caa19bb348990ec63936a6 /net-misc/bopm/files | |
parent | sys-libs/timezone-data: version bump to 2015g (diff) | |
download | gentoo-0528c472627b1698f679374ceaf9534586dabfa2.tar.gz gentoo-0528c472627b1698f679374ceaf9534586dabfa2.tar.bz2 gentoo-0528c472627b1698f679374ceaf9534586dabfa2.zip |
net-misc/bopm: Support tmpfs /run for bug #562032. Thanks shentino, grknight.
Package-Manager: portage-2.2.20
Diffstat (limited to 'net-misc/bopm/files')
-rw-r--r-- | net-misc/bopm/files/bopm.conf.d-r1 | 9 | ||||
-rw-r--r-- | net-misc/bopm/files/bopm.init.d-r1 | 17 |
2 files changed, 26 insertions, 0 deletions
diff --git a/net-misc/bopm/files/bopm.conf.d-r1 b/net-misc/bopm/files/bopm.conf.d-r1 new file mode 100644 index 000000000000..71bacbe7f218 --- /dev/null +++ b/net-misc/bopm/files/bopm.conf.d-r1 @@ -0,0 +1,9 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# Config file for /etc/init.d/bopm + +BOPM_UID=bopm +CONFFILE=/etc/${SVCNAME}.conf +PIDFILE=/run/bopm/${SVCNAME}.pid diff --git a/net-misc/bopm/files/bopm.init.d-r1 b/net-misc/bopm/files/bopm.init.d-r1 new file mode 100644 index 000000000000..4f6f2ea77bdc --- /dev/null +++ b/net-misc/bopm/files/bopm.init.d-r1 @@ -0,0 +1,17 @@ +#!/sbin/openrc-run +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +command="/usr/bin/bopm" +description="Blitzed Open Proxy Monitor" +start_stop_daemon_args="--quiet --chuid ${BOPM_UID}" +pidfile="${PIDFILE}" + +depend() { + need net +} + +start_pre() { + checkpath -o ${BOPM_UID} -d "$(dirname "${PIDFILE}")" +} |