[an error occurred while processing this directive]

Скрипт автозагрузки программы с помощью screen (FreeBSD)
Скрипт запуска и остановки игрового сервера Call of Duty: United Offence 1.51

#!/bin/sh
# Zapusk Call of Duty (Game server)
GAMESDIR=/home/games/coduo
export GAMESDIR
cd $GAMESDIR
case "$1" in
    start)
        /usr/local/bin/screen -dm ./coduo_lnxded +set fs_homepath $GAMESDIR \
          +set scr_motd +exec coduo.cfg +exec awe.cfg
        echo "Starting Call of Duty:United Offence 1.51 Server"
;;
    stop)
        pid=$(ps -ax|grep coduo_lnxded|grep -v grep | awk '{print $1}')
        kill ${pid} > /dev/null 2>&1
;;
    *)
        echo "Используй: `basename $0` { start | stop }"
        exit 64
;;
esac


Запускается так: ./etotscript.sh start
останавливается: ./etotscript.sh stop
 
02.04.2005 , Автор: denz , Источник: http://www.serkov.net...
Ключи: screen, daemon, game, freebsd
Раздел:    Корень / Администратору / Система / Установка и синхронизация времени

[an error occurred while processing this directive]

[an error occurred while processing this directive]