projects/aports·blob master · refs

19 lines · 449 B

1#!/sbin/openrc-run
2description="innernet VPN coordination server"
3
4# To manage the wireguard interface named "ifname", link this file
5# to /etc/init.d/innernet-server.ifname and start that service
6interface="${RC_SVCNAME##*.}"
7
8command="/usr/sbin/innernet-server"
9command_args="serve $interface $command_extra_args"
10command_background=true
11pidfile="/run/${RC_SVCNAME}.pid"
12
13stop_post() {
14 /usr/sbin/innernet down $interface
15}
16
17depend() {
18 use net
19}