diff options
| -rw-r--r-- | examples/snac.service | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/snac.service b/examples/snac.service new file mode 100644 index 0000000..399c1f8 --- /dev/null +++ b/examples/snac.service | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | [Unit] | ||
| 2 | Description=snac daemon | ||
| 3 | |||
| 4 | [Service] | ||
| 5 | Type=simple | ||
| 6 | Restart=always | ||
| 7 | RestartSec=5 | ||
| 8 | ExecStart=/usr/local/bin/snac httpd /PATH/TO/SNAC/BASEDIR | ||
| 9 | |||
| 10 | [Install] | ||
| 11 | WantedBy=default.target | ||
| 12 | |||
| 13 | # This is a systemd user service example. Edit and run: | ||
| 14 | # | ||
| 15 | # cp snac.service ~/.config/systemd/user/ | ||
| 16 | # systemctl --user enable snac.service | ||
| 17 | # systemctl --user start snac.service | ||