Permalink
Browse files

Fix linking mythtv.cnf and systemd startup file

  • Loading branch information...
1 parent d398f64 commit d0fe457164fc357ce250b5f5197a6ed256f2781b @tgm4883 tgm4883 committed Jan 15, 2016
Showing with 4 additions and 4 deletions.
  1. +2 −2 deb/debian/mythtv-backend.service
  2. +2 −2 deb/debian/mythtv-database.postinst
@@ -1,13 +1,13 @@
[Unit]
Description=MythTV Backend
Documentation=https://www.mythtv.org/wiki/Mythbackend
-After=mysqld.service network-online.target
+After=mysqld.service network.target
[Service]
User=mythtv
EnvironmentFile=-/etc/mythtv/additional.args
ExecStartPre=/usr/bin/nm-online --quiet --timeout=5
-ExecStart=/usr/local/bin/mythbackend --quiet --syslog local7 $ADDITIONAL_ARGS
+ExecStart=/usr/bin/mythbackend --quiet --syslog local7 $ADDITIONAL_ARGS
StartLimitBurst=10
StartLimitInterval=10m
Restart=on-failure
@@ -60,8 +60,8 @@ case "$1" in
fi
## This will need to exist until we no longer support 14.04
- if ! [ -f "${NEWMYSQLCONFDIR}/mythtv.cnf"]; then
- if [ -d "${NEWMYSQLCONFDIR}" ]; then
+ if [ -d "${NEWMYSQLCONFDIR}" ]; then
+ if ! [ -e "${NEWMYSQLCONFDIR}/mythtv.cnf"]; then
ln -s "${MYSQLCONFIG}" "${NEWMYSQLCONFDIR}"
fi
fi

0 comments on commit d0fe457

Please sign in to comment.