Bug 201973 - net-mgmt/sysmon rc.d file
Summary: net-mgmt/sysmon rc.d file
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jason Unovitch
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-29 16:34 UTC by George
Modified: 2016-12-28 03:27 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (mk)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description George 2015-07-29 16:34:10 UTC
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"
Comment 1 George 2015-08-13 17:10:34 UTC
Table this for now.

Not only did the shebang get dropped from the script, but it still doesn't work for some reason.

I'll get an operational sysmond rc.d file and repost in the near future.
Comment 2 Jason Unovitch freebsd_committer freebsd_triage 2015-12-28 01:02:11 UTC
George,
Were you able to revisit this?  It looks like you were missing the "PROVIDE: sysmon" line at the top of the rc script.  

See rc(8)
Each script should contain rcorder(8) keywords, especially an appropriate ``PROVIDE'' entry, and if necessary ``REQUIRE'' and ``BEFORE'' keywords.
Comment 3 Jason Unovitch freebsd_committer freebsd_triage 2016-12-28 03:27:52 UTC
No response in 1 year.

If this is still a concern please provide further details.