aports/testing/innernet/innernet-server.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

20 lines
449 B
Bash

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