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

direwolf.conf

#############################################################
#                                                           #
#               Configuration file for Dire Wolf            #
#                                                           #
#                   Linux version                           #
#                                                           #
#############################################################
#
# Consult the User Guide for more details on configuration options.

#############################################################
#                                                           #
#               FIRST AUDIO DEVICE PROPERTIES               #
#               (Channel 0 + 1 if in stereo)                #
#                                                           #
#############################################################


ADEVICE plughw:CARD=udrc,DEV=0 plughw:CARD=udrc,DEV=0

ACHANNELS 2

#############################################################
#                                                           #
#               CHANNEL 0 PROPERTIES                        #
#                                                           #
#############################################################

CHANNEL 0
PTT GPIO 12
MODEM 1200
MYCALL N7NIX-1

#############################################################
#                                                           #
#               CHANNEL 1 PROPERTIES                        #
#                                                           #
#############################################################

CHANNEL 1
PTT GPIO 12
MODEM 1200
MYCALL N7NIX-2

#############################################################
#                                                           #
#               VIRTUAL TNC SERVER PROPERTIES               #
#                                                           #
#############################################################

AGWPORT 8000
KISSPORT 8001
plu/example_config_files/systemd.1543005573.txt.gz · Last modified: 2018/11/23 12:39 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