Autor nekris - 01.01.1970 01:00" problem jest następujący :
CYTAT
echo $$ > $PIDFILE;
while [ 1 ]; do
if [ ! $(pidof $SERVER_BIN) ]; then
screen -d -m chroot $SERVER_ROOT su -
$SERVER_USER $SERVER_OPTIONS
sleep 1
if [ ! $(pidof $SERVER_BIN) ]; then
echo "Could not find a PID for ${SERVER_BIN}!
If etded.x86 is actually running, update ${0}
so that it can properly detect the PID of ${SERVER_BIN}."
rm $PIDFILE
exit;
while [ 1 ]; do
if [ ! $(pidof $SERVER_BIN) ]; then
screen -d -m chroot $SERVER_ROOT su -
$SERVER_USER $SERVER_OPTIONS
sleep 1
if [ ! $(pidof $SERVER_BIN) ]; then
echo "Could not find a PID for ${SERVER_BIN}!
If etded.x86 is actually running, update ${0}
so that it can properly detect the PID of ${SERVER_BIN}."
rm $PIDFILE
exit;
tu musi być jakiś błąd , bo jak wpisuje "/etc/rc.d/init.d/rc.etded start" to wywala mi : Could not find a PID /usr/local/enemy-territory/enemy-territory/etded.x86 ...
całość wykonałem według opisu
zastanawia mnie fakt czemu w tym skrypcie dwa razy podano jedną i tą samą komende z różnymi działaniami ...
prosze o odpowiedź zależy mi na czasie
z góry dziękuje