-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add service file for systemd integration.
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
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
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 |