Adam Tkac 2af3ea
#!/bin/bash
Adam Tkac 2af3ea
Adam Tkac 2af3ea
# Check if named is running
Adam Tkac 2af3ea
/sbin/service named status > /dev/null 2>&1 || exit 0
Adam Tkac 2af3ea
Adam Tkac 2af3ea
[ "$2" = 'up' -o "$2" = 'down' ] && /sbin/service named reload