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:
ms
2007-10-28 15:23:22 +00:00
parent 6f10c6a17d
commit b5cf3c757a
11 changed files with 1027 additions and 6 deletions

View 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

View File

@@ -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