You are not logged in.

#1 2012-11-06 08:48:04

wzyboy
Member
Registered: 2012-01-21
Posts: 11

[systemd] rc.d-style output when starting/stopping daemons

Hi everyone,

since polkit is deprecated by Arch Linux and many packages depends on systemd-logind instead, I have to switch to systemd. But I really miss rc.d-style output! Just like this:

# rc.d restart foobar
:: Stopping foobar...             [ DONE ]
:: Starting foobar...             [ DONE ]

netcfg also uses this "Arch style":

# netcfg -r foobar
:: foobar down                    [ DONE ] 
:: foobar up                      [ DONE ]

Removing 'quiet' from kernel parameters will output simliar messages on boot. But when I log into X and run 'sudo systemctl restart foobar.service' or other commands in a Terminal Emulator, I cannot see any output. Neither the pretty 'Arch style' output nor normal 'ugly' black-and-white outputs.

I tried to modify /etc/systemd/system.conf, making:

DefaultStandardOutput=journal+console
DefaultStandardError=inherit+console

..., and reboot the system. But I still cannot get output when running  'sudo systemctl restart foobar.service'.

Can anyone help me getting back rc.d-style / Arch style output when starting/stopping daemons with systemctl? I really miss them!


BTW, I've tried 'sudo systemctl restart' with dnsmasq.service, httpd.service, mysqld.service, etc. None of them outputs...

Thanks in advance.

Last edited by wzyboy (2012-11-06 09:47:23)

Offline

#2 2012-11-06 09:10:04

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,668

Re: [systemd] rc.d-style output when starting/stopping daemons

I think it only outputs a message on failure.

Or you could try:

https://bbs.archlinux.org/viewtopic.php?pid=1180297

Last edited by loafer (2012-11-06 09:12:38)


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#3 2012-11-06 09:25:55

wzyboy
Member
Registered: 2012-01-21
Posts: 11

Re: [systemd] rc.d-style output when starting/stopping daemons

Thanks! That's a lifesaver!

Offline

Board footer

Powered by FluxBB