parent
d0d09e497c
commit
40b03aaad9
2 changed files with 20 additions and 1 deletions
@ -0,0 +1,19 @@ |
||||
#!/sbin/openrc-run |
||||
description="Fearless green WireGuard config manager" |
||||
command="weegee" |
||||
rc_need="loopback" |
||||
|
||||
_config="${RC_SVCNAME#*.}" |
||||
command_args="${_config:+-c /etc/weegee/$_config.conf}" |
||||
|
||||
start() { |
||||
$command $command_args $WEEGEE_ARGS sync |
||||
} |
||||
|
||||
stop() { |
||||
true |
||||
} |
||||
|
||||
status() { |
||||
$command $command_args $WEEGEE_ARGS status |
||||
} |
Loading…
Reference in new issue