Hallo zusammen,
ich habe folgendes system.unit auf einem Digital Signage System:
# xorg-server.service - Xserver systemd service for kiosk mode.
#
# This file is part of digital-signage.
#
# digital-signage is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# digital-signage is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with digital-signage. If not, see <http://www.gnu.org/licenses/>.
#
# This unit provides a service to automatically login
# the digital signage user to a certain terminal.
#
# (C) 2015-2017: HOMEINFO - Digitale Informationssysteme GmbH
#
# Maintainer: Richard Neumann <r dot neumann at homeinfo period de>
#
###############################################################################
[Unit]
Description=Plain X.org server
After=plymouth-quit-wait.service
Conflicts=getty@tty7.service display-manager.service
[Service]
Type=simple
Environment=DISPLAY=:0
ExecStart=/usr/bin/X vt7 -nolisten tcp
ExecStartPost=/etc/xserverrc
Restart=on-failure
[Install]
WantedBy=graphical.target
Der Service und die zugehörige Digital Signage Anwendung funktionieren soweit einwandfrei.
Leider lässt sich der Service von Systemd nicht vernünftig stoppen, sondern timed immer aus und muss dann gekillt werden:
-- Reboot --
Mär 09 09:54:45 localhost systemd[1]: Starting Plain X.org server...
Mär 09 09:54:45 localhost systemd[1]: Started Plain X.org server.
Mär 09 09:54:45 localhost X[315]: X.Org X Server 1.19.2
Mär 09 09:54:45 localhost X[315]: Release Date: 2017-03-02
Mär 09 09:54:45 localhost X[315]: X Protocol Version 11, Revision 0
Mär 09 09:54:45 localhost X[315]: Build Operating System: Linux 4.9.13-1-lts x86_64
Mär 09 09:54:45 localhost X[315]: Current Operating System: Linux localhost 4.9.13-1-lts #1 SMP Mon Feb 27 21:32:16 CET 2017 x86_64
Mär 09 09:54:45 localhost X[315]: Kernel command line: initrd=\initramfs-linux-lts.img root=LABEL=root rw
Mär 09 09:54:45 localhost X[315]: Build Date: 03 March 2017 06:00:24PM
Mär 09 09:54:45 localhost X[315]:
Mär 09 09:54:45 localhost X[315]: Current version of pixman: 0.34.0
Mär 09 09:54:45 localhost X[315]: Before reporting problems, check http://wiki.x.org
Mär 09 09:54:45 localhost X[315]: to make sure that you have the latest version.
Mär 09 09:54:45 localhost X[315]: Markers: (--) probed, (**) from config file, (==) default setting,
Mär 09 09:54:45 localhost X[315]: (++) from command line, (!!) notice, (II) informational,
Mär 09 09:54:45 localhost X[315]: (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
Mär 09 09:54:45 localhost X[315]: (==) Log file: "/var/log/Xorg.0.log", Time: Thu Mar 9 09:54:45 2017
Mär 09 09:54:45 localhost X[315]: (==) Using config directory: "/etc/X11/xorg.conf.d"
Mär 09 09:54:45 localhost X[315]: (==) Using system config directory "/usr/share/X11/xorg.conf.d"
Mär 09 09:55:32 localhost X[315]: (II) AIGLX: Suspending AIGLX clients for VT switch
Mär 09 09:56:21 localhost systemd[1]: Stopping Plain X.org server...
Mär 09 09:57:51 localhost systemd[1]: xorg-server.service: State 'stop-sigterm' timed out. Killing.
Mär 09 09:57:51 localhost systemd[1]: xorg-server.service: Killing process 315 (Xorg) with signal SIGKILL.
Mär 09 09:57:51 localhost systemd[1]: xorg-server.service: Main process exited, code=killed, status=9/KILL
Mär 09 09:57:51 localhost systemd[1]: Stopped Plain X.org server.
Mär 09 09:57:51 localhost systemd[1]: xorg-server.service: Unit entered failed state.
Mär 09 09:57:51 localhost systemd[1]: xorg-server.service: Failed with result 'timeout'.
-- Reboot --
Das Problem tritt bereits seit einem Update Anfang des Jahres auf, aber ich hatte erst jetzt Zeit der Sache nach zu gehen.
Jede Hilfe, wie ich den Xserver zum vernünftigen Beenden bringen kann, ist mir willkommen.
Schöne Restwoche allerseits!
Schard