File google-startup-scripts.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_run_startup_scripts
# Required-Start:    $all
# Required-Stop:     $null
# Default-Start:     2 3 5
# Default-Stop:
# Short-Description: Google Compute Engine user startup scripts
# Description:       This runs user-specified VM startup 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 user startup scripts"
NAME="run_startup_scripts"

start() {
      /usr/share/google/run-startup-scripts
}

case "$1" in
  start)
        $1
        rc_status -v
        ;;
    stop)
        ;;
    reload)
        ;;
    restart)
        ;;
    status)
        ;;
    *)
        echo $"Usage: $0 {start}"
    exit 3
    ;;
esac
openSUSE Build Service is sponsored by