summarylogtreecommitdiffstats
path: root/zerotier-one
blob: 9d117b5fada891f8f8caaf6554b547700b7f3024 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/sbin/openrc-run

command="/usr/sbin/zerotier-one"
command_background="yes"
pidfile="/run/zerotier-one.pid"

depend() {
    need net
    after bootmisc
}

start_pre() {
    checkpath --directory --owner zerotier-one:zerotier-one --mode 0755 /var/lib/zerotier-one
}

stop_post() {
    rm -f /run/zerotier-one.pid
}