aboutsummaryrefslogtreecommitdiffstats
path: root/net/msend/files/mesgd.in
blob: a775cc2f01d30f4a71ffa8e40074a5e437d36946 (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
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: mesgd
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable mesgd:
#
# mesgd_enable=(bool):  Set it to "YES" to enable mesgd
# 
# and add appropriate mesgd_flags.
#

. /etc/rc.subr

name="mesgd"
rcvar=mesgd_enable

load_rc_config $name

: ${mesgd_enable="NO"}

command=%%PREFIX%%/sbin/${name}

run_rc_command "$1"