blob: f6d99e09f4cda59a33624df2351659ead3d3b3d9 (
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
27
28
29
30
31
|
#!/sbin/openrc-run
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
depend() {
need net
}
start() {
ebegin "Starting binlsrv"
if [ -z "$INFILE_PATH" ]; then
eerror "Path to devlist.cache not set, please set \$INFILE_PATH in /etc/conf.d/binlsrv"
return 1
fi
if [ ! -e "$INFILE_PATH/devlist.cache" ]; then
eerror "devlist.cache not generated, please make it with infparser.py"
fi
start-stop-daemon --start -i --exec /usr/bin/binlsrv.py --background \
--make-pidfile --pidfile /var/run/binlsrv.pid --chdir "$INFILE_PATH" \
--stdout /var/log/binlsrv.log
eend $?
}
stop() {
ebegin "Stopping binlsrv"
start-stop-daemon --stop -i --exec /usr/bin/binlsrv.py --pidfile /var/run/binlsrv.pid
eend $?
}
|