7dc9f6e
[Unit]
7dc9f6e
Description=Direwolf Sound Card-based AX.25 TNC
7dc9f6e
After=sound.target
7dc9f6e
7dc9f6e
[Service]
7dc9f6e
EnvironmentFile=/etc/sysconfig/direwolf
7dc9f6e
User=direwolf
821d8d4
# You may want to set the audio levels of your radio-connected soundcard
821d8d4
# prior to starting direwolf.  To do so, copy this file to /etc/systemd/system/
821d8d4
# and edit the ExecStartPre line to point to your preferred method of
821d8d4
# doing so.  Then run systemctl daemon-reload so systemd uses your updated
821d8d4
# copy of this service file.
821d8d4
#ExecStartPre=/some/script.sh
a2eb941
ExecStart=/bin/bash -ce "exec /usr/bin/direwolf $DIREWOLF_ARGS >>/var/log/direwolf/stdout 2>>/var/log/direwolf/stderr"
a2eb941
Restart=always
7dc9f6e
StandardOutput=null
7dc9f6e
StandardError=null
7dc9f6e
ProtectSystem=strict
7dc9f6e
ProtectHome=true
7dc9f6e
ReadWritePaths=/var/log/direwolf
7dc9f6e
7dc9f6e
[Install]
7dc9f6e
WantedBy=multi-user.target
7dc9f6e
DefaultInstance=1