[systemd-devel] Antw: Re: show journalctl while stopping?
Reindl Harald
h.reindl at thelounge.net
Fri Jan 24 09:01:57 UTC 2020
Am 24.01.20 um 09:45 schrieb Ulrich Windl:
>>>> Mantas Mikulenas <grawity at gmail.com> schrieb am 23.01.2020 um 19:32 in
> Nachricht
> <CAPWNY8XkBnZi52W5syh1mepV58sMcMFQMD6Q-YGpWkCW9aD-Nw at mail.gmail.com>:
>> On Thu, Jan 23, 2020 at 7:36 PM Reindl Harald <h.reindl at thelounge.net>
>> wrote:
>>
>>>
>>>
>>> Am 23.01.20 um 18:32 schrieb Roger Pack:
>>>> Forgive me if this is too naive, but would it be possible for
>>>> systemctl to "immediately start outputting logs" (journalctl type
>>>> output) while it is in the middle of running a command? Ex: while
>>>> running "systemctl stop my_server" it could show the logs so we could
>>>> see what is going on? I do miss that from the /etc/init.d days and
>>>> feel so blind with systemctl now.
>>>> Thoughts?
>>>
>>> and why don't you jsut write a shell alias or simple wrapper for such
>>> trivial tasks?
>>>
>>> frankly "systemctl restart" hast to shut up because otherwise it would
>>> trigger cron mails and when you have to write a special option anyways
>>> you can also wirte an alias and be done
>>>
>>
>> I don't think cron jobs are very high on systemctl's priority list.
>> Certainly lower than interactive use by the sysadmin. And if you actually
>> have to write a cron job, you can just add --quiet and be done?
>
> Similarly: Before bashing the proposal, why not think about an option that
> will enable that feature? Like "--verbose", "--monitor",
> "--whatever-you-like"..
i got annoyed by "I do miss that from the /etc/init.d days and feel so
blind with systemctl now" which is nonsense
sysvinit didn't even have the informations to show logs belonging to a
service
More information about the systemd-devel
mailing list