summaryrefslogtreecommitdiff
path: root/mldonkey/mlnetd
diff options
context:
space:
mode:
Diffstat (limited to 'mldonkey/mlnetd')
-rw-r--r--mldonkey/mlnetd5
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

Generated by cgit