Skip to content

Commit

Permalink
Add service file for systemd integration.
Browse files Browse the repository at this point in the history
  • Loading branch information
ncareau committed May 13, 2018
1 parent 0c607c0 commit 54392c6
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions mikrowatch.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Place this file in /etc/systemd/system/mikrowatch.service
# Edit the path and user this script will run
#
#
# Enable it with:
# systemctl enable mikrowatch.service
# systemctl daemon-reload

[Unit]
Description=mikrowatch
After=syslog.target

[Service]
User=<user>
Group=<group>
ProtectSystem=full
Type=simple
ExecStart=/path/to/mikro-watch daemon \
--quiet
Restart=always
RestartSec=5s

[Install]
WantedBy=multi-user.target

0 comments on commit 54392c6

Please sign in to comment.