From: | "Doug Goldstein (cardoe)" <cardoe@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in media-tv/mythtv/files: mythbackend.conf mythbackend.init |
Date: | Fri, 22 Jun 2012 03:31:03 |
Message-Id: | 20120622033050.3467D2004C@flycatcher.gentoo.org |
1 | cardoe 12/06/22 03:30:50 |
2 | |
3 | Added: mythbackend.conf mythbackend.init |
4 | Log: |
5 | Version bump to 0.25.1. This is still very much a Work In Progress ebuild and as such its masked. |
6 | |
7 | (Portage version: 2.1.10.49/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.7 media-tv/mythtv/files/mythbackend.conf |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/files/mythbackend.conf?rev=1.7&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/files/mythbackend.conf?rev=1.7&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/files/mythbackend.conf?r1=1.6&r2=1.7 |
15 | |
16 | |
17 | |
18 | |
19 | 1.1 media-tv/mythtv/files/mythbackend.init |
20 | |
21 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/files/mythbackend.init?rev=1.1&view=markup |
22 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/files/mythbackend.init?rev=1.1&content-type=text/plain |
23 | |
24 | Index: mythbackend.init |
25 | =================================================================== |
26 | #!/sbin/runscript |
27 | # Copyright 1999-2012 Gentoo Foundation |
28 | # Distributed under the terms of the GNU General Public License v2 |
29 | # $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/files/mythbackend.init,v 1.1 2012/06/22 03:30:50 cardoe Exp $ |
30 | |
31 | description="MythTV backend recording daemon" |
32 | extra_commands="resched upnprebuild" |
33 | description_resched="Forces the recording scheduler to update" |
34 | description_upnprebuild="Rebuilds the UPnP media cache" |
35 | |
36 | depend() { |
37 | # mythbackend doesn't need to run on the same machine that |
38 | # mysql runs on. so its use for that reason |
39 | need net |
40 | use mysql LCDd |
41 | } |
42 | |
43 | start() { |
44 | [ -z "${MYTHBACKEND_VERBOSE}" ] && \ |
45 | MYTHBACKEND_VERBOSE="important,general" |
46 | |
47 | #fixes for bug #101308 |
48 | unset DISPLAY |
49 | unset SESSION_MANAGER |
50 | |
51 | # Work around any strange permissions that may be on these files. |
52 | chown -R mythtv:video /var/log/mythtv/ |
53 | chown -R mythtv:video /home/mythtv/ |
54 | |
55 | ebegin "Starting MythTV Backend" |
56 | start-stop-daemon --start --quiet -u mythtv:video \ |
57 | --exec /usr/bin/mythbackend -- |
58 | --daemon --pidfile /var/run/mythbackend.pid \ |
59 | --verbose ${MYTHBACKEND_VERBOSE} \ |
60 | --logfile /var/log/mythtv/mythbackend.log \ |
61 | --user mythtv ${MYTHBACKEND_OPTS} |
62 | eend $? |
63 | } |
64 | |
65 | stop() { |
66 | ebegin "Stopping MythTV Backend" |
67 | start-stop-daemon --stop --quiet --pidfile=/var/run/mythbackend.pid |
68 | eend $? |
69 | } |
70 | |
71 | resched() { |
72 | ebegin "Updating the recording scheduler" |
73 | /usr/bin/mythbackend --resched |
74 | eend $? |
75 | } |
76 | |
77 | upnprebuild() { |
78 | ebegin "Rebuilding UPnP media cache" |
79 | /usr/bin/mythbackend --upnprebuild |
80 | eend $? |
81 | } |