Re: shutdown messages

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

 



On Sun, 25 Mar 2018 09:27:01 +0200
François Patte <francois.patte@xxxxxxxxxxxxxxxxxxxx> wrote:

> On my f27 there is a netconsole service but, it starts before the
> network service and so fails to be launched... As it is a sysv service,
> I don't know how to confgure this service to start after network.

An option then might be to start the network on boot-up as soon
as possible, and on shutdown to take it down as late as possible.

As to the latter see one of the messages of Eyal Lebedinsky in
this thread:
"In my experience the network is taken down before the end of the
messages so you miss some."

Thanks, Eyal, for pointing to this ..

So on shutdown netconsole might be disconnected a little bit too 
early, IIUC ... 

That is, the order of starting services seems important.

In old sysv, IIRC, it was easy, to order the startup or shutdown
of services with something like creating simple K[NN] or S[NN] links 
to maybe /etc/init.d/, -- not so now with systemd ..

A not so helpful starting point might be "man systemd.preset".
Also: the files in /etc/systemd/system/ might give clues. 

The trick seems to be for startup to create a netconsole.service
(you might see its status via 'systemctl status netconsole'), and to
start networking before netconsole.

Maybe it's neccessary to create it for
/etc/systemd/system/ via 'systemd-sysv-install enable netconsole'
but that's a guess - don't do it until you're sure about it.
Better try:
/usr/lib/systemd/systemd-sysv-install --help
/usr/lib/systemd/systemd-sysv-install is-enabled netconsole

Yes, that looks strange: it seems systemctl doesn't support natively
netconsole, diverting action to 'systemd-sysv-install'

Look at this:

% systemctl is-enabled netconsole
netconsole.service is not a native service, redirecting to systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install is-enabled netconsole
disabled

Some hints on how to organize the timing of startup services:
https://fedoramagazine.org/systemd-unit-dependencies-and-order/
(see 'Unit order' on that page .. )

I have to set up netconsole for myself - so I might be back if I know
more.

HTH
-- 
Wolfgang Pfeiffer
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux