1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/security/prelude-lml/files/prelude-lml.sh.in
Renato Botelho 1f5e8b9769 - Fix rc.d startup script
- Bump PORTREVISION

PR:		ports/94900
Submitted by:	maintainer
2006-03-24 19:23:35 +00:00

28 lines
590 B
Bash

#!/bin/sh
# PROVIDE: prelude_lml
# REQUIRE: NETWORKING SERVERS
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# prelude_lml_enable (bool): Set to NO by default.
# Set it to YES to enable Prelude LML.
# prelude_lml_flags (flags): Set arguments to use with Prelude LML
#
. %%RC_SUBR%%
name="prelude_lml"
rcvar=${name}_enable
command=%%PREFIX%%/bin/prelude-lml
pidfile=/var/run/prelude-lml.pid
load_rc_config $name
: ${prelude_lml_enable="NO"}
: ${prelude_lml_flags="-d -P ${pidfile}"}
run_rc_command "$1"