root/resources/resmon_freebsd_rc
| Revision fa33f3421b2c0f88a1b773b1f7a28642453291ef, 480 bytes (checked in by Mark Harrison <mark@omniti.com>, 3 years ago) | |
|---|---|
| |
| Line | |
|---|---|
| 1 | #!/bin/sh |
| 2 | # |
| 3 | |
| 4 | # PROVIDE: resmon |
| 5 | # REQUIRE: DAEMON |
| 6 | |
| 7 | # Add the following lines to /etc/rc.conf to enable resmon: |
| 8 | # |
| 9 | # resmon_enable (bool): Set it to "YES" to enable resmon |
| 10 | # resmon_flags (string): Extra flags to pass to resmon, for example: |
| 11 | # resmon_flags="-c /path/to/resmon.conf" |
| 12 | |
| 13 | . /etc/rc.subr |
| 14 | |
| 15 | name="resmon" |
| 16 | rcvar=`set_rcvar` |
| 17 | command="/opt/resmon/resmon" |
| 18 | command_interpreter="/usr/bin/perl" |
| 19 | |
| 20 | load_rc_config $name |
| 21 | run_rc_command "$1" |
Note: See TracBrowser for help on using the browser.
