freebsd-ports/sysutils/lizardfs/files/mfsmetalogger.in
John Hixson 47fccfbb95 [New port] sysutils/lizardfs: An open source distributed filesystem
- LizardFS is a highly reliable, scalable and efficient distributed file
  system. It spreads data over a number of physical servers, making it
  visible to an end user as a single file system.

Approved by:	miwi (mentor)
Differential Revision:	https://reviews.freebsd.org/D19010
2019-02-01 17:12:54 +00:00

31 lines
512 B
Bash

#!/bin/sh
# $FreeBSD$
# PROVIDE: mfsmetalogger
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable mfsmetalogger:
#
# mfsmetalogger_enable="YES"
#
. /etc/rc.subr
name=mfsmetalogger
rcvar=mfsmetalogger_enable
config_file=%%PREFIX%%/etc/mfs/${name}.cfg
required_files=${config_file}
command=%%PREFIX%%/sbin/${name}
pid_file=/var/mfs/.${name}.lock
command_args="-c $config_file"
load_rc_config $name
# set defaults
: ${mfsmetalogger_enable="NO"}
run_rc_command "$1"