This file contains 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 | |
### BEGIN INIT INFO | |
# Provides: iptables | |
# Required-Start: $remote_fs | |
# Required-Stop: $remote_fs | |
# Should-Start: $network $syslog | |
# Should-Stop: $network $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Firewall script |
This file contains 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/bash -x | |
# Thanks for justin campbell for his original code. | |
DIR=/tmp/watchdog | |
#replace this with your node number | |
NODE=41787 | |
# Create dir if it doesn't exist | |
if [ ! -d $DIR ]; then |