From 7af5ab81fba9a7708990d2f42b4051d39cdd21d7 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 28 Jun 2013 17:59:39 +0200 Subject: Moved debug-shell service from systemd module to debug module --- .../data/etc/systemd/system/debug-shell.service | 33 ++++++++++++++++++++++ .../sysinit.target.wants/debug-shell.service | 1 + 2 files changed, 34 insertions(+) create mode 100644 remote/modules/debug/data/etc/systemd/system/debug-shell.service create mode 120000 remote/modules/debug/data/etc/systemd/system/sysinit.target.wants/debug-shell.service (limited to 'remote/modules/debug/data/etc') 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 -- cgit v1.2.3-55-g7522