Ticket #965 (closed defect: fixed)
Services with rules that specify "mode='manual'" are being modified.
Reported by: | Jim Rowan <[email protected]…> | Owned by: | solj |
---|---|---|---|
Priority: | major | Milestone: | Bcfg2 1.2.0 Release |
Component: | bcfg2-server | Version: | 1.0 |
Keywords: | Cc: |
Description
This is Version: 1.1.1-1~lucid1
A rule such as this:
<Service name='nxsensor' type='deb' mode='manual' status='off'/>
Causes the /etc/rc?.d/* files to be removed.
Before: jmr-ubuntu# ls -l rc?.d/*nxsensor lrwxrwxrwx 1 root root 18 Nov 17 11:28 rc0.d/K01nxsensor -> ../init.d/nxsensor lrwxrwxrwx 1 root root 18 Nov 17 11:28 rc2.d/S99nxsensor -> ../init.d/nxsensor lrwxrwxrwx 1 root root 18 Nov 17 11:28 rc3.d/S99nxsensor -> ../init.d/nxsensor lrwxrwxrwx 1 root root 18 Nov 17 11:28 rc5.d/S99nxsensor -> ../init.d/nxsensor lrwxrwxrwx 1 root root 18 Nov 17 11:28 rc6.d/K01nxsensor -> ../init.d/nxsensor
After: jmr-ubuntu# ls -l rc?.d/*nxsensor zsh: no matches found: rc?.d/*nxsensor
And when the status is changed to 'on', they're added back in: jmr-ubuntu# ls -l rc?.d/*nxsensor lrwxrwxrwx 1 root bin 18 Nov 17 11:38 rc0.d/K20nxsensor -> ../init.d/nxsensor lrwxrwxrwx 1 root bin 18 Nov 17 11:38 rc1.d/K20nxsensor -> ../init.d/nxsensor lrwxrwxrwx 1 root bin 18 Nov 17 11:38 rc2.d/S20nxsensor -> ../init.d/nxsensor lrwxrwxrwx 1 root bin 18 Nov 17 11:38 rc3.d/S20nxsensor -> ../init.d/nxsensor lrwxrwxrwx 1 root bin 18 Nov 17 11:38 rc4.d/S20nxsensor -> ../init.d/nxsensor lrwxrwxrwx 1 root bin 18 Nov 17 11:38 rc5.d/S20nxsensor -> ../init.d/nxsensor lrwxrwxrwx 1 root bin 18 Nov 17 11:38 rc6.d/K20nxsensor -> ../init.d/nxsensor
Attachments
Change History
comment:1 Changed 12 years ago by Jim Rowan <[email protected]…>
comment:2 Changed 12 years ago by solj
- Owner changed from desai to solj
- Status changed from new to accepted
- Milestone changed from Bcfg2 1.2.0 Release to Bcfg2 1.1.2 Release (Bugfix)
comment:3 Changed 12 years ago by solj
- Status changed from accepted to closed
- Resolution set to fixed
Fixed in 545dda76d34a06ae25efa2eb3d0c8c0bd70127d0.
BTW, these two formats of rules seem to leave the rc files alone:
bcfg2-repo-validate thinks they're both ok. :)