summaryrefslogtreecommitdiff
path: root/sysutils/py-google-compute-engine/files/google_instance_setup.in
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/py-google-compute-engine/files/google_instance_setup.in')
-rw-r--r--sysutils/py-google-compute-engine/files/google_instance_setup.in25
1 files changed, 25 insertions, 0 deletions
diff --git a/sysutils/py-google-compute-engine/files/google_instance_setup.in b/sysutils/py-google-compute-engine/files/google_instance_setup.in
new file mode 100644
index 000000000000..d4262ce721f4
--- /dev/null
+++ b/sysutils/py-google-compute-engine/files/google_instance_setup.in
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+# PROVIDE: google_instance_setup
+# BEFORE: LOGIN
+# REQUIRE: NETWORKING syslogd
+#
+# google_instance_setup_enable (bool): Set to NO by default.
+# Set it to YES to enable google_instance_setup.
+#
+
+. /etc/rc.subr
+
+name="google_instance_setup"
+rcvar="google_instance_setup_enable"
+stop_cmd=":"
+
+load_rc_config "${name}"
+
+: ${google_instance_setup_enable:="NO"}
+
+command_interpreter="%%PYTHON_CMD%%"
+command=%%PREFIX%%/bin/${name}-%%PYTHON_VER%%
+pidfile=/var/run/${name}.pid
+
+run_rc_command "$1"