You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-libs/tox/files/initd

35 lines
655 B

#!/sbin/openrc-run
PIDDIR=/run/tox-bootstrapd
PIDFILE="${PIDDIR}"/tox-bootstrapd.pid
KEYSDIR=/var/lib/tox-bootstrapd
TOX_USER=tox
TOX_GROUP=tox
depend() {
need net
}
start() {
ebegin "Starting tox-dht-bootstrap daemon"
checkpath -d -q -o "${TOX_USER}":"${TOX_GROUP}" "${PIDDIR}"
checkpath -d -q -o "${TOX_USER}":"${TOX_GROUP}" "${KEYSDIR}"
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 $?
}