1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-31 05:41:08 +00:00

- 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>
This commit is contained in:
Mario Sergio Fujikawa Ferreira 2009-11-22 08:51:56 +00:00
parent 9dd3ccd146
commit cf23e088b5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=244638
2 changed files with 8 additions and 1 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= mldonkey
PORTVERSION= 3.0.0
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES+= net-p2p
MASTER_SITES= SF

View File

@ -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