1
0
mirror of synced 2024-12-23 13:20:22 +01:00
Horea Christian 636f2a62b8
net-libs/tox: new package with attempted version bump
Package-Manager: Portage-2.3.43, Repoman-2.3.10
2018-07-20 20:08:33 +02:00

31 lines
533 B
Plaintext

#!/sbin/openrc-run
PIDDIR=/run/tox-bootstrapd
PIDFILE="${PIDDIR}"/tox-bootstrap.pid
depend() {
need net
}
start() {
ebegin "Starting tox-dht-bootstrap daemon"
checkpath -d -q -o "${TOX_USER}":"${TOX_GROUP}" "${PIDDIR}"
start-stop-daemon --start \
--pidfile "${PIDFILE}" \
--user="${TOX_USER}" --group="${TOX_GROUP}" \
--exec /usr/bin/tox-bootstrapd -- --config /etc/tox-bootstrapd.conf
eend $?
}
stop() {
ebegin "Stopping tox-dht-bootstrap daemon"
start-stop-daemon --stop \
--pidfile "${PIDFILE}"
eend $?
}