summarylogtreecommitdiffstats
path: root/i2pd.service
diff options
context:
space:
mode:
Diffstat (limited to 'i2pd.service')
-rw-r--r--i2pd.service17
1 files changed, 17 insertions, 0 deletions
diff --git a/i2pd.service b/i2pd.service
new file mode 100644
index 000000000000..8de42e2f3c42
--- /dev/null
+++ b/i2pd.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=I2P Router in C++
+After=network.target
+
+[Service]
+User=i2p
+Group=i2p
+Type=forking
+ExecStart=/usr/bin/i2p --conf=/var/lib/i2pd/i2p.conf --service=1 --daemon=1
+ExecReload=/usr/bin/kill -HUP $MAINPID
+PIDFile=/run/i2pd.pid
+KillSignal=SIGINT
+LimitNOFILE=8192
+PrivateDevices=yes
+
+[Install]
+WantedBy=multi-user.target