mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 19:00:15 +00:00
23 lines
580 B
Text
Executable file
23 lines
580 B
Text
Executable file
#!/sbin/openrc-run
|
|
|
|
#################################################################################
|
|
# Filename: files/etc/init.d/wg-quick #
|
|
# Purpose: OpenRC service that starts WireGuard #
|
|
# Authors: Giulio Coa <34110430+giulioc008@users.noreply.github.com> #
|
|
# License: This file is licensed under the MIT. #
|
|
#################################################################################
|
|
|
|
description="WireGuard - Quick version"
|
|
|
|
depend() {
|
|
need localmount
|
|
need net
|
|
}
|
|
|
|
start() {
|
|
wg-quick up wg0
|
|
}
|
|
|
|
stop() {
|
|
wg-quick down wg0
|
|
}
|