summaryrefslogtreecommitdiffstats
path: root/dependencies/pkg/mod/github.com/okzk/sdnotify@v0.0.0-20180710141335-d9becc38acbd/sample/sample.service
blob: 895f8c1079a27525b51e211087600faa5c05ed16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
[Unit]
Description=sample

[Service]
Type=notify
ExecStart=/path/to/sample
ExecStop=/bin/kill -SIGTERM $MAINPID
ExecReload=/bin/kill -SIGHUP $MAINPID
WatchdogSec=60s
Restart=on-failure

[Install]
WantedBy = multi-user.target