You are not logged in.
Pages: 1
Hello guys,
I try to set up a dispatcher functionality that I used in the past. Everything should be fine but the dispatcher script won't be executed. I don't know why...
At first the dispatcher script that is definitively executable.
robert@thinkpad ~ $ ls -l /etc/NetworkManager/dispatcher.d/20_vpn
-rwxr-xr-x 1 root root 461 2011-02-06 14:31 /etc/NetworkManager/dispatcher.d/20_vpn
robert@thinkpad ~ $ sudo cat /etc/NetworkManager/dispatcher.d/20_vpn
#!/bin/sh
INTERFACE=$1 # The interface which is brought up or down
STATUS=$2 # The new state of the interface
case "$STATUS" in
'up') # $INTERFACE is up
sudo DISPLAY=:0 /usr/bin/python /etc/NetworkManager/vpn-up.py
;;
'pre-up') # $INTERFACE is up
sudo DISPLAY=:0 /usr/bin/python /etc/NetworkManager/vpn-up.py
;;
'*') # $INTERFACE is up
sudo DISPLAY=:0 /usr/bin/python /etc/NetworkManager/vpn-up.py
;;
esac
Of course I can run the command to start the python script manually so there has to be a direct problem with the dispatcher.
Any tips?
Regards
Offline
Do you get wired messages from networkmanager during shutdown?
Offline
I have to correct my statement. There is one strange error output in syslog.
thinkpad nm-dispatcher.action: nm_dispatcher_action: Invalid connection: '(null)' / 'connection setting not found' invalid: 1
Feb 6 11:44:00 thinkpad nm-dispatcher.action: Script '/etc/NetworkManager/dispatcher.d/01ifupdown' exited with error status 1.
Feb 6 11:44:06 thinkpad nm-dispatcher.action: Script '/etc/NetworkManager/dispatcher.d/20_vpn' exited with error status 1.
Offline
I see much more, about 30 lines during shutdown. I see it only if gdm is not running.
Since ~ two weeks.
Offline
Coming soon.
Offline
I also get an error message during shutdown. Probably similar to hoschi's. But I wouldn't know anything about dispatcher, because it seems I don't sue it.
But if my network, after the shutdown error, doesn't work I just restart networkmanager and it works.
And I had this problem for much longer than both of you. I just didn't know how could I get the error message. And mostly everything worked. And as I said, restarting networkmanager solved most of problems I had.
Arch x86_64 ATI AMD APU KDE frameworks 5
---------------------------------
Whatever I do, I always end up with something horribly mis-configured.
Offline
As promised
http://www.ttyhoney.com/stuff/networkmanager.jpeg
This messages appears during shutdown in most cases (gdm is running, not running, gdm never started), but not allways.
Last edited by hoschi (2011-03-05 13:04:21)
Offline
Thank you. I wrote the developers on the mailing list and they told me that a general vpn assignment to specific network connections will be implemented in version 0.9.
Hence there will be no need for my configuration I tried above.
Until then I can wait or just stick with it manually.
Regards
Offline
Bug is here fixed in [testing]
Offline
Pages: 1