aboutsummaryrefslogblamecommitdiff
path: root/sysutils/metalog/files/metalog.in
blob: 983dc9a8c0fdb0c034f25858d16705feb801199f (plain) (tree)
1
2
3
4
5
6
7
8
9
         




                                                      
              

            
                    







                                            
#!/bin/sh

# PROVIDE: metalog
# REQUIRE: mountcritremote cleanvar newsyslog ldconfig
# BEFORE:  SERVERS

. /etc/rc.subr

name=metalog
rcvar=metalog_enable
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"