Bug#705254: [Pkg-sysvinit-devel] Bug#705254: Provide "is-enabled" command for update-rc.d

2015-04-29 Thread Petter Reinholdtsen
[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

Bug#705254: [Pkg-sysvinit-devel] Bug#705254: Provide "is-enabled" command for update-rc.d

2015-04-29 Thread Henrique de Moraes Holschuh
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

Bug#705254: Provide "is-enabled" command for update-rc.d

2015-04-27 Thread Borut Mrak
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

Bug#705254: [Pkg-systemd-maintainers] Bug#705254: Provide "is-enabled" command for update-rc.d

2013-04-12 Thread Michael Biebl
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

Bug#705254: [Pkg-systemd-maintainers] Bug#705254: Provide "is-enabled" command for update-rc.d

2013-04-12 Thread 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$i.d/K??$service if all of those checks are true, is-e