File google.suse of Package google-startup-scripts.1909
#! /bin/sh
# Copyright 2013 SUSE LLC All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
### BEGIN INIT INFO
# Provides: gce_onboot
# X-Start-Before: ssh
# Required-Start: $local_fs $network $syslog
# Required-Stop: $null
# Default-Start: 2 3 5
# Default-Stop:
# Short-Description: Google Compute Engine on-boot services
# Description: This launches the Google Compute Engine
# VM initialization scripts.
### END INIT INFO
# Return values acc. to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
. /etc/rc.status
rc_reset
DESC="Google Compute Engine on-boot services"
NAME="onboot"
start() {
/usr/share/google/onboot
}
case "$1" in
start)
$1
rc_status -v
;;
stop)
;;
reload)
;;
restart)
;;
status)
;;
*)
echo $"Usage: $0 {start}"
exit 3
;;
esac