summaryrefslogtreecommitdiffstats
path: root/ubuntu/maverick/tdebase/debian/tdm-trinity.service
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2015-07-24 02:16:36 +0200
committerSlávek Banko <slavek.banko@axis.cz>2015-07-24 02:18:35 +0200
commit0be9f6f644adda8669b4956209833ffbd28d5f83 (patch)
tree21bf851bf86ce1a5d893a6f2e40106496306877b /ubuntu/maverick/tdebase/debian/tdm-trinity.service
parenta69ee1355f7e88fd2b07b5b1079ceee7127a63fc (diff)
downloadtde-packaging-0be9f6f644adda8669b4956209833ffbd28d5f83.tar.gz
tde-packaging-0be9f6f644adda8669b4956209833ffbd28d5f83.zip
Add systemd unit for tdm-trinity on Ubuntu
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit e1a5231c98a1e7e9cae92fbd84cb2848c615a1a7)
Diffstat (limited to 'ubuntu/maverick/tdebase/debian/tdm-trinity.service')
-rw-r--r--ubuntu/maverick/tdebase/debian/tdm-trinity.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/ubuntu/maverick/tdebase/debian/tdm-trinity.service b/ubuntu/maverick/tdebase/debian/tdm-trinity.service
new file mode 100644
index 000000000..349823a9f
--- /dev/null
+++ b/ubuntu/maverick/tdebase/debian/tdm-trinity.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Trinity Display Manager
+Documentation=man:tdm-trinity(1)
+Conflicts=getty@tty7.service plymouth-quit.service
+After=systemd-user-sessions.service getty@tty7.service plymouth-quit.service
+
+[Service]
+# temporary safety check until all DMs are converted to correct
+# display-manager.service symlink handling
+ExecStartPre=/bin/sh -c '[ "$(basename $(cat /etc/X11/default-display-manager 2>/dev/null))" = "tdm" ]'
+ExecStart=/opt/trinity/bin/tdm
+Restart=always