diff options
Diffstat (limited to 'main/minetest/minetest-server.initd')
-rw-r--r-- | main/minetest/minetest-server.initd | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/main/minetest/minetest-server.initd b/main/minetest/minetest-server.initd deleted file mode 100644 index a8bca09a96..0000000000 --- a/main/minetest/minetest-server.initd +++ /dev/null @@ -1,35 +0,0 @@ -#!/sbin/openrc-run - -description="Minetest server" - -pidfile="/var/run/$SVCNAME.pid" -command="/usr/bin/minetestserver" - -start_stop_daemon_args="--user ${USER:-minetest} --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 $? -} |