blob: 32538e131d717e0ce8afbc7bb20ea4ad8bd1648c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#!/bin/sh
# $FreeBSD$
#
# PROVIDE: google-startup
# BEFORE: LOGIN
# REQUIRE: syslogd
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable google-startup:
#
# google_startup_enable="YES"
#
. /etc/rc.subr
name="google_startup"
rcvar="google_startup_enable"
start_cmd="google_start"
stop_cmd="google_stop"
google_start()
{
%%PREFIX%%/share/google/onboot
%%PREFIX%%/share/google/run-startup-scripts
}
google_stop()
{
%%PREFIX%%/share/google/run-shutdown-scripts
}
google_startup_enable=${google_startup_enable:-"NO"}
load_rc_config "${name}"
run_rc_command "$1"
|