#!/bin/sh # # $FreeBSD: ports/net-mgmt/nagiosgrapher/files/nagiosgrapher.in,v 1.4 2012/11/17 06:00:34 svnexp Exp $ # # PROVIDE: %%NAME%% # REQUIRE: NETWORKING SERVERS # BEFORE: DAEMON # KEYWORD: shutdown # Add the following line to /etc/rc.conf to enable `%%NAME%%': # # %%NAME%%_enable="YES" . /etc/rc.subr name="%%NAME%%" rcvar=%%NAME%%_enable pidfile="/var/spool/nagios/nagios_grapher/$name.pid" command="%%PREFIX%%/libexec/nagios/contrib/$name" command_interpreter="/usr/bin/perl" load_rc_config $name : ${%%NAME%%_enable="NO"} : ${%%NAME%%_user="nagios"} run_rc_command "$1"