mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-01 01:17:02 +00:00
- Fix various rc issues that should have been caught at initial commit:
- Add a $FreeBSD$ - REQUIRE: LOGIN instead of REQUIRE: DAEMON - Add config comments - Move load_rc_config up to what will soon become the standard location. - s#/usr/local#%%PREFIX%%# - Since the -p option is almost certainly mandatory here, use command_args instead of _flags. Submitted by: dougb Pointy hat to: swills
This commit is contained in:
parent
0294c37226
commit
237e6c9b58
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=279647
@ -1,21 +1,30 @@
|
||||
#!/bin/sh
|
||||
|
||||
# $FreeBSD$
|
||||
#
|
||||
# PROVIDE: mcollectived
|
||||
# REQUIRE: DAEMON
|
||||
# REQUIRE: LOGIN
|
||||
# KEYWORD: shutdown
|
||||
#
|
||||
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
|
||||
# to enable this service:
|
||||
#
|
||||
# mcollectived_enable (bool): Set to NO by default.
|
||||
# Set it to YES to enable mcollectived.
|
||||
# mcollectived_flags (str): Set as needed. Empty by default.
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name="mcollectived"
|
||||
rcvar="${name}_enable"
|
||||
|
||||
command="/usr/local/sbin/${name}"
|
||||
pidfile="/var/run/${name}.pid"
|
||||
procname="ruby"
|
||||
|
||||
load_rc_config "${name}"
|
||||
|
||||
: ${mcollectived_enable="NO"}
|
||||
: ${mcollectived_flags="-p ${pidfile}"}
|
||||
|
||||
pidfile="/var/run/${name}.pid"
|
||||
command="%%PREFIX%%/sbin/${name}"
|
||||
command_args="-p $pidfile"
|
||||
procname="ruby"
|
||||
|
||||
run_rc_command "$1"
|
||||
|
Loading…
Reference in New Issue
Block a user