ei5iybpastebin4
[Unit] Description=Direwolf Daemon Wants=network-online.target After=sound.target syslog.target network-online.target OnFailure=notify-pager@%i.service [Service] User=pi ExecStart=/bin/sh -c 'rtl_fm -f 144.80M -s 24000 - | direwolf -c /etc/direwolf.conf -t 0 -a 600 -' StandardOutput=syslog StandardError=syslog SyslogIdentifier=direwolf Restart=always [Install] WantedBy=multi-user.target
[Unit] Description=Send Notifications to DAPNET pager [Service] Type=oneshot ExecStart=/usr/local/bin/pagerNotify.sh %i [Install] WantedBy=multi-user.target
#!/bin/bash curl -H "Content-Type: application/json" -u callsign:password -d '{ "text": " Pi Alert: '"$1"'.service Failed", "callSignNames": ["EI5IYB"], "transmitterGroupNames": ["ei-all"], "emergency": false }' http://www.hampager.de:8080/calls echo 'Service' $1 'Failed' # Exit with success code exit 0 EOF
ei5iybpastebin4.txt · Last modified: 2024/03/26 23:07 by ei5iyb