Opened 11 months ago

Closed 3 months ago

#2308 closed enhancement (fixed)

[arm64] no java wrapper for arm64 available - provide basic systemd unit instead

Reported by: backup Owned by:
Priority: minor Milestone: 0.9.41
Component: wrapper Version: 0.9.36
Keywords: arm64 wrapper runplain systemd Cc:
Parent Tickets: Sensitive: no

Description

Raspberry Pi 3 Model B / 64bit support

On https://wrapper.tanukisoftware.com/doc/english/download.jsp#stable there seems to be no wrapper for arm64 available.
For this platform, and others who have no suitable wrapper we could provide a basic systemd unit, e.g. for starters

# /etc/systemd/system/i2p.service
[Unit]
Description=I2P Service
Requires= local-fs.target network.target time-sync.target network-online.target
After=    local-fs.target network.target time-sync.target network-online.target

[Service]
ExecStart=/home/i2puser/i2p/runplain.sh
#PIDFile=${I2PTEMP}/router.pid"
User=i2puser
Group=i2puser

[Install]
WantedBy=multi-user.target

The user/group and the path to runplain.sh have to be configured by the installer or we tell the user to edit the unit accordingly.

Thanks
backup

Subtickets

Change History (5)

comment:1 Changed 11 months ago by zzz

see also #1840

comment:3 Changed 7 months ago by backup

Archarm / AArch64 has support too:
https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-3

This is a working example, also java is restarted by systemd on failure.
pkill required for the ExecStop?.
Maybe a simple start/stop/status can be included in runplain.sh instead.

# /etc/systemd/system/i2p.service
[Unit]
Description=I2P Service Plain
Requires= local-fs.target network.target time-sync.target network-online.target
After=    local-fs.target network.target time-sync.target network-online.target

[Service]
Type=forking
ExecStart=/home/i2puser/i2p/runplain.sh
ExecStop=pkill -F /tmp/router.pid
PIDFile=/tmp/router.pid
User=i2puser
Group=i2puser
TimeoutStartSec=60
Restart=always
RestartSec=60

[Install]
WantedBy=multi-user.target

comment:4 Changed 7 months ago by zzz

see also #1999

comment:5 Changed 3 months ago by zzz

Component: installerwrapper
Milestone: undecided0.9.41
Resolution: fixed
Status: newclosed

Tanuki started releasing aarch64 binaries in 3.5.38; I just checked in 3.5.39, and added the armv7 and aarch64 binaries, and modified postinstall.sh.

Untested; requires new install. In af6533e0f14277bbce07789f700d3d1851225e63 to be 0.9.40-2

Note: See TracTickets for help on using tickets.