blob: 3ba458e91b90c8749d3762fc2138b01fdb433871 (
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
|
#!/bin/sh
# Start or stop gkrellmd
# $FreeBSD$
# PROVIDE: gkrellmd
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
# Define these gkrellmd_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/gkrellmd
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
gkrellmd_enable=${gkrellmd_enable:-"NO"} # Enable gkrellmd
#gkrellmd_program="%%PREFIX%%/sbin/gkrellmd" # Location of gkrellmd
gkrellmd_flags=${gkrellmd_flags:-"-d"} # Flags to gkrellmd
. /etc/rc.subr
name="gkrellmd"
rcvar=`set_rcvar`
command="%%PREFIX%%/sbin/${name}"
required_files="%%PREFIX%%/etc/${name}.conf"
load_rc_config $name
run_rc_command "$1"
|