![]() |
[Help] dbus-scripts daemon sometimes don't listen
Since I have ongoing problems with wifi power saving mode and my AP which does not seem to like it I disabled power saving for all connections and wrote a little script to control power saving on wlan0 via iwconfig. Every time I receive or initiate a call dbus-scripts runs this script to disable power saving.
This works fine so far but sometimes dbus-scipts seem not to listen for events anymore and therefore doesn't execute the script. To be sure and to examine the problem I started dbus-scripts by upstart in the following way: Code:
exec run-standalone.sh /usr/sbin/dbus-scripts --debug --session > \ Actually I have two daemons running, one for system events and one for session events. The daemon listening to system events gets started by upstart with the script in event.d provided by the dbus-scripts package. The second daemon listening to session events gets started like described above - it's basically the same script as described here. In /etc/dbus-scripts.d I placed a file with the following contents: Code:
#:power saving on Code:
#!/bin/sh Code:
#!/bin/sh |
Re: [Help] dbus-scripts daemon sometimes don't listen
Actually i have the same problem with dbus-scripts with --session ...
apparently it dies and leave subprocesses in zombie state ... for example , if inside a session event i call a script that has a line with 'sleep' command, the sleep will became a zombie and the dbus-script-session will stop listening ... |
Re: [Help] dbus-scripts daemon sometimes don't listen
I have to admit I never tested --session. Does the issue with sleep in script occur always, or only sometimes?
|
Re: [Help] dbus-scripts daemon sometimes don't listen
well , i will have to test more ... but apparently always ...
I removed the sleep and try a command like: pidof skyhost >> /tmp/pidof (pidof became a zombie and dbus-script --session) stop listening ... have tried ps -xau > /tmp/ps , always zombie ... if i do dbus-scripts --session --debug i can see it matches but stop listening ... |
Re: [Help] dbus-scripts daemon sometimes don't listen
i did a very small test
# cat /etc/dbus-scripts/skype_call /opt/customs/scripts/test * com.nokia.policy.telephony com.nokia.policy.telephony call_request /org/freedesktop/Telepathy/Connection/spirit/skype/* # cat /opt/customs/scripts/test #!/bin/sh pidof skyhost > /tmp/pidof # run-standalone.sh /usr/sbin/dbus-scripts --session tried to make a skype call , so the event call_request would be signaled now ps shows me: 2089 root 2160 S /bin/sh 2103 root 2084 S /bin/sh /usr/bin/run-standalone.sh /usr/sbin/dbus-scr 2112 root 3324 S /usr/sbin/dbus-scripts --session 2115 root 2084 D /bin/sh /opt/customs/scripts/test :1.19 com.nokia.pol 2116 root 0 Z [pidof] -> ZOMBIE pstree shows me : sh───run-standalone.───dbus-scripts───test───pidof and here dbus-script is locked and not listening or executing anything anymore ... |
All times are GMT. The time now is 00:57. |
vBulletin® Version 3.8.8