diff options
Diffstat (limited to 'contrib/systemd/mirror.service')
-rw-r--r-- | contrib/systemd/mirror.service | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/contrib/systemd/mirror.service b/contrib/systemd/mirror.service new file mode 100644 index 0000000..5ccfbd0 --- /dev/null +++ b/contrib/systemd/mirror.service @@ -0,0 +1,19 @@ +[Unit] +Description=The mirror service +Documentation=https://git.server.ky/slackcoder/mirror/ +After=network-online.target syslog.target +Wants=network-online.target + +[Service] +Type=simple +ExecStart=/usr/local/bin/mirror +ExecStop=/bin/kill -TERM $MAINPID +ExecReload=/bin/kill -HUP $MAINPID +Restart=on-failure +RestartSec=30 +StandardOutput=journal +StandardError=inherit +SyslogIdentifier=mirror + +[Install] +WantedBy=multi-user.target |