Quoting Simon McVittie (2014-11-19 21:49:49) > On 19/11/14 19:41, Jonas Smedegaard wrote: >> Example: if a logrotate snippet uses "update-rc.d force-restart ..." >> then suppressing that deamon with policy-rc.d will be circumvented >> when cron triggers log rotation. > > If it uses "update-rc.d force-restart" then it will fail, because that > isn't a feature that update-rc.d has. > > If you meant invoke-rc.d, that does respect policy-rc.d. > > If you meant service, I think the answer is "that's a bug". service > intentionally doesn't respect "enabledness" either, under at least > sysvinit and systemd, so it's a bug even in the absence of policy-rc.d. > > I think the valid options for logrotate are either invoke-rc.d, or > something that uses package-specific knowledge that a particular > operation won't start the daemon if it isn't already running.
I meant to write invoke-rc.d but with Steve Langasek's post about samba in mind - which talks about samba using *service*. Thanks for reading my mind better than my own fingers were capable of :-D - Jonas -- * Jonas Smedegaard - idealist & Internet-arkitekt * Tlf.: +45 40843136 Website: http://dr.jones.dk/ [x] quote me freely [ ] ask before reusing [ ] keep private
signature.asc
Description: signature