From 58b725f923ce0f815b45633015306523dfc0f9a8 Mon Sep 17 00:00:00 2001 From: Slack Coder Date: Wed, 23 Oct 2024 08:56:17 -0500 Subject: contrib: Add systemd files --- contrib/systemd/mirror.service | 19 +++++++++++++++++++ contrib/systemd/mirror.sysusers | 1 + 2 files changed, 20 insertions(+) create mode 100644 contrib/systemd/mirror.service create mode 100644 contrib/systemd/mirror.sysusers 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 diff --git a/contrib/systemd/mirror.sysusers b/contrib/systemd/mirror.sysusers new file mode 100644 index 0000000..830c5c8 --- /dev/null +++ b/contrib/systemd/mirror.sysusers @@ -0,0 +1 @@ +u mirror - "mirror service" - - -- cgit v1.2.3