[MacPorts] #43232: cacti port improvements

MacPorts noreply at macports.org
Sat Apr 26 08:33:12 PDT 2014


#43232: cacti port improvements
--------------------------+----------------------
  Reporter:  jul_bsd@…    |      Owner:  markd@…
      Type:  enhancement  |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:  haspatch
      Port:  cacti        |
--------------------------+----------------------

Comment (by jul_bsd@…):

 I currently have a strange behavior with the poller task. It is supposed
 to execute as cacti user (515)

 {{{
 <dict>
     <key>Label</key>
     <string>com.macports.cacti</string>
     <key>Username</key>
     <string>cactiuser</string>
     <key>ProgramArguments</key>
     <array>
         <string>/opt/local/bin/php55</string>
         <string>-q</string>
         <string>/opt/local/share/cacti/poller.php</string>
 }}}

 but in my system.log, I got Permission denied error. files are owned by
 cactiuser which is normal

 {{{
 Apr 24 10:31:19 HOST com.apple.launchd.peruser.502[192]
 (com.macports.cacti[7162]): open("/opt/local/var/log/cacti/poller.log",
 ...): 13: Permission denied
 Apr 24 10:31:19 HOST com.apple.launchd.peruser.502[192]
 (com.macports.cacti[7162]):
 open("/opt/local/var/log/cacti/poller_err.log", ...): 13: Permission
 denied
 }}}

 so why it is trying to execute as user 502 (gui user) ? there is only the
 sudo call to launchctl which could come from but even if I unload/load as
 root, it changes nothing
 I tried moving from LaunchAgents (which was working before) to
 LaunchDaemons dir but same too

-- 
Ticket URL: <https://trac.macports.org/ticket/43232#comment:4>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list