summaryrefslogtreecommitdiff
blob: ada7cadb94effe209fcb9b794c7cba912915ad0d (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
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

depend() {
        need net
        use mysql
}

start() {

        ebegin "Starting MythTV Transcoding Daemon"
        start-stop-daemon --start --quiet  \
                --exec /usr/bin/mtd \
                --make-pidfile --pidfile /var/run/mtd.pid \
                --background
        eend $?
}

stop () {
        ebegin "Stopping MythTV Transcoding Daemon"
        start-stop-daemon --stop --quiet --pidfile=/var/run/mtd.pid
        eend $?
}