установил, сервер, все настроил, запустил
как добавить в автозагрузку???? пишу простетский скрипт помещаю в init.d, добавляю пишет пермессион денейдед, чего делать
стоит все дело на генте 2006
PVPGN (помогите чайнику)
Модератор: Модераторы разделов
-
- Сообщения: 216
Re: PVPGN
Я польуюсь вот этим, идёт в стандартной поставке кстати, лежит в папке scripts/
Код: Выделить всё
[root@mfteam ~]# cat /etc/init.d/bnetd
#!/bin/bash
#
# bnetd Script to control the Unix Battle.net Daemon
#
# Author: Hakan Tandogan <hakan@gurkensalat.com>
#
# chkconfig: 2345 21 79
# description: bnetd is a Unix clone of the Battle.net Daemon
#
# Source function library.
. /etc/rc.d/init.d/functions
# See how we were called.
case "$1" in
start)
# Start daemons.
echo -n "Starting bnetd: "
/usr/pvpgn/sbin/bnetd
echo
touch /var/lock/subsys/bnetd
;;
stop)
# Stop daemons.
echo -n "Shutting down bnetd: "
killall bnetd
echo
rm -f /var/lock/subsys/bnetd
;;
reload)
/usr/bin/killall -HUP bnetd
;;
restart)
$0 stop
$0 start
;;
status)
status bnetd
;;
*)
echo "Usage: bnetd {start|stop|restart|reload|status}"
exit 1
esac
exit 0
«Hello World!» 17 errors, 31 warnings
Mandriva Cooker
Mandriva Cooker