Created
March 23, 2018 21:30
-
-
Save kel/e4fbea54da37d3557debee5c1ab386b4 to your computer and use it in GitHub Desktop.
Monitis Smart Agent 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
Create smartagent.service in /lib/systemd/system/ and run systemctl daemon-reload. |
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
#!/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