freebsd-ports/sysutils/metalog/files/metalog.in
Andrew Pantyukhin 874fa9c759 - Update to 0.8
- Add an rc script
- This update fixes a gcc4 issue

PR:		ports/111606 (based on)
Submitted by:	araujo
Approved by:	sergei (maintainer timeout, since 15 April 2007)
2007-07-14 15:57:01 +00:00

21 lines
372 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: metalog
# REQUIRE: mountcritremote cleanvar newsyslog ldconfig
# BEFORE: SERVERS
. %%RC_SUBR%%
name=metalog
rcvar=`set_rcvar`
pidfile="/var/run/metalog.pid"
command="%%PREFIX%%/sbin/${name}"
command_args="--daemonize"
required_files="%%PREFIX%%/etc/metalog.conf"
load_rc_config $name
: ${metalog_enable:="NO"}
run_rc_command "$1"