1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/testing/aero2solver/aero2solver.initd
2023-11-16 13:00:01 +00:00

27 lines
468 B
Bash
Executable file

#!/sbin/openrc-run
name="aero2solver"
description="Aero2 solver daemon"
: ${command_user:="aero2solver:aero2solver"}
: ${logfile:="/var/log/$RC_SVCNAME.log"}
command="/usr/bin/aero2solver"
command_args="$command_args"
command_background="yes"
pidfile="/run/$RC_SVCNAME.pid"
output_log="$logfile"
error_log="$logfile"
depend() {
need net
use dns
after firewall
}
start_pre() {
if [ "$logfile" ]; then
checkpath -f -m 644 -o "$command_user" "$logfile"
fi
}