mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-21 16:32:59 +02:00
Made the gnump3d working out of the box...
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@1020 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
46
src/initscripts/init.d/gnump3d
Normal file
46
src/initscripts/init.d/gnump3d
Normal file
@@ -0,0 +1,46 @@
|
||||
#!/bin/sh
|
||||
########################################################################
|
||||
# Begin $rc_base/init.d/gnump3d
|
||||
#
|
||||
# Description : GNUMP3d Init Script
|
||||
#
|
||||
# Authors : Michael Tremer (ms@ipfire.org)
|
||||
#
|
||||
# Version : 01.00
|
||||
#
|
||||
# Notes :
|
||||
#
|
||||
########################################################################
|
||||
|
||||
. /etc/sysconfig/rc
|
||||
. ${rc_functions}
|
||||
|
||||
case "${1}" in
|
||||
start)
|
||||
boot_mesg "Starting GNUMP3d Server..."
|
||||
/usr/bin/gnump3d --background --fast >/dev/null 2>&1
|
||||
evaluate_retval
|
||||
;;
|
||||
|
||||
stop)
|
||||
boot_mesg "Stopping GNUMP3d Server..."
|
||||
killproc /usr/bin/gnump3d
|
||||
;;
|
||||
|
||||
restart)
|
||||
${0} stop
|
||||
sleep 1
|
||||
${0} start
|
||||
;;
|
||||
|
||||
status)
|
||||
statusproc /usr/bin/gnump3d
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Usage: ${0} {start|stop|restart|status}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# End $rc_base/init.d/gnump3d
|
||||
@@ -12,6 +12,7 @@
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
[ -e "/var/ipfire/remote/enablessh" ] || exit 0 # SSH is not enabled
|
||||
boot_mesg "Starting SSH Server..."
|
||||
# Also prevent ssh from being killed by out of memory conditions
|
||||
loadproc /usr/sbin/sshd
|
||||
|
||||
Reference in New Issue
Block a user