This is an old revision of the document!


Example AX.25 config files using systemd

  • These files are taken from a system setup with scripts found here

systemd files in /etc/systemd/system

ax25dev.service

[Unit]
Description=AX.25 device
BindsTo=direwolf.service
Requires=direwolf.service
After=direwolf.service
#After=network-online.target

[Service]
# Use for debug
Type=oneshot
ExecStart=/bin/bash -c '/etc/ax25/ax25-upd'
RemainAfterExit=yes

# Install KISS Parameter: P=32, W=200, TX-Delay=500
#  -l txtail   Sets the TX Tail time in milliseconds, in steps of ten milliseconds only
#  -r persist  Sets the persist value. range 0 to 255.
#  -s slottime Sets  the slottime in milliseconds, in steps of ten milliseconds only
#  -t txdelay  Sets the TX Delay in milliseconds, in steps of ten milliseconds only

ExecStartPost=/bin/bash -c '/usr/local/sbin/kissparms -p udr0 -f no -l 30 -r 128 -s 20 -t 400'

ExecStop=/bin/bash -c '/etc/ax25/ax25-downd'

[Install]
WantedBy=multi-user.target

ax25-mheard.service

[Unit]
Description=AX.25 mheard daemon
After=ax25dev.service
After=sys-subsystem-net-devices-ax0.device
BindsTo=sys-subsystem-net-devices-ax0.device

[Service]
ExecStart=/usr/local/sbin/mheardd -f -n 150
#RestartSec=1min
#Restart=on-failure

[Install]
WantedBy=multi-user.target

ax25dev.path

[Path]
PathExists=/tmp/kisstnc

[Install]
WantedBy=multi-user.target

ax25d.service

Unit]
Description=General purpose AX.25 daemon
After=ax25dev.service
After=sys-subsystem-net-devices-ax0.device

[Service]
ExecStart=/usr/local/sbin/ax25d -l

[Install]
WantedBy=multi-user.target

direwolf.service

[Unit]
Description=Direwolf Daemon
After=sound.target

[Service]
ExecStartPre=/bin/rm -f /tmp/kisstnc
ExecStart=/usr/bin/direwolf -t 0 -c /etc/direwolf.conf -p
ExecStop=/bin/rm -f /tmp/kisstnc

[Install]
WantedBy=multi-user.target
DefaultInstance=1
plu/example_config_files/systemd.1543005094.txt.gz · Last modified: 2018/11/23 12:31 by gunn
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0