From b4eaf2e93f1730e3a7bbdd6b223ea04513e4fd48 Mon Sep 17 00:00:00 2001 From: hasufell Date: Fri, 21 Aug 2015 23:28:33 +0200 Subject: [PATCH] saving uncommitted changes in /etc prior to emerge run --- init.d/._cfg0000_minetest-server | 36 ++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100755 init.d/._cfg0000_minetest-server diff --git a/init.d/._cfg0000_minetest-server b/init.d/._cfg0000_minetest-server new file mode 100755 index 0000000..88bfba9 --- /dev/null +++ b/init.d/._cfg0000_minetest-server @@ -0,0 +1,36 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +description="Minetest dedicated server" + +depend() { + need net +} + +start() { + ebegin "starting server" + start-stop-daemon \ + --start \ + --quiet \ + --make-pidfile \ + --pidfile "${PIDFILE}" \ + --background \ + --user ${USER} \ + --group ${GROUP} \ + --exec "${MINETESTBIN}" -- ${ARGS} + + eend $? +} + +stop() { + ebegin "stopping server" + start-stop-daemon \ + --stop \ + --signal 15 \ + --quiet \ + --pidfile "${PIDFILE}" + + eend $? +}