diff options
author | Jose V Beneyto <sepen@users.sourceforge.net> | 2008-01-28 11:24:44 +0100 |
---|---|---|
committer | Jose V Beneyto <sepen@users.sourceforge.net> | 2008-01-28 11:24:44 +0100 |
commit | 00156a98f71d1b54877f893fc87ba971560f7428 (patch) | |
tree | a14f2144e493a95f173d6509612f14126948c14d /mldonkey/mlnetd | |
parent | 9c09242090bce09f82b5e5449ae14ee3ec3b7143 (diff) | |
download | contrib-00156a98f71d1b54877f893fc87ba971560f7428.tar.gz contrib-00156a98f71d1b54877f893fc87ba971560f7428.tar.xz |
mldonkey: Fixed FS#213 and cleanup.
Diffstat (limited to 'mldonkey/mlnetd')
-rw-r--r-- | mldonkey/mlnetd | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mldonkey/mlnetd b/mldonkey/mlnetd index d20f4f48a..6a6a5b48e 100644 --- a/mldonkey/mlnetd +++ b/mldonkey/mlnetd @@ -3,10 +3,13 @@ # /etc/rc.d/mlnetd: start/stop mldonkey daemon # +LOG_FILE=/var/log/mlnetd + case $1 in start) export MLDONKEY_DIR=/var/mlnet - su mldonkey -c "mlnet -run_as_user mldonkey >/dev/null" & + su mldonkey -c \ + "mlnet -run_as_user mldonkey 2>&1 >/dev/null" 2>&1 >$LOG_FILE & ;; stop) pkill mlnet |