Skip to content

Commit 54392c6

Browse files
committed
Add service file for systemd integration.
1 parent 0c607c0 commit 54392c6

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

mikrowatch.service

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Place this file in /etc/systemd/system/mikrowatch.service
2+
# Edit the path and user this script will run
3+
#
4+
#
5+
# Enable it with:
6+
# systemctl enable mikrowatch.service
7+
# systemctl daemon-reload
8+
9+
[Unit]
10+
Description=mikrowatch
11+
After=syslog.target
12+
13+
[Service]
14+
User=<user>
15+
Group=<group>
16+
ProtectSystem=full
17+
Type=simple
18+
ExecStart=/path/to/mikro-watch daemon \
19+
--quiet
20+
Restart=always
21+
RestartSec=5s
22+
23+
[Install]
24+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)