diff options
| author | Jonathan Bauer | 2013-12-16 17:10:38 +0100 |
|---|---|---|
| committer | Jonathan Bauer | 2013-12-16 17:10:38 +0100 |
| commit | 16104d1302a6050a2e20dcb961e81419c4718fb6 (patch) | |
| tree | 63c692a43d5fc5020928a38eae67b9527addff1f /server | |
| parent | [pam] added pam_env.conf to data folder (diff) | |
| parent | debug-shell module that spwans a root shell on tty9 after switching to stage3.2 (diff) | |
| download | tm-scripts-16104d1302a6050a2e20dcb961e81419c4718fb6.tar.gz tm-scripts-16104d1302a6050a2e20dcb961e81419c4718fb6.tar.xz tm-scripts-16104d1302a6050a2e20dcb961e81419c4718fb6.zip | |
Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts
Diffstat (limited to 'server')
| -rw-r--r-- | server/modules/debug-shell/etc/systemd/system/debug-shell.service | 32 | ||||
| l--------- | server/modules/debug-shell/etc/systemd/system/sysinit.target.wants/debug-shell.service | 1 |
2 files changed, 33 insertions, 0 deletions
diff --git a/server/modules/debug-shell/etc/systemd/system/debug-shell.service b/server/modules/debug-shell/etc/systemd/system/debug-shell.service new file mode 100644 index 00000000..6d50b3bd --- /dev/null +++ b/server/modules/debug-shell/etc/systemd/system/debug-shell.service @@ -0,0 +1,32 @@ +# 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] +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/server/modules/debug-shell/etc/systemd/system/sysinit.target.wants/debug-shell.service b/server/modules/debug-shell/etc/systemd/system/sysinit.target.wants/debug-shell.service new file mode 120000 index 00000000..699b56ac --- /dev/null +++ b/server/modules/debug-shell/etc/systemd/system/sysinit.target.wants/debug-shell.service @@ -0,0 +1 @@ +../debug-shell.service
\ No newline at end of file |
