source: debian/i2p.service @ 5d1796b

Last change on this file since 5d1796b was bfba732, checked in by kytv <kytv@…>, 6 years ago

Debian: Add systemd support (ticket #1208)

Currently just for Debian unstable and Ubuntu Saucy and newer.

  • Property mode set to 100644
File size: 971 bytes
Line 
1[Unit]
2Description=load-balanced unspoofable packet switching network
3After=network.target
4
5[Service]
6Type=forking
7EnvironmentFile=/etc/default/i2p
8Environment="I2P_ARGS=/etc/i2p/wrapper.config \
9 wrapper.java.additional.1=-DloggerFilenameOverride=/var/log/i2p/log-router-@.txt \
10 wrapper.java.additional.10=-Dwrapper.logfile=/var/log/i2p/wrapper.log \
11 wrapper.java.additional.11=-Di2p.dir.pid=/run/i2p \
12 wrapper.java.additional.12=-Di2p.dir.temp=/tmp/i2p-daemon \
13 wrapper.logfile=/var/log/i2p/wrapper.log \
14 wrapper.pidfile=/run/i2p/i2p.pid\
15 wrapper.java.pidfile=/run/i2p/routerjvm.pid \
16 wrapper.daemonize=TRUE" TZ=UTC
17User=i2psvc
18PermissionsStartOnly=true
19ExecStartPre=/bin/mkdir -p /run/i2p /tmp/i2p-daemon
20ExecStartPre=/bin/chown -R ${I2PUSER}:${I2PUSER} /var/log/i2p /run/i2p /tmp/i2p-daemon
21ExecStartPre=/bin/chmod 750 /var/log/i2p
22ExecStart=/usr/sbin/wrapper "$I2P_ARGS"
23ExecStopPost=/bin/rm -rf /run/i2p /tmp/i2p-daemon
24
25[Install]
26WantedBy=multi-user.target
Note: See TracBrowser for help on using the repository browser.