<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">munin has a client/server architecture: the server runs munin-update every 5 mins by cron, the client runs munin-node permanently.<div class=""><br class=""></div><div class="">munin 1.4.7 has</div><div class=""><br class=""></div><div class="">for the node:</div><div class="">-----</div><div class=""><div class="">startupitem.create yes</div><div class="">startupitem.name munin-node</div><div class="">startupitem.start "${prefix}/sbin/munin-node"</div><div class="">startupitem.stop "kill `cat ${prefix}/var/run/munin/munin-node.pid`"</div><div class="">-----</div><div class="">this works fine</div><div class=""><br class=""></div><div class="">for the variant +server:</div><div class="">-----</div><div class=""><div class=""> # Create and symlink launchd item for munin-cron</div><div class=""> xinstall -d ${destroot}${prefix}/etc/LaunchDaemons/org.macports.munin-cron</div><div class=""> file copy ${portpath}/files/org.macports.munin-cron.plist.in \</div><div class=""> ${destroot}${prefix}/etc/LaunchDaemons/org.macports.munin-cron/org.macports.munin-cron.plist</div><div class=""> reinplace s|@PREFIX@|${prefix}|g ${destroot}${prefix}/etc/LaunchDaemons/org.macports.munin-cron/org.macports.munin-cron.plist</div><div class=""><br class=""></div><div class=""> xinstall -d ${destroot}/Library/LaunchDaemons</div><div class=""> ln -s ${prefix}/etc/LaunchDaemons/org.macports.munin-cron/org.macports.munin-cron.plist \</div><div class=""> ${destroot}/Library/LaunchDaemons/org.macports.munin-cron.plist</div><div class=""><br class=""></div><div class=""> ui_msg "###########################################################"</div><div class=""> ui_msg "# A startup item has been generated that will cause the"</div><div class=""> ui_msg "# Munin server to fetch data from all nodes every 5 mins."</div><div class=""> ui_msg "# It is disabled by default, please execute the following"</div><div class=""> ui_msg "# command to enable:"</div><div class=""> ui_msg "#"</div><div class=""> ui_msg "# sudo launchctl load -w /Library/LaunchDaemons/org.macports.munin-cron.plist"</div><div class=""> ui_msg "###########################################################"</div></div><div class="">---</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">for 1.4.7 it works:</div><div class="">---</div></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class=""><div class=""><div class="">DEBUG: Executing proc-post-org.macports.destroot-destroot-0</div></div></div><div class=""><div class=""><div class="">xinstall: mkdir /opt/local/var/macports/build/_usr_local_macports_munin_net_munin/munin/work/destroot/opt/local/var/run/munin</div></div></div><div class=""><div class=""><div class="">xinstall: mkdir /opt/local/var/macports/build/_usr_local_macports_munin_net_munin/munin/work/destroot/opt/local/etc/LaunchDaemons</div></div></div><div class=""><div class=""><div class="">xinstall: mkdir /opt/local/var/macports/build/_usr_local_macports_munin_net_munin/munin/work/destroot/opt/local/etc/LaunchDaemons/org.macports.munin-cron</div></div></div><div class=""><div class=""><div class="">---> Patching org.macports.munin-cron.plist: s|@PREFIX@|/opt/local|g</div></div></div><div class=""><div class=""><div class="">DEBUG: Executing reinplace: /usr/bin/sed s|@PREFIX@|/opt/local|g </opt/local/var/macports/build/_usr_local_macports_munin_net_munin/munin/work/destroot/opt/local/etc/LaunchDaemons/org.macports.munin-cron/org.macports.munin-cron.plist >@file10</div></div></div><div class=""><div class=""><div class="">xinstall: mkdir /opt/local/var/macports/build/_usr_local_macports_munin_net_munin/munin/work/destroot/Library/LaunchDaemons</div></div></div><div class=""><div class=""><div class="">###########################################################</div></div></div><div class=""><div class=""><div class=""># A startup item has been generated that will cause the</div></div></div><div class=""><div class=""><div class=""># Munin server to fetch data from all nodes every 5 mins.</div></div></div><div class=""><div class=""><div class=""># It is disabled by default, please execute the following</div></div></div><div class=""><div class=""><div class=""># command to enable:</div></div></div><div class=""><div class=""><div class="">#</div></div></div><div class=""><div class=""><div class=""># sudo launchctl load -w /Library/LaunchDaemons/org.macports.munin-cron.plist</div></div></div><div class=""><div class=""><div class="">###########################################################</div></div></div><div class=""><div class=""><div class="">DEBUG: Executing portdestroot::destroot_finish</div></div></div><div class=""><div class=""><div class="">---> Creating launchd control script</div></div></div><div class=""><div class=""><div class="">###########################################################</div></div></div><div class=""><div class=""><div class=""># A startup item has been generated that will aid in</div></div></div><div class=""><div class=""><div class=""># starting munin with launchd. It is disabled</div></div></div><div class=""><div class=""><div class=""># by default. Execute the following command to start it,</div></div></div><div class=""><div class=""><div class=""># and to cause it to launch at startup:</div></div></div><div class=""><div class=""><div class="">#</div></div></div><div class=""><div class=""><div class=""># sudo port load munin</div></div></div><div class=""><div class=""><div class="">###########################################################</div></div></div></blockquote><div class=""><div class="">---</div><div class=""><br class=""></div><div class="">for my munin2 port install fails:</div><div class="">---</div></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class=""><div class=""><div class="">Mar 26 20:02:38 DEBUG: Executing proc-post-org.macports.destroot-destroot-0</div></div></div><div class=""><div class=""><div class="">Mar 26 20:02:38 xinstall: mkdir /opt/mpt/var/macports/build/_usr_local_macports_munin2_net_munin/munin/work/destroot/opt/mpt/var/run/munin</div></div></div><div class=""><div class=""><div class="">Mar 26 20:02:38 xinstall: mkdir /opt/mpt/var/macports/build/_usr_local_macports_munin2_net_munin/munin/work/destroot/opt/mpt/etc/LaunchDaemons</div></div></div><div class=""><div class=""><div class="">Mar 26 20:02:38 xinstall: mkdir /opt/mpt/var/macports/build/_usr_local_macports_munin2_net_munin/munin/work/destroot/opt/mpt/etc/LaunchDaemons/org.macports.munin-cron</div></div></div><div class=""><div class=""><div class="">Mar 26 20:02:38 ---> Patching org.macports.munin-cron.plist: s|@PREFIX@|/opt/mpt|g</div></div></div><div class=""><div class=""><div class="">Mar 26 20:02:38 DEBUG: Executing reinplace: /usr/bin/sed s|@PREFIX@|/opt/mpt|g </opt/mpt/var/macports/build/_usr_local_macports_munin2_net_munin/munin/work/destroot/opt/mpt/etc/LaunchDaemons/org.macports.munin-cron/org.macports.munin-cron.plist >@file10</div></div></div><div class=""><div class=""><div class="">Mar 26 20:02:38 DEBUG: couldn't read file "/opt/mpt/var/macports/build/_usr_local_macports_munin2_net_munin/munin/work/destroot/opt/mpt/etc/LaunchDaemons/org.macports.munin-cron/org.macports.munin-cron.plist": no such file or directory</div></div></div><div class=""><div class=""><div class="">Mar 26 20:02:38 while executing</div></div></div><div class=""><div class=""><div class="">Mar 26 20:02:38 "exec -ignorestderr -- {*}$cmdline"</div></div></div><div class=""><div class=""><div class="">Mar 26 20:02:38 Error: reinplace: couldn't read file "/opt/mpt/var/macports/build/_usr_local_macports_munin2_net_munin/munin/work/destroot/opt/mpt/etc/LaunchDaemons/org.macports.munin-cron/org.macports.munin-cron.plist": no such file or directory</div></div></div><div class=""><div class=""><div class="">Mar 26 20:02:38 Error: Failed to destroot munin: reinplace sed(1) failed</div></div></div><div class=""><div class=""><div class="">Mar 26 20:02:38 DEBUG: Error code: NONE</div></div></div><div class=""><div class=""><div class="">Mar 26 20:02:38 DEBUG: Backtrace: reinplace sed(1) failed</div></div></div></blockquote><div class=""><div class="">---</div><div class=""><br class=""></div><div class=""><div class="">Guide 5.7 StartupItems didn't help.</div></div><div class=""><br class=""></div><div class="">What do these 2 lines do ?</div><div class="">---</div><div class=""><div class=""> file copy ${portpath}/files/org.macports.munin-cron.plist.in \</div><div class=""> ${destroot}${prefix}/etc/LaunchDaemons/org.macports.munin-cron/org.macports.munin-cron.plist</div></div><div class=""><br class=""></div><div class="">---</div><div class=""><br class=""></div><div class="">I have no idea where this "org.macports.munin-cron.plist.in" is supposed to be coming from.</div><div class="">I cannot find it in the original distribution files (didn't assume it would be there) nor anywhere ele in macports.</div><div class=""><br class=""></div><div class="">The only "munin-cron.in" in the distribution is "./master/_bin/munin-cron.in", and that is the script to run on Linux.</div><div class=""><br class=""></div></div><div class="">Could somebody please elaborate on startup items ?</div><div class=""><br class=""></div><div class="">-- </div><div class="">thanks,</div><div class="">paul.</div></body></html>