rich0 14/08/18 02:23:56
Modified: mythbackend.service
Log:
New patchset, improve logging on systemd.
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key
0x08C170DE55EC123A)
Revision ChangesPath
1.3 media-tv/mythtv/files/mythbackend.service
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/files/mythbackend.service?rev=1.3view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/files/mythbackend.service?rev=1.3content-type=text/plain
diff :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/files/mythbackend.service?r1=1.2r2=1.3
Index: mythbackend.service
===
RCS file: /var/cvsroot/gentoo-x86/media-tv/mythtv/files/mythbackend.service,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- mythbackend.service 15 Jul 2014 16:44:35 - 1.2
+++ mythbackend.service 18 Aug 2014 02:23:56 - 1.3
@@ -29,23 +29,6 @@
#Wants=httpd.service
[Service]
-# You have 2 choices for 'Type': simple or forking
-# These require ExecStart lines which are NOT interchangeable.
-# Type=simple is recommended.
-# If using 'Type=simple'
-# 1) you cannot have --daemon in the command line
-
-# If using 'Type=forking'
-# 1) you must have --daemon in the command line AND
-# 2) you must have --pidfile /somewhere in the command line AND
-# 3) you must have a line PIDFILE=/somewhere in the [service] stanza
-# this lets systemd know how to find the forked process PID,
-# otherwise it presumes the starting process will be the remaining process
-# (cf. with the mysqld_safe process which starts mysqld and then disappears).
-# Specifying a pidfile with Type simple does not cause any problems and
-# may help in debugging startup failures.
-
-#Type=forking
Type=simple
Environment=MYTHCONFDIR=/etc/mythtv
@@ -71,12 +54,13 @@
# Systemd sends stdout to syslog, and mythbackend has console logging enabled
without --daemon.
# Send stdout to /dev/null so console logging doesn't go to syslog
-StandardOutput=null
+#StandardOutput=null
# Default setting for Type=simple.
-ExecStart=/usr/bin/mythbackend --logpath /var/log/mythtv --loglevel crit
+#ExecStart=/usr/bin/mythbackend --logpath /var/log/mythtv --loglevel crit
+ExecStart=/usr/bin/mythbackend --loglevel notice --nologserver
# Whether systemd will continue over-watch and restart on any halt
-#Restart=always
+Restart=always
[Install]
WantedBy=multi-user.target