Re: [systemd-devel] systemctl condreload - Is it a thing?

2019-01-30 Thread Ian Pilcher

On 1/30/19 10:19 AM, Lennart Poettering wrote:

The official name for "condreload" is "try-reload-or-restart". The
"condreload" name is supported still to make things easier for compat
cases, but I'd recommend not using it anymore. It's unlikely to go
away anytime soon though.


Makes sense.  (I suspected that might be the case, but I was thrown off
by the "or-restart" part.)


Generally, in systemd when we want to de-emphasize something redundant
or deprecated stuff we stop documenting it while still supporting it,
so that people stop using it slowly.


Well, that's one way to increase mailing list traffic.  ;-)

Thanks!

--

Ian Pilcher arequip...@gmail.com
 "I grew up before Mark Zuckerberg invented friendship" 

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] systemctl condreload - Is it a thing?

2019-01-30 Thread Lennart Poettering
On Mi, 30.01.19 10:07, Ian Pilcher (arequip...@gmail.com) wrote:

> $SUBJECT pretty much says it all.  It seems to work, but I can't find
> any mention of it in the documentation or with my Google searches.
>
> Is it deprecated and going away?

The official name for "condreload" is "try-reload-or-restart". The
"condreload" name is supported still to make things easier for compat
cases, but I'd recommend not using it anymore. It's unlikely to go
away anytime soon though.

Generally, in systemd when we want to de-emphasize something redundant
or deprecated stuff we stop documenting it while still supporting it,
so that people stop using it slowly.

Lennart

--
Lennart Poettering, Red Hat
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] systemctl condreload - Is it a thing?

2019-01-30 Thread Mantas Mikulėnas
On Wed, Jan 30, 2019 at 6:07 PM Ian Pilcher  wrote:

> $SUBJECT pretty much says it all.  It seems to work, but I can't find
> any mention of it in the documentation or with my Google searches.
>
> Is it deprecated and going away?
>

It's an old "compatibility alias" added in ~v20. (Apparently, ALT Linux
wanted to just do a straightforward "service O V" → "systemctl V O"
substitution or something like that.)

I don't know if it'll be removed or not, but as is the general rule with
everything not in official documentation, I would say _don't rely_ on its
existence (unless it was specifically added for your use case).

https://github.com/systemd/systemd/commit/64e5f1b721d76948e2987f65841dc087f684e1de

http://git.altlinux.org/people/piastry/packages/?p=service.git;a=commitdiff;h=ba51a53881638ff0d93172ae3778329b2d5b316e

-- 
Mantas Mikulėnas
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] systemctl condreload - Is it a thing?

2019-01-30 Thread Reindl Harald


Am 30.01.19 um 17:07 schrieb Ian Pilcher:
> $SUBJECT pretty much says it all.  It seems to work, but I can't find
> any mention of it in the documentation or with my Google searches.
> 
> Is it deprecated and going away?

"condrestart" and "condreload" are working just fine and aliases for
"try-reload" and "try-restart" as with the olld service-command while if
find "try" a dumb wording to be honest given that it's executed based on
the condition "is that service running" and not "tried"
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel