Downside of using invoke-rc.d (restart|reload) on systemd?
From Andreas Metzler@21:1/5 to All on Sun Jul 16 14:30:01 2023
Hello,
if I would like to restart a daemon in a maintainerscript after dpkg-reconfigure is there a downside of simply using
invoke-rc.d foo restart
instead of something like
if [ -d /run/systemd/system ]; then
# systemd
deb-systemd-invoke restart foo.service
else
# SysV
invoke-rc.d foo restart
fi
TIA, cu Andreas
--
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'