Blob Blame History Raw
#!/bin/bash

# Check if named is running
/sbin/service named status > /dev/null 2>&1 || exit 0

[ "$2" = 'up' -o "$2" = 'down' ] && /sbin/service named reload