Permalink
Browse files
Fix linking mythtv.cnf and systemd startup file
- Loading branch information...
Showing
with
4 additions
and
4 deletions.
-
+2
−2
deb/debian/mythtv-backend.service
-
+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