summarylogtreecommitdiffstats
path: root/rsshub.service
diff options
context:
space:
mode:
Diffstat (limited to 'rsshub.service')
-rw-r--r--rsshub.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/rsshub.service b/rsshub.service
new file mode 100644
index 000000000000..58aeab0d1f89
--- /dev/null
+++ b/rsshub.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Everything is RSSible
+After=network.target network-online.target
+
+[Service]
+User=nobody
+Group=nobody
+EnvironmentFile=/etc/rsshub/rsshub.conf
+Environment=NO_LOGFILES=true
+ExecStart=/usr/bin/node /opt/rsshub/lib/index.js
+KillMode=mixed
+CapabilityBoundingSet=CAP_NET_BIND_SERVICE
+AmbientCapabilities=CAP_NET_BIND_SERVICE
+
+[Install]
+WantedBy=multi-user.target