misc: add OpenRC service file

This commit is contained in:
Shiz 2021-12-12 20:59:37 +01:00
parent d0d09e497c
commit 40b03aaad9
2 changed files with 20 additions and 1 deletions

View File

@ -61,7 +61,7 @@ weegee client print-config dev-arcade eagle
`weegee configure -u -d /path/to/data`
Or even globally:
`weegee configure -s -d /path/to/data`
* There's a [systemd service](misc/weegee.service)!
* There's an [OpenRC](misc/weegee.rc) and a [systemd](misc/weegee.service) service!
* weegee is runnable [in Docker](Dockerfile): `docker run --cap-add=NET_ADMIN --cap-add=NET_RAW --network host -v ~/weegee/data:/weegee-data --rm weegee weegee ...`
## License

19
misc/weegee.rc Executable file
View File

@ -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
}