Re: systemd.log_target= :: writing the log as "dmesg -dxt" would show

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

 



On Sat, Mar 17, 2012 at 6:53 AM, Adrian Sevcenco
<Adrian.Sevcenco@xxxxxxx> wrote:
> Hi! i would like to see the dmesg.shutdown files the way that i would
> see the current messages as i would do dmesg -dtx ...
> the most important would be the -d (i try to debug a huge (2 min) wait
> time at shutdown given by NetworkManager that its get killed after some
> timeout)
> (to see delta of time in below messages)
>
> [ 1278.283432] type=1130 audit(1331824261.256:101): user pid=0 uid=0
> auid=4294967295 ses=4294967295 msg=': comm="plymouth-reboot"
> exe="/bin/systemd" hostname=? addr=? terminal=? res=success'
> [ 1366.364382] systemd[1]: NetworkManager.service stopping timed out.
> Killing.
> [ 1366.366230] systemd[1]: NetworkManager.service changed stop-sigterm
> -> stop-sigkill

It's a bit of a hack, but you could just run that command on shutdown.
 Add a file /etc/systemd/system/dmesg-shutdown.service or so with
this:

[Unit]
Description=Dump Kernel Messages at Shutdown
DefaultDependencies=no
Before=shutdown.target

[Service]
Type=oneshot
ExecStart=/bin/bash -c 'dmesg -dtx > /var/log/dmesg-shutdown'

[Install]
WantedBy=shutdown.target

EOF

Then run `systemctl enable dmesg-shutdown.service`.

-T.C.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[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