SERVICE=PROCESS_NAME if ps -ae | grep -v grep | grep "$SERVICE" > /dev/null then kill `pgrep -f "$SERVICE"` dbus-send --print-reply --dest=com.meego.core.MNotificationManager/notificationmanager com.meego.core.MNotificationManager.addNotification uint32:0 uint32:0 string:'device' string:'' string:"Standby Screen Off" string:'' string:'' uint32:0 else "$SERVICE" & dbus-send --print-reply --dest=com.meego.core.MNotificationManager/notificationmanager com.meego.core.MNotificationManager.addNotification uint32:0 uint32:0 string:'device' string:'' string:"Standby Screen On" string:'' string:'' uint32:0 fi