[30362] trunk/dports/net/nedi
source_changes at macosforge.org
source_changes at macosforge.org
Thu Oct 25 12:05:35 PDT 2007
Revision: 30362
http://trac.macosforge.org/projects/macports/changeset/30362
Author: markd at macports.org
Date: 2007-10-25 12:05:34 -0700 (Thu, 25 Oct 2007)
Log Message:
-----------
Use startupitem.pidfile option "clean".
Modified Paths:
--------------
trunk/dports/net/nedi/Portfile
trunk/dports/net/nedi/files/org.macports.nedisyslog.plist
Modified: trunk/dports/net/nedi/Portfile
===================================================================
--- trunk/dports/net/nedi/Portfile 2007-10-25 18:31:51 UTC (rev 30361)
+++ trunk/dports/net/nedi/Portfile 2007-10-25 19:05:34 UTC (rev 30362)
@@ -4,7 +4,7 @@
name nedi
version 1.0.w
-revision 8
+revision 9
categories net
maintainers markd
platforms darwin
@@ -48,7 +48,7 @@
startupitem.create yes
startupitem.name nedimonitor
-startupitem.pidfile manual "${prefix}/var/run/${name}/nedimonitor.pid"
+startupitem.pidfile clean "${prefix}/var/run/${name}/nedimonitor.pid"
startupitem.start "${nedimonitorbin} & echo \$! > ${nedimonitorpid}"
startupitem.stop "/bin/kill \$(cat ${nedimonitorpid})"
@@ -89,22 +89,21 @@
# Create directory for rrd files
xinstall -m 755 -d ${destroot}${prefix}/share/${name}/rrd
+# Create directory for the startupitem pid files
+ xinstall -m 755 -d ${destroot}${prefix}/var/run/${name}
+
# Keep these empty directories
destroot.keepdirs \
${destroot}${prefix}/share/${name}/db/cfg \
${destroot}${prefix}/share/${name}/html/log \
- ${destroot}${prefix}/share/${name}/rrd
+ ${destroot}${prefix}/share/${name}/rrd \
+ ${destroot}${prefix}/var/run/${name}
# Rename nedi.conf to nedi.conf.sample so port upgrades don't overwrite an installed nedi.conf
# Also set permissions on nedi.conf because it has passwords.
file rename ${destroot}${prefix}/share/${name}/nedi.conf \
${destroot}${prefix}/share/${name}/nedi.conf.sample
system "chmod 600 ${destroot}${prefix}/share/${name}/nedi.conf.sample"
-
-# Create files to track PIDs for moni.pl and syslog.pl daemons
- file mkdir ${destroot}${prefix}/var/run/${name}
- touch ${destroot}${prefix}/var/run/${name}/nedimonitor.pid
- touch ${destroot}${prefix}/var/run/${name}/nedisyslog.pid
}
pre-install {
Modified: trunk/dports/net/nedi/files/org.macports.nedisyslog.plist
===================================================================
--- trunk/dports/net/nedi/files/org.macports.nedisyslog.plist 2007-10-25 18:31:51 UTC (rev 30361)
+++ trunk/dports/net/nedi/files/org.macports.nedisyslog.plist 2007-10-25 19:05:34 UTC (rev 30362)
@@ -19,7 +19,8 @@
<string>__PREFIX__/etc/LaunchDaemons/org.macports.nedisyslog/nedisyslog.wrapper</string>
<string>restart</string>
<string>;</string>
- <string>--pid=exec</string>
+ <string>--verbosity=1</string>
+ <string>--pid=fileclean</string>
<string>--pidfile</string>
<string>__PREFIX__/var/run/nedi/nedisyslog.pid</string>
</array>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071025/956511b7/attachment.html
More information about the macports-changes
mailing list