Skip to content

Instantly share code, notes, and snippets.

@fvdnabee
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fvdnabee/4defa281bcb7fe676b56 to your computer and use it in GitHub Desktop.
Save fvdnabee/4defa281bcb7fe676b56 to your computer and use it in GitHub Desktop.
pfsense: script to restart sixxs-aiccu daemon that hangs once in while...
#!/bin/sh
# Restart sixxs-aiccu...
/usr/bin/logger -t sixxs-aiccu-restart "Killing sixxs-aiccu daemon"
pidVar=`cat /var/run/aiccu.pid`
# sleep 10 seconds so the daemon is definitely killed
kill -9 $pidVar
sleep 10
# send signal again (for good measure)
kill -9 $pidVar
/usr/bin/logger -t sixxs-aiccu-restart "Starting sixxs-aiccu daemon"
/usr/local/etc/rc.d/sixxs-aiccu-start.sh
@fvdnabee
Copy link
Author

@massar: Absolutely, although this issue might be related to the aiccu daemon itself. I made a thread on your forums at https://www.sixxs.net/forum/?msg=general-12505873.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment