direwolf/systemd/direwolf.service

26 lines
818 B
SYSTEMD

[Unit]
Description=Direwolf Sound Card-based AX.25 TNC
After=sound.target
After=network.target
[Service]
EnvironmentFile=/etc/sysconfig/direwolf
User=direwolf
# You may want to set the audio levels of your radio-connected soundcard
# prior to starting direwolf. To do so, copy this file to /etc/systemd/system/
# and edit the ExecStartPre line to point to your preferred method of
# doing so. Then run systemctl daemon-reload so systemd uses your updated
# copy of this service file.
#ExecStartPre=/some/script.sh
ExecStart=/usr/bin/direwolf $DIREWOLF_ARGS
Restart=always
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/var/log/direwolf
[Install]
WantedBy=multi-user.target
# alternate version: https://www.f4fxl.org/start-direwolf-at-boot-the-systemd-way/
# or: https://groups.io/g/direwolf/message/9883