Last active
December 24, 2015 19:09
-
-
Save foo4u/6848559 to your computer and use it in GitHub Desktop.
MongoDB Monitoring Agent systemd service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=MongoDB Monitoring Agent | |
After=network.target remote-fs.target nss-lookup.target | |
[Service] | |
Type=simple | |
ExecStart=/usr/bin/python /var/lib/mmsagent/mms-agent/agent.py | |
Restart=always | |
User=mmsagent | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
groupadd -r mmsagent | |
useradd -g mmsagent -r -m -d /var/lib/mmsagent mmsagent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment