Modify

Ticket #965 (closed defect: fixed)

Opened 11 years ago

Last modified 10 years ago

Services with rules that specify "mode='manual'" are being modified.

Reported by: Jim Rowan <jmr@…> 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 11 years ago by Jim Rowan <jmr@…>

BTW, these two formats of rules seem to leave the rc files alone:

    <Service name='nxsensor' type='deb' mode='manual' status='foobar'/>
    <Service name='nxserver' type='deb' mode='manual' status='LeaveMeAlone'/>

bcfg2-repo-validate thinks they're both ok. :)

comment:2 Changed 11 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 11 years ago by solj

  • Status changed from accepted to closed
  • Resolution set to fixed

comment:4 Changed 10 years ago by solj

  • Milestone changed from Bcfg2 1.1.2 Release (Bugfix) to Bcfg2 1.2.0 Release

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.