Skip to content

Instantly share code, notes, and snippets.

@kel
Created March 23, 2018 21:30
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 kel/e4fbea54da37d3557debee5c1ab386b4 to your computer and use it in GitHub Desktop.
Save kel/e4fbea54da37d3557debee5c1ab386b4 to your computer and use it in GitHub Desktop.
Monitis Smart Agent service
Create smartagent.service in /lib/systemd/system/ and run systemctl daemon-reload.
#!/bin/sh
[Unit]
Description=Monitis Smart Agent service
[Service]
Type=forking
User=root
ExecStart=/opt/smartagent/smagent.sh start
ExecStop=/opt/smartagent/smagent.sh stop
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment