Permalink
Browse files

Update packaging for 16.04

  • Loading branch information...
1 parent d0ae97b commit 5bdf696e5a6478908742b123cfc1a37ff551d1f9 @tgm4883 tgm4883 committed Jan 10, 2016
Showing with 16 additions and 8 deletions.
  1. +10 −8 deb/debian/mythtv-backend.service
  2. +6 −0 deb/debian/mythtv-database.postinst
@@ -1,15 +1,17 @@
[Unit]
Description=MythTV Backend
-Wants=mysql.service
-After=mysql.service
-
+Documentation=https://www.mythtv.org/wiki/Mythbackend
+After=mysqld.service network-online.target
+
[Service]
-Type=simple
User=mythtv
-ExecStart=/usr/bin/mythbackend --syslog local7
+EnvironmentFile=-/etc/mythtv/additional.args
+ExecStartPre=/usr/bin/nm-online --quiet --timeout=5
+ExecStart=/usr/local/bin/mythbackend --quiet --syslog local7 $ADDITIONAL_ARGS
+StartLimitBurst=10
+StartLimitInterval=10m
Restart=on-failure
-StartLimitInterval=10min
-StandardOutput=null
-
+RestartSec=1
+
[Install]
WantedBy=multi-user.target
@@ -5,6 +5,7 @@ MYSQLCONFIGUPDATEHINT="/etc/mysql/conf.d/mythtv.cnf.ipv6update-with-public_bind.
FSTAB="/etc/fstab"
NEWIP="127.0.0.1"
LOCALHOSTNAME=`cat /etc/hostname`
+NEWMYSQLCONFDIR="/etc/mysql/mysql.conf.d/"
#Used to fail at some point but not abort postinst
fail_database() {
@@ -58,6 +59,11 @@ case "$1" in
fi
fi
+ ## This will need to exist until we no longer support 14.04
+ if [ -d "${NEWMYSQLCONFDIR}" ]; then
+ ln -s "${MYSQLCONFIG}" "${NEWMYSQLCONFDIR}"
+ fi
+
. /usr/share/debconf/confmodule
db_get mythtv/mysql_mythtv_dbname

0 comments on commit 5bdf696

Please sign in to comment.