summaryrefslogtreecommitdiff
path: root/pcr/i2p/i2prouter.service
blob: 5a80c870e9fcf6b57e6684aae6d67d6b890262d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# It's not recommended to modify this file because it will be
# overwritten during package upgrades.  If you want to make changes, the
# best way is to create a file "/etc/systemd/system/i2prouter.service.d/foo.conf"
# and make your changes there. This file will be parsed after the file
# i2p.service itself is parsed.

[Unit]
Description=Invisible Internet Project
After=network.target time-sync.target

[Service]
Type=forking
User=i2p
PIDFile=/run/i2p/i2p.pid

NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
DeviceAllow=/dev/null rw
DeviceAllow=/dev/urandom r
LimitNOFILE=4096

ExecStart=/usr/bin/java-service-wrapper /opt/i2p/wrapper.config \
    wrapper.name=i2prouter \
    wrapper.syslog.ident=i2prouter \
    wrapper.daemonize=TRUE TZ=UTC
ExecReload=/bin/kill -USR1 $MAINPID
ExecStop=/bin/kill -TERM $MAINPID
SendSIGKILL=no
SuccessExitStatus=0 2 3

[Install]
WantedBy=multi-user.target