Last active
August 29, 2015 14:07
-
-
Save fvdnabee/4defa281bcb7fe676b56 to your computer and use it in GitHub Desktop.
pfsense: script to restart sixxs-aiccu daemon that hangs once in while...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
@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
Always great to be pointed out that people have a need for "restart" things but that they clearly are unable to read a FAQ:
https://www.sixxs.net/faq/aiccu/?faq=tic