xorg-server: rework systemd service files

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-08-17 03:48:14 +02:00
parent 3a54941311
commit 8664322c24
7 changed files with 18 additions and 10 deletions

View File

@ -194,5 +194,7 @@ post_makeinstall_target() {
post_install() {
enable_service xorg-monitor.path
enable_service xorg-server.path
enable_service xorg.service
# enable_service xorg.path
# enable_service xorg.target
}

View File

@ -1,9 +1,9 @@
[Unit]
Description=Xorg configfile monitor
After=xorg-server.service
After=xorg.service
[Path]
PathModified=/run/openelec/debug.conf
[Install]
WantedBy=graphical.target
WantedBy=xorg.target

View File

@ -1,10 +1,10 @@
[Unit]
Description=Xorg configfile monitor
After=xorg-server.service
After=xorg.service
[Service]
Type=oneshot
ExecStart=/bin/systemctl restart xorg-server.service
[Install]
WantedBy=graphical.target
WantedBy=xorg.target

View File

@ -5,4 +5,4 @@ Description=Xorg server configfile watcher
PathExists=/run/openelec/xorg-settings.conf
[Install]
WantedBy=graphical.target
WantedBy=xorg.target

View File

@ -1,8 +1,9 @@
[Unit]
Description=Xorg Server
Conflicts=rescue.service rescue.target installer.target
Requires=graphical.target
After=multi-user.target
Before=xorg.target
ConditionPathExists=/run/openelec/xorg-settings.conf
[Service]
Environment=DISPLAY=:0.0
@ -10,6 +11,7 @@ EnvironmentFile=/run/openelec/xorg-settings.conf
EnvironmentFile=-/run/openelec/debug.conf
ExecStart=/usr/bin/Xorg vt01 $XORG_ARGS $XORG_DEBUG
Restart=always
# RestartSec=10
[Install]
WantedBy=graphical.target
WantedBy=xorg.target

View File

@ -0,0 +1,4 @@
[Unit]
Description=The basic Xorg server
Conflicts=installer.target textmode.target rescue.target
Before=graphical.target

View File

@ -45,6 +45,6 @@ GOTO="end_video"
# configure Xorg
LABEL="configure_xorg"
ENV{xorg_driver}=="?*", RUN+="xorg-configure"
ENV{xorg_driver}=="?*", RUN+="xorg-configure", TAG+="systemd", ENV{SYSTEMD_WANTS}+="xorg.target"
LABEL="end_video"