From 35922856bcb0f04da6285e1e42c108ad2fc6ed41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Gro=C3=9Fmann?= Date: Mon, 19 Oct 2026 06:44:29 +0200 Subject: [PATCH] SHUTDOWN.RC: stop UFSD, HTTPD and FTPD; power off with one CPU A started UFSD, HTTPD or FTPD keeps JES2 from ending, so $HASP099 never comes and the shutdown stops there. Stop them after USERMAX=0, one command per pause: the 3215 console keeps only the last of two lines typed in quick succession. A P for a task that is not running only gets IEE341I. With NUMCPU 1 there is no SIGP Stop after QUIESCE, only wait state CCC, so neither poweroff rule matched and Hercules kept running. Add a rule on the wait state. Claude-Session: https://claude.ai/code/session_01P9jWrgHeDduYFv8HbS6vvk --- SCRIPTS/SHUTDOWN.RC | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/SCRIPTS/SHUTDOWN.RC b/SCRIPTS/SHUTDOWN.RC index 84c79a9..0d99656 100644 --- a/SCRIPTS/SHUTDOWN.RC +++ b/SCRIPTS/SHUTDOWN.RC @@ -15,6 +15,9 @@ hao tgt HHC00814I Processor CP00: SIGP Stop hao cmd script SCRIPTS/poweroff hao tgt HHC00814I Processor CP01: SIGP Stop hao cmd script SCRIPTS/poweroff +# With NUMCPU 1 there is no SIGP Stop: MVS loads wait state CCC after QUIESCE +hao tgt HHC00809I Processor CP00: disabled wait state 000A0000 00000CCC +hao cmd script SCRIPTS/poweroff hao tgt ([0-9]{2}) IKT010D hao cmd /R $1,FSTOP # For information see https://www.ibm.com/docs/en/zos/2.3.0?topic=commands-mvs-system-reference @@ -27,6 +30,16 @@ pause 2 * Preventing users from logging on /MODIFY TSO,USERMAX=0 pause 2 +* Stopping the servers: JES2 does not end while a started task runs, +* and a P for a task that is not running only gets IEE341I. +* One command per pause: the 3215 console keeps only the last line +* typed before MVS reads it. +/P FTPD +pause 1 +/P HTTPD +pause 3 +/P UFSD +pause 3 * Stop JES2 Initiators /$PI pause 2