#!/bin/bash
omgstopall

OS=$(omgsysteminfo --filter="os.name" --val)
if [ "${OS}" = "ubuntu" ]; then
    /usr/bin/switchsyslog
    which /etc/init.d/avahi-daemon 2>&1 && /etc/init.d/avahi-daemon restart
    /etc/init.d/omg.start
else
    /usr/bin/switchsyslog
    service omg restart
fi

