Re: [systemd-devel] Inactive/dead services that are enabled are indistinguishable from unused or oneshot services

2011-03-18 Thread Mike Kazantsev
On Thu, 17 Mar 2011 22:48:36 +0100 Lennart Poettering lenn...@poettering.net wrote: On Thu, 17.03.11 10:20, Mike Kazantsev (mk.frag...@gmail.com) wrote: On Thu, 17 Mar 2011 01:39:19 +0100 Lennart Poettering lenn...@poettering.net wrote: Experiencing several reboots on a machine with

Re: [systemd-devel] Inactive/dead services that are enabled are indistinguishable from unused or oneshot services

2011-03-18 Thread Mike Kazantsev
On Thu, 17 Mar 2011 22:58:00 +0100 Lennart Poettering lenn...@poettering.net wrote: On Thu, 17.03.11 22:48, Lennart Poettering (lenn...@poettering.net) wrote: Unfortunately, new rsyslog.service (and services using systemctl stop directly) can affect such display, which I think shows the

Re: [systemd-devel] Inactive/dead services that are enabled are indistinguishable from unused or oneshot services

2011-03-17 Thread Andrey Borzenkov
On Thu, Feb 24, 2011 at 11:55 AM, Mike Kazantsev mk.frag...@gmail.com wrote: Something like systemctl --enabled would certainly be much more useful for such cases than the current systemctl --all, yet there will still be a lot of oneshot stuff, which are supposed to be dead, so a separate

Re: [systemd-devel] Inactive/dead services that are enabled are indistinguishable from unused or oneshot services

2011-03-17 Thread Mike Kazantsev
On Thu, 17 Mar 2011 09:52:21 +0300 Andrey Borzenkov arvidj...@mail.ru wrote: On Thu, Feb 24, 2011 at 11:55 AM, Mike Kazantsev mk.frag...@gmail.com wrote: Something like systemctl --enabled would certainly be much more useful for such cases than the current systemctl --all, yet there will

Re: [systemd-devel] Inactive/dead services that are enabled are indistinguishable from unused or oneshot services

2011-03-17 Thread Lennart Poettering
On Thu, 17.03.11 10:20, Mike Kazantsev (mk.frag...@gmail.com) wrote: On Thu, 17 Mar 2011 01:39:19 +0100 Lennart Poettering lenn...@poettering.net wrote: On Thu, 24.02.11 13:55, Mike Kazantsev (mk.frag...@gmail.com) wrote: Something like systemctl --enabled would certainly be much more

Re: [systemd-devel] Inactive/dead services that are enabled are indistinguishable from unused or oneshot services

2011-03-17 Thread Lennart Poettering
On Thu, 17.03.11 22:48, Lennart Poettering (lenn...@poettering.net) wrote: Unfortunately, new rsyslog.service (and services using systemctl stop directly) can affect such display, which I think shows the flawed assumption that enabled in systemd means should be active, period (with the

Re: [systemd-devel] Inactive/dead services that are enabled are indistinguishable from unused or oneshot services

2011-03-17 Thread Lennart Poettering
On Thu, 17.03.11 09:52, Andrey Borzenkov (arvidj...@mail.ru) wrote: I understand that there's already a looong TODO, but maybe it's possible to cram such systemctl view option(s) somewhere in that list? I was vaguely thinking about adding generic selection option to replace current

Re: [systemd-devel] Inactive/dead services that are enabled are indistinguishable from unused or oneshot services

2011-03-17 Thread Lennart Poettering
On Thu, 17.03.11 12:52, Mike Kazantsev (mk.frag...@gmail.com) wrote: --query Type=socket,dbus The latter is probably the way to go as it can be used to implement any custom query. And add better output format control of course :) It just needs some proper, but not too complicated,

Re: [systemd-devel] Inactive/dead services that are enabled are indistinguishable from unused or oneshot services

2011-03-17 Thread Michael Biebl
2011/3/17 Lennart Poettering lenn...@poettering.net: Hmm, I am not convinced we want to come up with our own matching syntax there. A different approach might be to just use awk here. awk has been invented for this kind of matching. So it might be nicer to just have a mode where we have an

Re: [systemd-devel] Inactive/dead services that are enabled are indistinguishable from unused or oneshot services

2011-03-16 Thread Lennart Poettering
On Thu, 24.02.11 13:55, Mike Kazantsev (mk.frag...@gmail.com) wrote: Something like systemctl --enabled would certainly be much more useful for such cases than the current systemctl --all, yet there will still be a lot of oneshot stuff, which are supposed to be dead, so a separate state for

Re: [systemd-devel] Inactive/dead services that are enabled are indistinguishable from unused or oneshot services

2011-03-16 Thread Mike Kazantsev
On Thu, 17 Mar 2011 01:39:19 +0100 Lennart Poettering lenn...@poettering.net wrote: On Thu, 24.02.11 13:55, Mike Kazantsev (mk.frag...@gmail.com) wrote: Something like systemctl --enabled would certainly be much more useful for such cases than the current systemctl --all, yet there will

[systemd-devel] Inactive/dead services that are enabled are indistinguishable from unused or oneshot services

2011-02-24 Thread Mike Kazantsev
Good day, With systemd on a non-desktop machine, I've stumbled upon such issue: some services that should be running start and then exit with error code 0 for some reason, usually unrelated to systemd (in my case it was a bogus SIGTERM, sent to a wrong process group, but I believe I've seen it