summaryrefslogtreecommitdiff
path: root/pcr/i2p/i2prouter.service
diff options
context:
space:
mode:
authorGaming4JC <g4jc@openmailbox.org>2017-03-04 08:49:53 -0500
committerGaming4JC <g4jc@openmailbox.org>2017-03-04 08:49:53 -0500
commit0252d3f29a493d834121df40f2e16298e20f949e (patch)
tree20bdffa7f41db69895d93671fe6fde02e71fe15c /pcr/i2p/i2prouter.service
parentd2a10d19460a35fbe7f75dc408791dbbfe7edc6d (diff)
downloadabslibre-0252d3f29a493d834121df40f2e16298e20f949e.tar.gz
abslibre-0252d3f29a493d834121df40f2e16298e20f949e.tar.bz2
abslibre-0252d3f29a493d834121df40f2e16298e20f949e.zip
add i2p to pcr
Diffstat (limited to 'pcr/i2p/i2prouter.service')
-rw-r--r--pcr/i2p/i2prouter.service19
1 files changed, 19 insertions, 0 deletions
diff --git a/pcr/i2p/i2prouter.service b/pcr/i2p/i2prouter.service
new file mode 100644
index 000000000..7c278c833
--- /dev/null
+++ b/pcr/i2p/i2prouter.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=Invisible Internet Project
+After=network.target
+
+[Service]
+Type=forking
+User=i2p
+PIDFile=/run/i2p/i2p.pid
+Environment=WRAPPER_CONF=/opt/i2p/wrapper.config
+ExecStart=/usr/bin/java-service-wrapper ${WRAPPER_CONF} \
+ wrapper.name=i2prouter wrapper.syslog.ident=i2prouter \
+ wrapper.daemonize=TRUE
+SendSIGKILL=no
+ExecReload=/bin/kill -USR1 $MAINPID
+ExecStop=/bin/kill -TERM $MAINPID
+SuccessExitStatus=0 2 3
+
+[Install]
+WantedBy=multi-user.target