Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@gregblass
Last active October 4, 2017 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gregblass/8036e95945fc8f6bc196fb1b7a1f9ce4 to your computer and use it in GitHub Desktop.
Save gregblass/8036e95945fc8f6bc196fb1b7a1f9ce4 to your computer and use it in GitHub Desktop.
# https://mmonit.com/wiki/Monit/Systemd
# Automatically start Monit when system boots
# File goes in: /lib/systemd/system/
[Unit]
Description=Pro-active monitoring utility for unix systems
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/monit -I
ExecStop=/usr/bin/monit quit
ExecReload=/usr/bin/monit reload
User=deploy
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment