blob: f5f199e17d1178d7d0ece451ec1b08654b58b5d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/sbin/openrc-run
ZEROTIERONE_PIDFILE="/var/run/${SVCNAME}.pid"
PN="zerotier-one"
PN_PATH="/usr/sbin/${PN}"
depend() {
need net
}
start() {
ebegin "Starting ${PN}"
start-stop-daemon --start \
--exec "${PN_PATH}" --make-pidfile --pidfile "${ZEROTIERONE_PIDFILE}" --background
eend $?
}
stop() {
ebegin "Stopping ${PN}"
start-stop-daemon --stop --quiet --pidfile "${ZEROTIERONE_PIDFILE}"
eend $?
}
|