Opened 15 months ago
Last modified 10 months ago
#2324 assigned defect
i2prouter doesnt recognize I2P running within Systemctl
Reported by: | anonymous maybe | Owned by: | Masayuki Hatta |
---|---|---|---|
Priority: | minor | Milestone: | 0.9.39 |
Component: | package/debian | Version: | 0.9.36 |
Keywords: | systemd | Cc: | |
Parent Tickets: | Sensitive: | no |
Description
i2prouter status doesnt recognize i2p status if its run through systemctl:
user@host:~$ sudo systemctl status i2p ● i2p.service - load-balanced unspoofable packet switching network Loaded: loaded (/lib/systemd/system/i2p.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2018-10-03 13:53:55 UTC; 1min 15s ago Process: 868 ExecStart=/usr/sbin/wrapper $I2P_ARGS (code=exited, status=0/SUCCESS) Process: 863 ExecStartPre=/bin/chmod 750 /var/log/i2p (code=exited, status=0/SUCCESS) Process: 857 ExecStartPre=/bin/chown -R ${I2PUSER}:${I2PUSER} /var/log/i2p /run/i2p /tmp/i2p-daemon (code=exited, status=0/SUCCESS) Process: 833 ExecStartPre=/bin/mkdir -p /tmp/i2p-daemon (code=exited, status=0/SUCCESS) Main PID: 870 (wrapper) Tasks: 62 (limit: 4915) CGroup: /system.slice/i2p.service ├─870 /usr/sbin/wrapper /etc/i2p/wrapper.config wrapper.java.additional.1=-DloggerFilenameOverride=/var/log/i2p/log-router-@.txt wrapper.java.additional.10 └─950 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -DloggerFilenameOverride=/var/log/i2p/log-router-@.txt -Di2p.dir.base=/usr/share/i2p -Dwrapper.logfile Oct 03 13:53:55 host systemd[1]: Starting load-balanced unspoofable packet switching network... Oct 03 13:53:55 host systemd[1]: Started load-balanced unspoofable packet switching network. user@host:~$ i2prouter status I2P Service is not running. user@host:~$
Expected Behavior:
to recognize I2P status
Actual Behavior:
it doesnt recognize I2P status
Subtickets
Change History (3)
comment:1 Changed 15 months ago by
Component: | other → package/debian |
---|---|
Owner: | set to Masayuki Hatta |
Status: | new → assigned |
comment:2 Changed 11 months ago by
Keywords: | systemd added |
---|
comment:3 Changed 10 months ago by
Milestone: | undecided → 0.9.39 |
---|
Milestone set to .39 as requested by mhatta
Note: See
TracTickets for help on using
tickets.
Installing fresh 0.9.37 shows similar problems on a Arch Linux:
And running
to install the systemd unit results in following error in the journalctl when doing
# probably root-cause:
I found this:
and systemd (?) deletes the invalid i2p.pid, although i2p is running, resulting in status errors on further calls on the status of the i2p process.
# Proposed solution:
Add this to the systemd unit i2p.service:
where i2puser has to be replaced by the provided RUN_AS_USER from i2p/i2prouter.
In these case runuser/su should not be called inside i2p/i2prouter script of course.
Thanks very much,
backup