Last active
March 9, 2019 14:10
-
-
Save Strykar/a71c91c0d547362fd14cc0892a8afc35 to your computer and use it in GitHub Desktop.
This file contains hidden or 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=Smokeping slave-only service to connect to remote Smokeping master | |
| After=network.target | |
| After=systemd-user-sessions.service | |
| After=network-online.target | |
| [Service] | |
| User=root | |
| ConditionPathExists=/run/smokeping | |
| ExecStartPre=-/usr/bin/mkdir -p /run/smokeping && /usr/bin/chown -R smokeping:smokeping /run/smokeping | |
| User=smokeping | |
| ExecStart=/usr/bin/smokeping --master-url=https://aaa.bb.yz/smokeping.fcgi --cache-dir=/var/smokeping/ --shared-secret=/var/smokeping/secret.txt --pid-dir /run/smokeping/ | |
| ExecReload=/usr/bin/kill -HUP $MAINPID | |
| StandardError=syslog | |
| Type=forking | |
| PIDFile=/run/smokeping/smokeping.pid | |
| TimeoutSec=30 | |
| Restart=on-failure | |
| RestartSec=30 | |
| StartLimitInterval=350 | |
| StartLimitBurst=10 | |
| [Install] | |
| WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment