Skip to content
Permalink
Browse files

Update to place pid file in $prefix/var/run per bug report.

Added -daemon and -pid options to rc.d script also.

Bug:            https://trac.macports.org/ticket/988
Submitted by:   bchesneau@mac.com
Reviewed by:    rshaw@opendarwin.org
Approved by:    rshaw@opendarwin.org

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@3590 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Robert Shaw
Robert Shaw committed Oct 5, 2003
1 parent 34bb49e commit d048709c4a2a70ad98d5a8af78b9438985a1b19f
Showing with 6 additions and 4 deletions.
  1. +4 −2 net/ddclient/Portfile
  2. +2 −2 net/ddclient/files/ddclient.sh
@@ -1,4 +1,4 @@
# $Id: Portfile,v 1.4 2003/09/28 14:45:19 rshaw Exp $
# $Id: Portfile,v 1.5 2003/10/05 04:45:33 rshaw Exp $
PortSystem 1.0
name ddclient
version 3.6.3beta2
@@ -35,5 +35,7 @@ destroot { system "install -m 755 -d ${destroot}${prefix}/etc"
system "install -m 444 ${worksrcpath}/README* \
${destroot}${prefix}/share/${portname}"
system "install -m 444 ${worksrcpath}/sample-* \
${destroot}${prefix}/share/${portname}" }
${destroot}${prefix}/share/${portname}"
file mkdir ${destroot}${prefix}/var/run
system "touch ${destroot}${prefix}/var/run/.turd" }

@@ -6,14 +6,14 @@ CAT=/bin/cat
KILL=/bin/kill

CONFFILE=__PREFIX/etc/$NAME.conf
PIDFILE=/var/run/$NAME.pid
PIDFILE=__PREFIX/var/run/$NAME.pid

case "$1" in

start)
if [ -f $CONFFILE ]; then
echo "Starting $NAME daemon"
__PREFIX/sbin/$NAME
__PREFIX/sbin/$NAME -daemon 300 -pid $PIDFILE
else
echo "Cannot start $NAME daemon: $CONFFILE does not exist!"
exit 1

0 comments on commit d048709

Please sign in to comment.
You can’t perform that action at this time.