summarylogtreecommitdiffstats
path: root/i2prouter.service
blob: ce1da03bc44140460b39a46afda6940e3c8f3165 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[Unit]
Description=Invisible Internet Project
After=network.target
RequiresOverridable=tlsdate.service ntpd.service

[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