You are not logged in.

#1 2008-05-06 13:33:12

iggy
Member
From: Germany, L.E. - Leipzig
Registered: 2004-10-17
Posts: 367

"netcfg2 -a" does not remove "/var/run/daemons/net-profiles"

hello!

i have found out, that a "netcgf2 -a" does not remove /var/run/daemons/net-profiles. after that i have to stop the net-profiles daemon by hand. i connect to networks with "netcfg2 <profile>", the net-profiles daemon will be started automatically by that command.

is this an issue?

another problem i have is, that netcfg2 even cannot connect to a network automatically, if i have two networks with the same beginning:
for example: network a: foo; network b: foobar - when i want to connect to "foo" it uses the "foobar" profile, because the name of the profile file is listed before the name of the file from network a.

bye iggy


sorry for my bad english smile

Offline

#2 2008-05-06 13:37:43

bender02
Member
From: Germany
Registered: 2007-02-04
Posts: 1,328

Re: "netcfg2 -a" does not remove "/var/run/daemons/net-profiles"

The first thing: I thing netcfg2 should not touch anything in /var/run/daemons, since that's the job of scripts in /etc/rc.d/* It's the same for any daemon you run - if you kill it manually, not using /etc/rc.d/<whatever> stop, then you have to clean up /var/run/daemons/<whatever> yourself as well.

The second thing is probably a bug/feature - depends on how you're looking at it wink

Offline

#3 2008-05-06 13:51:54

iggy
Member
From: Germany, L.E. - Leipzig
Registered: 2004-10-17
Posts: 367

Re: "netcfg2 -a" does not remove "/var/run/daemons/net-profiles"

The first thing: I thing netcfg2 should not touch anything in /var/run/daemons, since that's the job of scripts in /etc/rc.d/* It's the same for any daemon you run - if you kill it manually, not using /etc/rc.d/<whatever> stop, then you have to clean up /var/run/daemons/<whatever> yourself as well.

before connecting with netcfg2 there is no "net-profiles" in /var/run/daemons. after netcfg2 <profile> it is. after "netcfg2 -a" the file is still there, so it indicates net-profiles-daemon is still running.

Last edited by iggy (2008-05-06 13:52:28)


sorry for my bad english smile

Offline

#4 2008-05-06 18:11:17

bender02
Member
From: Germany
Registered: 2007-02-04
Posts: 1,328

Re: "netcfg2 -a" does not remove "/var/run/daemons/net-profiles"

OK, then it's a bug. File one smile
To fix for yourself, just edit /usr/bin/netcfg2 (it's a bash script) and replace the line
         all_down;;
by
         all_down
         rm_daemon net-profiles
         ;;

Offline

#5 2008-05-07 11:51:11

iggy
Member
From: Germany, L.E. - Leipzig
Registered: 2004-10-17
Posts: 367

Re: "netcfg2 -a" does not remove "/var/run/daemons/net-profiles"

hm, ok, i will do that. i filed a bug report, see:

task 10369

Last edited by iggy (2008-05-07 11:55:46)


sorry for my bad english smile

Offline

Board footer

Powered by FluxBB