diff options
author | lioux <lioux@FreeBSD.org> | 2009-11-22 16:51:56 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2009-11-22 16:51:56 +0800 |
commit | 0cc31116b77fc13bad5cae82a18dbf8b2ddfd471 (patch) | |
tree | 038f03eb04e9d13556fdaa0dc9db343383f1647c /net-p2p | |
parent | b7f656e2950a6485ffb83be7f2404b015d111090 (diff) | |
download | freebsd-ports-gnome-0cc31116b77fc13bad5cae82a18dbf8b2ddfd471.tar.gz freebsd-ports-gnome-0cc31116b77fc13bad5cae82a18dbf8b2ddfd471.tar.zst freebsd-ports-gnome-0cc31116b77fc13bad5cae82a18dbf8b2ddfd471.zip |
- Fix rc.d startup script:
1) Check if daemon is already running before start
2) Add verbose start message
- Bump PORTREVISION
PR: ports/129790
Submitted by: Ulrich Spoerlein <uspoerlein@gmail.com>
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/mldonkey/Makefile | 2 | ||||
-rw-r--r-- | net-p2p/mldonkey/files/mlnet.in | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/net-p2p/mldonkey/Makefile b/net-p2p/mldonkey/Makefile index 87d59f976ffc..d3d7307d5233 100644 --- a/net-p2p/mldonkey/Makefile +++ b/net-p2p/mldonkey/Makefile @@ -7,7 +7,7 @@ PORTNAME= mldonkey PORTVERSION= 3.0.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES+= net-p2p MASTER_SITES= SF diff --git a/net-p2p/mldonkey/files/mlnet.in b/net-p2p/mldonkey/files/mlnet.in index 513a84eecfd0..a0e79844781c 100644 --- a/net-p2p/mldonkey/files/mlnet.in +++ b/net-p2p/mldonkey/files/mlnet.in @@ -45,6 +45,13 @@ start_precmd="mlnet_check_vars" start_cmd="start_cmd" start_cmd() { + if [ -z "${rc_fast}" -a -n "${rc_pid}" ]; then + echo 1>&2 "${name} already running? (pid=${rc_pid})." + return 1 + fi + + check_startmsgs && echo "Starting ${name}." + if [ -n "${mlnet_logfile}" ]; then mlnet_logcommand="-log_file ${mlnet_logfile}" else |