path: bosixnet_2.0-2.2/src/bosixnet-daemon/update_hosts
# Protect file with list of hosts from simultaneous editing
SCRIPT_NAME="$(basename ${0})"
PROCESS_ID="$(pidof -x ${SCRIPT_NAME})"
if [ "$(echo ${PROCESS_ID} | tr ' ' '\n' | wc -l)" != "1" ]; then
    echo "Another instance of ${SCRIPT_NAME} script is already running."
