From 6d2b65b1d071a35e64c2ba0b2f7b564d3fe08c35 Mon Sep 17 00:00:00 2001 From: dennis Date: Sun, 20 Oct 2019 11:08:21 +0200 Subject: initial commit --- .../system/multi-user.target.wants/sabnzbd.service | 1 + mkosi.skeleton/etc/systemd/system/sabnzbd.service | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 120000 mkosi.skeleton/etc/systemd/system/multi-user.target.wants/sabnzbd.service create mode 100644 mkosi.skeleton/etc/systemd/system/sabnzbd.service (limited to 'mkosi.skeleton/etc/systemd/system') diff --git a/mkosi.skeleton/etc/systemd/system/multi-user.target.wants/sabnzbd.service b/mkosi.skeleton/etc/systemd/system/multi-user.target.wants/sabnzbd.service new file mode 120000 index 0000000..7d8ab3e --- /dev/null +++ b/mkosi.skeleton/etc/systemd/system/multi-user.target.wants/sabnzbd.service @@ -0,0 +1 @@ +../sabnzbd.service \ No newline at end of file diff --git a/mkosi.skeleton/etc/systemd/system/sabnzbd.service b/mkosi.skeleton/etc/systemd/system/sabnzbd.service new file mode 100644 index 0000000..d800fe0 --- /dev/null +++ b/mkosi.skeleton/etc/systemd/system/sabnzbd.service @@ -0,0 +1,16 @@ +[Unit] +Description=SabNZB Daemon +After=network.target + +[Service] +User=warez +Group=warez +Umask=022 + +Type=forking +ExecStart=/usr/bin/sabnzbdplus --daemon --config-file /config --server 0.0.0.0:8080 +TimeoutStopSec=20 +Restart=on-failure + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3