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

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

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

Description=Restarting NetworkManager When Config files are in place


# network-restart.service

Description=Restarting NetworkManager

ExecStart=/bin/systemctl restart NetworkManager

man systemd.path for details...


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