repo.or.cz
/
minix-pkgsrc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fixup fromcvs/togit conversion
[minix-pkgsrc.git]
/
sysutils
/
storage-manager
/
files
/
dpteng
blob
7c2f719ecc4759dc0fb558f3f986cfb3934c7154
1
#!/bin/sh
2
#
3
# $NetBSD$
4
#
5
6
# PROVIDE: dpteng
7
# REQUIRE: DAEMON
8
9
.
/
etc
/
rc.subr
10
11
name
=
"dpteng"
12
rcvar
=
$name
13
command
=
"@PREFIX@/lib/dpt/
${name}
"
14
pidfile
=
"/tmp/dpteng.LOCK"
15
start_cmd
=
"dpteng_start"
16
stop_cmd
=
"dpteng_stop"
17
18
dpteng_start
()
19
{
20
21
echo
Starting
$name
.
22
$command
2
> /
dev
/
null
&
23
}
24
25
dpteng_stop
()
26
{
27
28
echo
Stopping
$name
.
29
kill -9
`cat
$pidfile
`
30
}
31
32
load_rc_config
$name
33
run_rc_command
"
$1
"