blob: 9ac7c7ffe1b41601672c7c3f0b077aa41b34a685 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: preludelml.sh,v 1.5 2011/10/07 22:37:05 shattered 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"
|