saving uncommitted changes in /etc prior to emerge run
This commit is contained in:
parent
66d36fe3a6
commit
b4eaf2e93f
36
init.d/._cfg0000_minetest-server
Executable file
36
init.d/._cfg0000_minetest-server
Executable file
@ -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 $?
|
||||
}
|
Loading…
Reference in New Issue
Block a user