summaryrefslogtreecommitdiffstats
path: root/remote/modules/debug
diff options
context:
space:
mode:
authorSimon Rettberg2013-06-28 17:59:39 +0200
committerSimon Rettberg2013-06-28 17:59:39 +0200
commit7af5ab81fba9a7708990d2f42b4051d39cdd21d7 (patch)
tree7b4c504a67010bb08323f0bcddff05c91ac1912a /remote/modules/debug
parent[vmchooser] Load kvm kernel module if host supports it (diff)
downloadtm-scripts-7af5ab81fba9a7708990d2f42b4051d39cdd21d7.tar.gz
tm-scripts-7af5ab81fba9a7708990d2f42b4051d39cdd21d7.tar.xz
tm-scripts-7af5ab81fba9a7708990d2f42b4051d39cdd21d7.zip
Moved debug-shell service from systemd module to debug module
Diffstat (limited to 'remote/modules/debug')
-rw-r--r--remote/modules/debug/data/etc/systemd/system/debug-shell.service33
l---------remote/modules/debug/data/etc/systemd/system/sysinit.target.wants/debug-shell.service1
2 files changed, 34 insertions, 0 deletions
diff --git a/remote/modules/debug/data/etc/systemd/system/debug-shell.service b/remote/modules/debug/data/etc/systemd/system/debug-shell.service
new file mode 100644
index 00000000..fedd138d
--- /dev/null
+++ b/remote/modules/debug/data/etc/systemd/system/debug-shell.service
@@ -0,0 +1,33 @@
+# This file is part of systemd.
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+
+[Unit]
+Description=Early root shell on tty9 FOR DEBUGGING ONLY
+Documentation=man:sushell(8)
+DefaultDependencies=no
+IgnoreOnIsolate=yes
+
+[Service]
+Environment=TERM=linux PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/openslx/sbin:/opt/openslx/bin:/opt/openslx/usr/sbin:/opt/openslx/usr/bin
+ExecStart=/bin/sh
+Restart=always
+RestartSec=0
+StandardInput=tty
+TTYPath=/dev/tty9
+TTYReset=yes
+TTYVHangup=yes
+KillMode=process
+IgnoreSIGPIPE=no
+# bash ignores SIGTERM
+KillSignal=SIGHUP
+
+# Unset locale for the console getty since the console has problems
+# displaying some internationalized messages.
+Environment=LANG= LANGUAGE= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= LC_MONETARY= LC_MESSAGES= LC_PAPER= LC_NAME= LC_ADDRESS= LC_TELEPHONE= LC_MEASUREMENT= LC_IDENTIFICATION=
+
+[Install]
+WantedBy=sysinit.target
diff --git a/remote/modules/debug/data/etc/systemd/system/sysinit.target.wants/debug-shell.service b/remote/modules/debug/data/etc/systemd/system/sysinit.target.wants/debug-shell.service
new file mode 120000
index 00000000..699b56ac
--- /dev/null
+++ b/remote/modules/debug/data/etc/systemd/system/sysinit.target.wants/debug-shell.service
@@ -0,0 +1 @@
+../debug-shell.service \ No newline at end of file