Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
212
/
task
/
212
/
root
/
srv
/
admin
/
scripts
/
init.d
/
//proc/212/task/212/root/srv/admin/scripts/init.d/shell
#!/bin/bash # Enable errexit option: this explains why we almost never check return values. # We want this script to exit (with exitcode > 0) if anything goes wrong. set -e exec >& /dev/console . /lib/start-lib.sh NAME=shell HOME=/srv/data TTY=tty1 [ -n "$LOCAL_DOCKER_TEST" ] && TTY="tty" do_start() { cd "$HOME" [ "$#" -gt 0 ] && parse_arguments "$@" NO_TTY_REDIRECTIONS= pgrep restart-shell > /dev/null || \ start_user_shell_on_tty "$PAAS_USER" "$TTY" } do_stop() { pkill -KILL --terminal "$TTY" || return 0 } case "$1" in start) shift do_start "$@" ;; stop) echo "Stopping $NAME" do_stop ;; *) echo "Usage: $0 {start|stop}" exit 1 ;; esac