mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
Add a rcng startup script for the daemon mode.
PR: ports/94610 Submitted by: Douglas K. Rand <rand@meridian-enviro.com>
This commit is contained in:
parent
cf0f5c9e37
commit
c3c75e1d1c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=157642
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME?= mbmon
|
||||
PORTVERSION= 205
|
||||
PORTREVISION?= 0
|
||||
PORTREVISION?= 1
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/xmbmon/
|
||||
DISTNAME= xmbmon${PORTVERSION}
|
||||
@ -26,6 +26,10 @@ PORTDOCS= ChangeLog ChangeLog.jp ReadMe ReadMe.jp ReadMe.tech
|
||||
|
||||
OPTIONS= SMB "enable smb(4) support" on
|
||||
|
||||
.if ${PORTNAME} == "mbmon"
|
||||
USE_RC_SUBR= mbmon.sh
|
||||
.endif
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
post-patch:
|
||||
|
32
sysutils/mbmon/files/mbmon.sh.in
Normal file
32
sysutils/mbmon/files/mbmon.sh.in
Normal file
@ -0,0 +1,32 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
# PROVIDE: mbmon
|
||||
# REQUIRE: LOGIN
|
||||
# BEFORE: securelevel
|
||||
# KEYWORD: FreeBSD shutdown
|
||||
|
||||
# Add the following line to /etc/rc.conf to enable the mbmon daemon:
|
||||
#
|
||||
# mbmon_enable="YES"
|
||||
#
|
||||
# See mbmon(1) for mbmon_flags
|
||||
# Set mbmon_port to the TCP port to listen to, default is 12999
|
||||
|
||||
. %%RC_SUBR%%
|
||||
|
||||
name="mbmon"
|
||||
rcvar=`set_rcvar`
|
||||
|
||||
# read configuration and set defaults
|
||||
load_rc_config "$name"
|
||||
: ${mbmon_enable="NO"}
|
||||
: ${mbmon_flags=""}
|
||||
: ${mbmon_port="12999"}
|
||||
|
||||
command="%%PREFIX%%/bin/${name}"
|
||||
command_args="-P ${mbmon_port}"
|
||||
|
||||
run_rc_command "$1"
|
Loading…
Reference in New Issue
Block a user