os=$(cat "$__global/explorer/os")

#if grep -q "$something_from_message_in" "$__messages_in"; then

case "${os}" in
    alpine|gentoo)
        echo /etc/init.d/nginx reload
    ;;
    debian|ubuntu)
        echo "/usr/bin/systemctl reload nginx"
    ;;
esac

#fi


#if grep -q "^__your_type/object/id:conf_file_changed" "$__messages_in"; then
#    echo "$reload_command"
#fi

# Testing env -> variables are not shared between the type's manifest and the gencode-remote script
# Maybe the variables are eval-ed on the local host and won't get transferred to the remote host?
#echo "echo \"$reload_command\" >> /tmp/cmd"