On 7/22/11, Arthur Dent <misc.li...@blueyonder.co.uk> 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@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

Reply via email to