summaryrefslogtreecommitdiff
path: root/net/msend/files/mesgd.in
blob: ad506b1f7362d84b0f289e65107f6ca29a7260f6 (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
#!/bin/sh

# 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"