Changeset 5550

Show
Ignore:
Timestamp:
11/05/09 16:08:58 (3 weeks ago)
Author:
dclark
Message:

Now restarts after initial install and upgrade, as requested by desai. For some reason the debian tools are doing the wrong thing, so put in restart code after the autogenerated code - see comments for more details.

Location:
trunk/bcfg2/debian
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/bcfg2/debian/bcfg2-server.postinst

    r5545 r5550  
    4141#DEBHELPER# 
    4242 
     43# We do a restart manually here because with autogenerated code 
     44# we get this traceback (eg something isn't done yet): 
     45## Setting up bcfg2-server (1.0.0~rc3+r5542-0.1+dctest8) ... 
     46## Starting Configuration Management Server: Traceback (most recent call last): 
     47##   File "/usr/sbin/bcfg2-server", line 12, in <module> 
     48##     import Bcfg2.Server.Plugins.Metadata 
     49## ImportError: No module named Server.Plugins.Metadata 
     50## * bcfg2-server 
     51echo "Restarting bcfg2-server after initial install or upgrade..." 
     52/etc/init.d/bcfg2-server restart 
     53 
    4354exit 0 
    4455 
  • trunk/bcfg2/debian/rules

    r5545 r5550  
    55override_dh_installinit: 
    66        # Install bcfg2 initscript without staring it on postinst 
    7         dh_installinit -p bcfg2 --no-start 
     7        dh_installinit --package=bcfg2 --no-start 
    88        # Install bcfg2-server initscript without staring it on postinst 
    9         dh_installinit -p bcfg2-server --no-start 
    10         # Install everything else normally 
    11         dh_installinit -N bcfg2 
     9        dh_installinit --package=bcfg2-server --no-start