EBernhardson has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/112064

Change subject: Start HHVM on boot
......................................................................

Start HHVM on boot

The ensure => running on hhvm only runs when provisioning,
a standard `vagrant up` will start the machine but not ensure
hhvm is a started service.  This ensures HHVM always starts on boot.

This does have the downside that hhvm will still start on boot
after the role has been disabled.

Change-Id: I9e884c00bf69d737356fc948cd8c16bb63eaf9de
---
M puppet/modules/hhvm/manifests/init.pp
1 file changed, 7 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/vagrant 
refs/changes/64/112064/1

diff --git a/puppet/modules/hhvm/manifests/init.pp 
b/puppet/modules/hhvm/manifests/init.pp
index 68afb7a..2a24001 100644
--- a/puppet/modules/hhvm/manifests/init.pp
+++ b/puppet/modules/hhvm/manifests/init.pp
@@ -35,4 +35,11 @@
         enable   => true,
         require  => File['/etc/hhvm/server.hdf'],
     }
+
+    # The ensure => running on hhvm only runs when provisioning,
+    # a standard `vagrant up` will start the machine but not ensure
+    # hhvm is a started service.  This ensures HHVM always starts on boot
+    exec { 'update-rc.d hhvm defaults':
+        creates => '/etc/rc2.d/S20hhvm'
+    }
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/112064
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9e884c00bf69d737356fc948cd8c16bb63eaf9de
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/vagrant
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to