blob: ffca2e55995fc48acfecd10e2f5a3d39478c36ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#!/sbin/openrc-run
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
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 $?
}
|