20 lines
333 B
Plaintext
Executable File
20 lines
333 B
Plaintext
Executable File
#!/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
|
|
}
|