blob: 00aa9e9052fcf2d7c0db735e364e3633e12e79de (
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/runscript
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
depend() {
need localmount net
after bootmisc
}
start() {
ebegin "Starting pyTivo"
start-stop-daemon --start --exec /usr/bin/pytivo \
--pidfile /var/run/pytivo.pid -m -N 19 -c pytivo:pytivo \
-- > /dev/null 2>&1 &
eend $?
}
stop() {
ebegin "Stopping pyTivo"
start-stop-daemon --stop --exec /usr/bin/pytivo \
--pidfile /var/run/pytivo.pid
eend $?
}
restart() {
stop
sleep 2
start
}
|