Displaying 2 results from an estimated 2 matches for "0af9fc76".
2015 Sep 22
2
NOTIFYCMD shell script problem driving me NUTS
Either I am missing something or I am really STUPID.
1. I have added a user, named nutmon, to the nut group.
2. In upsmon.conf I have set RUN_AS_USER nutmon .
3. I have NOTIFYCMD /etc/nut/notifyme.sh and it is set as 755, so should be
executable by everyone.
4. I have the NOTIFYFLAG set as SYSLOG+WALL+EXEC, so the shell should
execute.
This is the shell script :
#!/bin/bash
#
# NUT NOTIFYCMD
2015 Sep 22
0
NOTIFYCMD shell script problem driving me NUTS
...te:
> notify-send
notify-send needs a DBUS_SESSION_BUS_ADRESS to work right. Look around
for code snippets to get this.
--
-- Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20150922/0af9fc76/attachment.html>