[Borut Mrak]
> IMO, no links == disabled (I know they get recreated on upgrades, but
> that is out of scope for this feature).
Disabled is the same as only stop symlinks (ie K* symlinks). This is
what 'update-rc.d disable' do. No links just mean someone messed up and
the change will be reverted
On Mon, Apr 27, 2015, at 13:19, Borut Mrak wrote:
> I'm working on update-rc.d to add this feature (got bitten by
this using saltstack service states on Jessie w/ systemd).
>
>
I simplified Michael's idea a little bit (I think).
>
>
Instead of checking if links correspond to Defau
I'm working on update-rc.d to add this feature (got bitten by this using
saltstack service states on Jessie w/ systemd).
I simplified Michael's idea a little bit (I think).
Instead of checking if links correspond to Default-Start + Default-Stop,
i'm just checking if there are all the Default-S
Am 12.04.2013 22:27, schrieb Michael Biebl:
> A rough idea how this check could look like:
> 1/ grep for Default-Start and Default-Stop in the LSB header
> 2/ To check if a service is enabled:
>for i in Default-Start: check if /etc/rc$i.d/S??$service
>for i in Default-Stop: check if /etc/rc
A rough idea how this check could look like:
1/ grep for Default-Start and Default-Stop in the LSB header
2/ To check if a service is enabled:
for i in Default-Start: check if /etc/rc$i.d/S??$service
for i in Default-Stop: check if /etc/rc$i.d/K??$service
if all of those checks are true, is-e
5 matches
Mail list logo