From ad4cdcd9bfccf89066163fe2e4d4076857921537 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Tue, 12 Nov 2019 08:27:23 +0100 Subject: moving from skeleton to extra --- mkosi.extra/etc/systemd/system/filebin.service | 33 ++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 mkosi.extra/etc/systemd/system/filebin.service (limited to 'mkosi.extra/etc/systemd') diff --git a/mkosi.extra/etc/systemd/system/filebin.service b/mkosi.extra/etc/systemd/system/filebin.service new file mode 100644 index 0000000..b7c557f --- /dev/null +++ b/mkosi.extra/etc/systemd/system/filebin.service @@ -0,0 +1,33 @@ +# From https://github.com/espebra/filebin/blob/master/etc/systemd/filebin.service.example + +[Unit] +Description=Filebin +Requires=network.target +After=network.target + +[Service] +ExecStart=/go/filebin \ + --filedir /var/lib/filebin/files \ + --tempdir /tmp \ + --baseurl https://f.dnns.no \ + --port 8304 \ + --access-log /var/log/filebin/access.log \ + --expiration 604800 +StandardOutput=syslog +StandardError=syslog +SyslogIdentifier=filebin +PrivateTmp=true +ProtectSystem=strict +ProtectHome=true +ProtectKernelTunables=true +ProtectControlGroups=true +ProtectKernelModules=true +InaccessiblePaths=/etc /home /opt /srv /var/local /var/mail +BindPaths=/var/log/filebin /var/lib/filebin +RemoveIPC=true +User=filebin +Group=filebin +Restart=on-failure + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3