freyanet/deployments/openrc/inet2.initd

27 lines
433 B
Text
Raw Normal View History

2023-12-30 20:23:30 +00:00
#!/sbin/openrc-run
name="inet2"
description="Sets up wireguard interfaces connected via the host's internet connection"
extra_started_commands="reloadwg"
start() {
/usr/local/bin/inet2.sh start
rc-service bird start 2> /dev/null
}
stop() {
/usr/local/bin/inet2.sh stop
rc-service bird stop 2> /dev/null
}
restart() {
stop
start
}
reload() {
/usr/local/bin/inet2.sh reload
rc-service bird restart 2> /dev/null
}