freebsd-ports/sysutils/moosefs-chunkserver/files/mfschunkserver.in
John Marino 2dc13b68e9 sysutils/moosefs-*: Upgrade version 1.6.27 => 1.6.27-5 and Stage support
This was a master and two slave ports.  Now each port stands alone, each
with it's own defined distinfo which allows for the separate mk to be
removed.

  * Ownership of slave ports restored to chifeng.  They were reset in
    error because their staging was combined with master staging
  * Configure locations uniformly fixed to /etc/mfs
  * cgiserv now runs as unpriviledged user
  * Fixes ability to reload config without restarting
  * Uses @sample keyword for config files now
  * fixes -master, -chunkserver, and -client ports

PR:		191046
Submitted by:	takeda (takeda.tk)
Approved by:	maintainer (chifeng)
Minor fixes:	marino
2014-07-12 10:16:57 +00:00

35 lines
874 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: mfschunkserver
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf to enable mfschunkserver:
#
# mfschunkserver_enable (bool): Set to NO by default.
# Set it to YES to enable mfschunkserver.
# mfschunkserver_config (path): Set to %%PREFIX%%/etc/mfs/mfschunkserver.cfg
# by default.
# mfschunkserver_flags (str): Set to "" by default.
# Extra flags passed to mfschunkserver.
#
. /etc/rc.subr
name=mfschunkserver
rcvar=mfschunkserver_enable
load_rc_config $name
: ${mfschunkserver_enable=NO}
: ${mfschunkserver_config=%%PREFIX%%/etc/mfs/mfschunkserver.cfg}
extra_commands=reload
command=%%PREFIX%%/sbin/${name}
command_args="-c ${mfschunkserver_config}"
run_rc_command "$1"