Example systemd service file

This commit is contained in:
Zlatko Čalušić 2016-11-07 00:54:32 +01:00
parent ad003274d2
commit 1afd09d98a

16
etc/restic-server.service Normal file
View file

@ -0,0 +1,16 @@
[Unit]
Description=Restic Server
After=syslog.target
After=network.target
[Service]
Type=simple
User=www-data
Group=www-data
ExecStart=/usr/local/bin/restic-server -path /tmp/restic
Restart=always
RestartSec=5
StartLimitInterval=0
[Install]
WantedBy=multi-user.target