aports/testing/satellite/satellite.initd
Pedro Lucas Porcellis 396154ff00 testing/satellite: new aport
url: https://git.sr.ht/~gsthnz/satellite
pkgdesc: Satellite is a small Gemini server for serving static files
2021-03-28 15:16:53 +00:00

18 lines
397 B
Plaintext

#!/sbin/openrc-run
name="satellite"
description="satellite gemini service"
supervisor=supervise-daemon
command="/usr/bin/$name"
command_user="satellite:satellite"
pidfile="/run/$name.pid"
start_stop_daemon_args="--stdout $satellite_log_file --stderr $satellite_log_file"
depend() {
need net
after firewall
}
start_pre() {
checkpath -f -m 0644 -o ${SVCNAME}:${SVCNAME} "$satellite_log_file"
}