:: [devuan-dev] bug#903: init-system-h…
Top Page
Delete this message
Reply to this message
Author: Mark Hindley
Date:  
To: Andrew Bower, 903
Subject: [devuan-dev] bug#903: init-system-helpers: invoke-rc.d try-restart doesn't work for normally-off service
Andrew,

Thanks

On Mon, Aug 11, 2025 at 07:50:39PM +0100, Andrew Bower wrote:
> So far as I can tell, the correct tool for a post-rotation script to use to
> restart a service is 'invoke-rc.d', not 'service'. Is that correct?


I am not convinced it is (always?). This issue appears to have some relationship
to #881[1].

To me, disabling a sysvinit service by symlink but then starting it manually is
rather a systemd unit approach. If you want the post-rotation script to work in
that case, why not use service(8)?

According to man invoke-rc.d(8):

invoke-rc.d is a generic interface to execute System V style init script
/etc/init.d/name actions, obeying runlevel constraints as well as any local
policies set by the system administrator.

So disabled sysvinit symlinks are arguably local policies set by the system
administrator and invoke-rc.d is acting as advertised.

Mark

[1] https://bugs.devuan.org/881