Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/net/msend/files/mesgd.in
20805 views
#!/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"