misc: add OpenRC service file
This commit is contained in:
parent
d0d09e497c
commit
40b03aaad9
|
@ -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
|
||||
|
|
|
@ -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