Meh Belly Lint Collection

That awful moment when you realize,
THIS is YOUR circus and THOSE are YOUR monkeys.

User Tools

Site Tools


rackmon

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
rackmon [2026/05/06 04:30] – created kensonrackmon [2026/05/06 05:12] (current) kenson
Line 1: Line 1:
 +====== Ubuntu ======
 +
 <code> <code>
 sudo tee /etc/systemd/system/rackmon-host-agent.service >/dev/null <<'EOF' sudo tee /etc/systemd/system/rackmon-host-agent.service >/dev/null <<'EOF'
Line 17: Line 19:
 WantedBy=multi-user.target WantedBy=multi-user.target
 EOF EOF
 +</code> 
 +<code>
 systemctl daemon-reload systemctl daemon-reload
 systemctl enable --now rackmon-host-agent.service systemctl enable --now rackmon-host-agent.service
 systemctl status rackmon-host-agent.service systemctl status rackmon-host-agent.service
 +</code>
 +
 +
 +====== Darwin ======
 +
 +<code>
 +sudo tee /Library/LaunchDaemons/com.rackmon.hostagent.plist >/dev/null <<'EOF'
 +<?xml version="1.0" encoding="UTF-8"?>
 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
 + "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
 +<plist version="1.0">
 +<dict>
 +  <key>Label</key>
 +  <string>com.rackmon.hostagent</string>
 +
 +  <key>ProgramArguments</key>
 +  <array>
 +    <string>/usr/bin/python3</string>
 +    <string>/Users/ai/rackmon_host_agent.py</string>
 +  </array>
 +
 +  <key>WorkingDirectory</key>
 +  <string>/Users/ai</string>
 +
 +  <key>RunAtLoad</key>
 +  <true/>
 +
 +  <key>KeepAlive</key>
 +  <true/>
 +
 +  <key>StandardOutPath</key>
 +  <string>/var/log/rackmon_host_agent.log</string>
 +
 +  <key>StandardErrorPath</key>
 +  <string>/var/log/rackmon_host_agent.err</string>
 +</dict>
 +</plist>
 +EOF
 +</code>
 +Fix perms and start
 +<code>
 +sudo chown root:wheel /Library/LaunchDaemons/com.rackmon.hostagent.plist
 +sudo chmod 644 /Library/LaunchDaemons/com.rackmon.hostagent.plist
 +
 +sudo launchctl bootstrap system /Library/LaunchDaemons/com.rackmon.hostagent.plist
 +sudo launchctl enable system/com.rackmon.hostagent
 +sudo launchctl kickstart -k system/com.rackmon.hostagent
 +</code>
 +check status
 +<code>
 +sudo launchctl print system/com.rackmon.hostagent
 +tail -f /var/log/rackmon_host_agent.log
 +tail -f /var/log/rackmon_host_agent.err
 +</code>
 +To stop/unload
 +<code>
 +sudo launchctl bootout system /Library/LaunchDaemons/com.rackmon.hostagent.plist
 </code> </code>
  
rackmon.1778041806.txt.gz · Last modified: 2026/05/06 04:30 by kenson

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki