1
0
minetest-engine-multicraft2/alpine/multicraft-server.initd
mckaygerhard b4b66740dc linux distro pacakging, added unit files and initscript
* added sisvinit unit service script
* added systemshit unit service script
* added debian packaging script and fiels in root dir
* added spec file for shit rpm distros
* added first intent of alpine packaging
2022-12-29 18:36:36 -04:00

36 lines
670 B
Plaintext

#!/sbin/openrc-run
description="Multicraft server"
pidfile="/var/run/$SVCNAME.pid"
command="/usr/bin/multicraftserver"
start_stop_daemon_args="--user ${USER:-multicraft} --group ${GROUP:-games}
--make-pidfile --pidfile $pidfile --background --quiet --wait 300"
command_args="$ARGS"
depend() {
need net
after firewall
}
optional_command_arg() {
if [ -n "$2" ]; then
command_args="$command_args $1 $2"
fi
}
start_pre() {
optional_command_arg --log $LOG
optional_command_arg --config $CONFIG
optional_command_arg --gameid $GAMEID
}
reload() {
ebegin "Reloading $SVCNAME"
start-stop-daemon --signal HUP \
--exec "$EXEC" --pidfile "$pidfile"
eend $?
}