efc3c73093
around a problem where prelude-lml is not connecting to prelude-manager when passed the -d command line argument.
26 lines
639 B
Bash
26 lines
639 B
Bash
#!/bin/sh
|
|
#
|
|
# $NetBSD: preludelml.sh,v 1.4 2006/05/26 11:25:22 shannonjr Exp $
|
|
#
|
|
|
|
# PROVIDE: preludelml
|
|
# REQUIRE: LOGIN
|
|
|
|
$_rc_subr_loaded . /etc/rc.subr
|
|
|
|
name="preludelml"
|
|
procname="@PREFIX@/bin/prelude-lml"
|
|
rcvar=${name}
|
|
required_files="@PKG_SYSCONFDIR@/prelude-lml/prelude-lml.conf"
|
|
start_precmd="preludelml_precommand"
|
|
start_cmd="@PREFIX@/sbin/run-prelude-lml --pidfile @PRELUDE_LML_PID_DIR@/prelude-lml.pid"
|
|
pidfile="@PRELUDE_LML_PID_DIR@/prelude-lml.pid"
|
|
|
|
preludelml_precommand()
|
|
{
|
|
/bin/mkdir -p @PRELUDE_LML_PID_DIR@
|
|
/usr/sbin/chown @PRELUDE_USER@:@PRELUDE_GROUP@ @PRELUDE_LML_PID_DIR@
|
|
}
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|