systemd example file
This commit is contained in:
parent
09fa0536a4
commit
349d5d0a4b
1 changed files with 17 additions and 0 deletions
17
systemd/kosyncrs.service
Normal file
17
systemd/kosyncrs.service
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
[Unit]
|
||||||
|
Description=KOReader Sync Server
|
||||||
|
After=syslog.target
|
||||||
|
After=network.target
|
||||||
|
After=redis.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
RestartSec=2s
|
||||||
|
Type=simple
|
||||||
|
User=myuser
|
||||||
|
Group=users
|
||||||
|
WorkingDirectory=/home/myuser
|
||||||
|
ExecStart=/usr/local/bin/kosyncrs
|
||||||
|
Restart=always
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in a new issue