Skip to content

Instantly share code, notes, and snippets.

@9M2PJU
Created August 7, 2024 15:42
Show Gist options
  • Save 9M2PJU/6affaf3e3103edb99c6e91501392e5b9 to your computer and use it in GitHub Desktop.
Save 9M2PJU/6affaf3e3103edb99c6e91501392e5b9 to your computer and use it in GitHub Desktop.
Kill and Start APRSC
#!/bin/sh
#extract related files and folders to users home dir and run this script. with nochroot available environment. config file, logs dir and web dir must be on users home.
echo "Killing aprs now!"
sleep 1
killall -9 aprsc
nohup /usr/local/sbin/aprsc -f /usr/CRAP/piju/aprsc.conf -p /usr/CRAP/piju/aprsc/logs/aprsc.pid -o /usr/CRAP/piju/aprsc/logs/aprsc.log
echo "aprsc restarted!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment