summaryrefslogtreecommitdiff
path: root/hooks/start
diff options
Diffstat (limited to 'hooks/start')
-rwxr-xr-xhooks/start6
1 files changed, 6 insertions, 0 deletions
diff --git a/hooks/start b/hooks/start
new file mode 100755
index 0000000..cd918d6
--- /dev/null
+++ b/hooks/start
@@ -0,0 +1,6 @@
+#!/bin/bash
+# Here put anything that is needed to start the service.
+# Note that currently this is run directly after install
+# i.e. 'service apache2 start'
+
+service mongodb status && service mongodb restart || service mongodb start