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

View File

@@ -21,7 +21,7 @@
package Conf;
$version = "2.0rc2";
$version = "2.0rc3t";
$mainserver = "pakfire.ipfire.org";

View File

@@ -0,0 +1,10 @@
#!/bin/bash
. /opt/pakfire/lib/functions.sh
extract_files
start_service --background ${NAME}
ln -svf ../init.d/gnump3d /etc/rc.d/rc0.d/K00gnump3d
ln -svf ../init.d/gnump3d /etc/rc.d/rc3.d/S99gnump3d
ln -svf ../init.d/gnump3d /etc/rc.d/rc6.d/K00gnump3d

View File

@@ -0,0 +1,6 @@
#!/bin/bash
. /opt/pakfire/lib/functions.sh
stop_service ${NAME}
rm -rf /etc/rc.d/rc*.d/*gnump3d

View File

@@ -0,0 +1,8 @@
#!/bin/bash
. /opt/pakfire/lib/functions.sh
stop_service ${NAME}
make_backup ${NAME}
extract_files
restore_backup ${NAME}
start_service --delay 60 --background ${NAME}