Re: [PATCH f16-branch] (take II) Restart NetworkManager to use anaconda's initial ifcfg config (#727951)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/08/2011 11:41 AM, Radek Vykydal wrote:
NM is started by systemd before anaconda writes out initial ifcfg files
which results in creating of automatic default connections (e.g.
"Wired connection 1"). The settings of auto connections are not persistent
so we are ok just restarting the NM.

Just going to point out systemd path units that might be able to take care of this for you and you can save your self few lines of code in anaconda unfortunetly ( yet ) it only supports starting a service thus you need to *work around* that limitation by creating an additional unit which you would call from the path unit

So an example unit files for this would be.. ( node that unit name match thus no need for Unit= in the path file )

# network-restart.path

[Unit]
Description=Restarting NetworkManager When Config files are in place

[Path]
PathChanged=/etc/sysconfig/network-scripts

# network-restart.service

[Unit]
Description=Restarting NetworkManager

[Service]
Type=oneshot
ExecStart=/bin/systemctl restart NetworkManager
RemainAfterExit=yes

man systemd.path for details...

JBG

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux