diff options
Diffstat (limited to 'net-p2p/linux-edonkey-server/files/edonkey2000-server.sh.sample')
-rw-r--r-- | net-p2p/linux-edonkey-server/files/edonkey2000-server.sh.sample | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/net-p2p/linux-edonkey-server/files/edonkey2000-server.sh.sample b/net-p2p/linux-edonkey-server/files/edonkey2000-server.sh.sample deleted file mode 100644 index 8f38866566f1..000000000000 --- a/net-p2p/linux-edonkey-server/files/edonkey2000-server.sh.sample +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/sh - -ETC_DIR=%%PREFIX%%/etc/edonkey2000 -SBIN_DIR=%%PREFIX%%/sbin -PATH=/bin:/usr/bin:%%LOCALBASE%%/bin -# -SU=/usr/bin/su -# -USER=edonkey2000 - -CONSOLE=`grep ^console= ${ETC_DIR}/donkey.ini | grep -i true | wc -l` - -if [ ${CONSOLE} -gt 0 -a ! -x %%LOCALBASE%%/bin/screen ]; then - echo "Please install ports misc/screen first to enable edonkey2000-server console" >&2 - exit -fi - -case "${1}" in -start) - if [ -x ${SBIN_DIR}/dserver ]; then - cd ${ETC_DIR} - if [ ${CONSOLE} -gt 0 ]; then - ${SU} ${USER} -c "screen -dmS ${SBIN_DIR}/dserver dserver" & - else - ${SU} ${USER} -c "${SBIN_DIR}/dserver >/dev/null 2>&1" & - fi - echo -n ' edonkey2000-server' - fi - ;; -stop) - killall -1 dserver > /dev/null 2>&1 - echo -n ' edonkey2000-server' - ;; -console) - if [ ${CONSOLE} -gt 0 ]; then - ${SU} edonkey2000 -c "screen -d -r dserver" - else - echo "Please set console=true in ${ETC_DIR}/donkey.ini, install ports misc/screen, then restart dserver" - fi - ;; -*) - echo "Usage: `basename $0` {start|stop|console}" >&2 - ;; -esac |