avoid using conf_files initscript that might go when moving to systemd
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Tue, 14 Jan 2014 14:27:02 +0000 (15:27 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Tue, 14 Jan 2014 14:27:02 +0000 (15:27 +0100)
source/steps/ChainBootNode.py

index 988d96b..5e7babf 100644 (file)
@@ -109,8 +109,9 @@ def Run( vars, log ):
 
     # update configuration files
     log.write( "Updating configuration files.\n" )
+    # avoid using conf_files initscript as we're moving to systemd on some platforms
     try:
-        cmd = "/etc/init.d/conf_files start --noscripts"
+        cmd = "/usr/bin/env python /usr/share/NodeManager/conf_files.py --noscripts"
         utils.sysexec_chroot( SYSIMG_PATH, cmd, log )
     except IOError, e:
         log.write("conf_files failed with \n %s" % e)