From 736f5b9a7c32a22a0c90027709a12e587bdf68fe Mon Sep 17 00:00:00 2001 From: shockrah Date: Sat, 3 Dec 2022 14:03:10 -0800 Subject: [PATCH] Start script for notification daemon --- launch_notification_daemon.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 launch_notification_daemon.sh diff --git a/launch_notification_daemon.sh b/launch_notification_daemon.sh new file mode 100644 index 0000000..2836e69 --- /dev/null +++ b/launch_notification_daemon.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +set -e + +# Conditionally start the notification daemon + +if pgrep noti > /dev/null ; then + echo "Notification daemon already started" +else + echo "Starting notification-daemon" + /usr/lib/notification-daemon/notification-daemon & +fi