diff options
Diffstat (limited to 'meta-phosphor/recipes-phosphor/console/obmc-console')
4 files changed, 36 insertions, 0 deletions
diff --git a/meta-phosphor/recipes-phosphor/console/obmc-console/obmc-console-ssh.socket b/meta-phosphor/recipes-phosphor/console/obmc-console/obmc-console-ssh.socket new file mode 100644 index 0000000000..3174489efe --- /dev/null +++ b/meta-phosphor/recipes-phosphor/console/obmc-console/obmc-console-ssh.socket @@ -0,0 +1,10 @@ +[Unit] +Description=Phosphor Host Console SSH Per-Connection socket +Wants=obmc-console@{OBMC_CONSOLE_HOST_TTY}.service + +[Socket] +ListenStream=2200 +Accept=yes + +[Install] +WantedBy=sockets.target diff --git a/meta-phosphor/recipes-phosphor/console/obmc-console/obmc-console-ssh@.service b/meta-phosphor/recipes-phosphor/console/obmc-console/obmc-console-ssh@.service new file mode 100644 index 0000000000..82ffe7919a --- /dev/null +++ b/meta-phosphor/recipes-phosphor/console/obmc-console/obmc-console-ssh@.service @@ -0,0 +1,12 @@ +[Unit] +Description=Phosphor Host Console SSH Per-Connection +Wants=obmc-console@{OBMC_CONSOLE_HOST_TTY}.service + +[Service] +Environment="DROPBEAR_RSAKEY_DIR=/etc/dropbear" +EnvironmentFile={envfiledir}/dropbear +ExecStart=-/usr/bin/env dropbear -i -r ${{DROPBEAR_RSAKEY_DIR}}/dropbear_rsa_host_key -c "/usr/bin/env obmc-console-client" $DROPBEAR_EXTRA_ARGS +SyslogIdentifier=dropbear +ExecReload={base_bindir}/kill -HUP $MAINPID +StandardInput=socket +KillMode=process diff --git a/meta-phosphor/recipes-phosphor/console/obmc-console/obmc-console.conf b/meta-phosphor/recipes-phosphor/console/obmc-console/obmc-console.conf new file mode 100644 index 0000000000..d42caa9355 --- /dev/null +++ b/meta-phosphor/recipes-phosphor/console/obmc-console/obmc-console.conf @@ -0,0 +1,2 @@ +lpc-address = 0x3f8 +sirq = 4 diff --git a/meta-phosphor/recipes-phosphor/console/obmc-console/obmc-console@.service b/meta-phosphor/recipes-phosphor/console/obmc-console/obmc-console@.service new file mode 100644 index 0000000000..26e452c3cb --- /dev/null +++ b/meta-phosphor/recipes-phosphor/console/obmc-console/obmc-console@.service @@ -0,0 +1,12 @@ +[Unit] +Description=Phosphor Console Muxer listening on device /dev/%I +BindsTo=dev-%i.device +After=dev-%i.device + +[Service] +ExecStart=/usr/bin/env obmc-console-server --config {sysconfdir}/obmc-console.conf %i +SyslogIdentifier=obmc-console-server +Restart=always + +[Install] +WantedBy={SYSTEMD_DEFAULT_TARGET} |