Re: Living with Systemd

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

 



On 7/22/11, Arthur Dent <misc.lists@xxxxxxxxxxxxxxxx> wrote:
> I was really hoping that someone would reply saying something like "You
> idiot! - Don't you know, all you need to do is to use the
> --tellmewhatswrong switch with systemctl and all will be revealed!" But
> alas, no-one has said anything...

Not quite as easy as that, but here's what you can do:

Edit /etc/systemd/system.conf and set "DefaultStandardOutput" to one
of "syslog", "kmsg", "kmsg+console", or "syslog+console".  That will
redirect stdout from it's default destination of /dev/null to the
place you set.  You may set "DefaultStandardError" too if you wish,
but by default it goes to the same place as DefaultStandardOutput.
(Note that you can also do this per-service by editing it's unit file
[see "man systemd.exec" for details] or at boot-time via the kernel
argument "systemd.default_standard_output".)

Then, just run systemctl daemon-reexec (in the case of editing
system.conf) to make your change take effect, start the service, and
check the output where you told it to send it along to.

-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

[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