1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 20:25:28 +03:00
aports/testing/innernet/innernet.initd
Uli Baum b0be87d93b testing/innernet: new aport
https://github.com/tonarino/innernet
A private network system that uses WireGuard under the hood
2022-11-29 18:09:03 +00:00

19 lines
443 B
Bash

#!/sbin/openrc-run
description="innernet VPN client service"
# To manage the wireguard interface named "ifname", link this file
# to /etc/init.d/innernet.ifname and start that service
interface="${RC_SVCNAME##*.}"
command="/usr/sbin/innernet"
command_args="up $interface --daemon ${command_extra_args:---interval 60}"
command_background=true
pidfile="/run/${RC_SVCNAME}.pid"
stop_post() {
$command down $interface
}
depend() {
use net
}