Skip to content

Commit

Permalink
media-tv/mythtv: multiple init script fixes
Browse files Browse the repository at this point in the history
The new init scripts had a few bugs related to permissions and command line
switches.

Gentoo-Bug: 560142
Gentoo-Bug: 560144

Package-Manager: portage-2.2.20.1
Signed-off-by: Doug Goldstein <[email protected]>
  • Loading branch information
cardoe committed Sep 14, 2015
1 parent 272703e commit 67fb506
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ start() {

# Work around any strange permissions that may be on these files.
[ "x${MYTHBACKEND_LOGGING}" = "xfiles" ] && \
checkpath --dir --owner mythv:video --mode 0664 /var/log/mythtv
checkpath --dir --owner mythv:video --mode 0664 /home/mythtv
checkpath --directory --owner mythv:video --mode 0775 /var/log/mythtv
checkpath --directory --owner mythv:video --mode 0775 /home/mythtv

ebegin "Starting MythTV Backend"
start-stop-daemon --start --quiet --exec /usr/bin/mythbackend \
--pidfile /var/run/mythbackend.pid -- \
--daemon --pidfile /var/run/mythbackend.pid --user mythtv:video \
--pidfile /var/run/mythbackend.pid --user mythtv:video -- \
--daemon --pidfile /var/run/mythbackend.pid \
--verbose ${MYTHBACKEND_VERBOSE} \
${logging} ${MYTHBACKEND_OPTS}
eend $?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ src_install() {
insinto /usr/share/mythtv/database
doins database/*

newinitd "${FILESDIR}"/mythbackend.init-r1 mythbackend
newinitd "${FILESDIR}"/mythbackend.init-r2 mythbackend
newconfd "${FILESDIR}"/mythbackend.conf-r1 mythbackend
systemd_dounit "${FILESDIR}"/mythbackend.service

Expand Down

0 comments on commit 67fb506

Please sign in to comment.