mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
31 lines
523 B
Plaintext
31 lines
523 B
Plaintext
#!/sbin/runscript
|
|
|
|
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 -- /etc/tox-bootstrapd.conf
|
|
|
|
eend $?
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping tox-dht-bootstrap daemon"
|
|
|
|
start-stop-daemon --stop \
|
|
--pidfile "${PIDFILE}"
|
|
|
|
eend $?
|
|
}
|