On Tue, Mar 25, 2014 at 1:11 PM, Jan Stary <h...@stare.cz> wrote: > On Mar 25 11:19:12, sven.falem...@gmail.com wrote: >> Dealing with the removal of user script for dhclient is ok. >> On the other where's the PID file of this daemon ???? >> This soft answer HUP,INT.QUIT,USR1 et 2 yet i dont find a way to get >> the pid (listing process is dirty) > > No it's not: pkill(1), pgrep(1).
# ps auxww | grep dhclient root 21826 0.0 0.1 776 396 ?? Is 3:33PM 0:00.01 dhclient: vr0 [priv] (dhclient) _dhcp 12556 0.0 0.1 928 500 ?? Is 3:33PM 0:00.01 dhclient: vr0 (dhclient) # pgrep -f "dhclient: vr0 [priv] (dhclient)" # pgrep -f "dhclient: vr0 [priv]" # pgrep -f "dhclient: vr0" 12556 21826 Where do I kill ? (there is also a few other dhclient running) > >> Is there a reason for dhclient >> to not have a --pid-file or at least a default one in >> /var/run/dhclient.$if.pid ? > > Yes. > Would you please gives at least one reason ? -- --------------------------------------------------------------------------------------------------------------------- () ascii ribbon campaign - against html e-mail /\