Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jul 2015 16:34:10 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 201973] net-mgmt/sysmon rc.d file
Message-ID:  <bug-201973-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201973

            Bug ID: 201973
           Summary: net-mgmt/sysmon rc.d file
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: george@nycbug.org
                CC: mk@oxeo.com
             Flags: maintainer-feedback?(mk@oxeo.com)
                CC: mk@oxeo.com

The net-mgmt/sysmon port does not provide a usable rc.d file, thus starting
automatically from /etc/rc.conf does not work.

The following should work as sysmond located in /usr/local/etc/rc.d, to be
placed after an install, allowing 'sysmond_enable="YES"' to be functional in
/etc/rc.conf.

#

. /etc/rc.subr

name=sysmond
rcvar=sysmond_enable

command=/usr/local/bin/sysmond

sysmond_enable=${sysmond_enable:-"NO"}
sysmond_flags=${sysmond_flags:-"-f /usr/local/etc/sysmon.conf"}

load_rc_config $name
run_rc_command "$1"

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-201973-13>