blob: a6241b46175c7c9f8cf12e9fe068b29ed8959d86 (
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
|
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: mopherd.sh,v 1.1 2014/12/01 13:58:15 gdt Exp $
#
# PROVIDE: mopherd
# REQUIRE: DAEMON
# BEFORE: mail
# KEYWORD: shutdown
$_rc_subr_loaded . /etc/rc.subr
name=mopherd
rcvar=mopherd
pidfile=@MOPHER_RUN@/mopherd.pid
start_precmd=mopherd_precmd
command=@PREFIX@/sbin/mopherd
command_args="-p $pidfile"
mopherd_precmd()
{
@INSTALL@ -d -o @MOPHER_USER@ -g @MOPHER_GROUP@ @MOPHER_RUN@
}
load_rc_config mopherd
run_rc_command "$1"
|