projects/aports·blob master · refs

19 lines · 443 B

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