mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-11-01 08:51:47 +01:00
https://github.com/tonarino/innernet A private network system that uses WireGuard under the hood
20 lines
449 B
Bash
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
|
|
}
|