ports/sysutils/py-google-compute-engine/files/google_network_setup.in
Richard Gallamore bcc83eb439 Fixed ntpd starting too early causing other services to fail at start.
Fixed error when stopping services.

PR:		222197
Submitted by:	Helen Koike (maintainer)
Reported by:	Vick Khera
MFH:		2017Q4
2017-10-15 22:11:30 +00:00

27 lines
520 B
Bash

#!/bin/sh
# $FreeBSD$
#
# PROVIDE: google_network_setup
# BEFORE: LOGIN
# REQUIRE: NETWORKING syslogd google_instance_setup
#
# google_network_setup_enable (bool): Set to NO by default.
# Set it to YES to enable google_network_setup.
#
. /etc/rc.subr
name="google_network_setup"
rcvar="google_network_setup_enable"
stop_cmd=":"
load_rc_config "${name}"
: ${google_network_setup_enable:="NO"}
command_interpreter="%%PYTHON_CMD%%"
command=%%PREFIX%%/bin/${name}
pidfile=/var/run/${name}.pid
run_rc_command "$1"