Changeset 3590


Ignore:
Timestamp:
Oct 5, 2003, 4:45:34 AM (17 years ago)
Author:
rshaw
Message:

Update to place pid file in $prefix/var/run per bug report.
Added -daemon and -pid options to rc.d script also.

Bug: 988
Submitted by: bchesneau@…
Reviewed by: rshaw@…
Approved by: rshaw@…

Location:
trunk/dports/net/ddclient
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/net/ddclient/Portfile

    r3559 r3590  
    1 # $Id: Portfile,v 1.4 2003/09/28 14:45:19 rshaw Exp $
     1# $Id: Portfile,v 1.5 2003/10/05 04:45:33 rshaw Exp $
    22PortSystem 1.0
    33name            ddclient
     
    3636                          ${destroot}${prefix}/share/${portname}"
    3737                  system "install -m 444 ${worksrcpath}/sample-* \
    38                           ${destroot}${prefix}/share/${portname}" }
     38                          ${destroot}${prefix}/share/${portname}"
     39                  file mkdir ${destroot}${prefix}/var/run
     40                  system "touch ${destroot}${prefix}/var/run/.turd" }
    3941
  • trunk/dports/net/ddclient/files/ddclient.sh

    r3559 r3590  
    77
    88CONFFILE=__PREFIX/etc/$NAME.conf
    9 PIDFILE=/var/run/$NAME.pid
     9PIDFILE=__PREFIX/var/run/$NAME.pid
    1010
    1111case "$1" in
     
    1414        if [ -f $CONFFILE ]; then
    1515                echo "Starting $NAME daemon"
    16                 __PREFIX/sbin/$NAME
     16                __PREFIX/sbin/$NAME -daemon 300 -pid $PIDFILE
    1717        else
    1818                echo "Cannot start $NAME daemon: $CONFFILE does not exist!"
Note: See TracChangeset for help on using the changeset viewer.