How to change startup command of "dhclient"

I want to add some extra flags to “dhclient” command running ubuntu 14.04,

dhclient starts at bootup and the default command I get using “ps” is as follows ,

/sbin/dhclient -d -q -sf /usr/lib/NetworkManager/nm-dhcp-helper -pf
/run/sendsigs.omit.d/network-manager.dhclient-eth0.pid -lf
/var/lib/NetworkManager/dhclient-cf3e1c07-94fa-44b7-a44b-5987b9ec596a-eth0.lease

I want to add “-w” flag to this.

I am looking in “/etc/apparmor.d/sbin.dhclient” but couldn’t find place where can i add this flag or from where “-d -q” flags are provided to this command.


Source: ubuntu

Leave a Reply