Written by

Senior Cloud Architect at InterSystems
Question Eduard Lebedyuk · May 23, 2023

Abort system start at %ZSTART

Is it possible to abort system start during SYSTEM^%ZSTART?

If some conditions are not met, I want to shut down IRIS instead of continuing with the startup.

Comments

Julius Kavay · May 23, 2023

In some way, I wonder about your question. This is a very specific question and a correct and accurate answer can be given by Intersystems only. If you take a look on the articles here, the most of them are about other lanuages, new technologies etc. but none of Cache/IRIS internals. If you look on the questions, very often they start with "I'm new to ISC technologies, need some help". Do you really expect an answer from an newbe? Or you really expect an answer from a Kubernetes, Phyton, Angular etc. developer? On the other hand, you are an Intersystems employee, so why don't ask somebody from the developer department? What about contacting WRC? I would be ashamed to ask such a question here.

0
Jeffrey Drumm  May 23, 2023 to Julius Kavay

I think in some cases questions are simply seeds planted for the growth of stimulating exchanges of ideas.

This is a topic I would find interesting, and I'm no newbie, nor am I an ISC employee.

If the answers to this question don't interest you, there are other questions that can use your help 😉

0
Evgeny Shvarov  May 23, 2023 to Julius Kavay

Don't agree. Why be ashamed of asking questions at all? :) We don't know everything. WRC doesn't know everything. 

0
Eduard Lebedyuk  May 23, 2023 to Evgeny Shvarov

WRC doesn't know everything.  

Now that's slander 😀 They know everything.

0
Eduard Lebedyuk  May 23, 2023 to Julius Kavay

I try to ask all non-sensitive questions on community so that the info would be available publicly.

0
jaroslav rapp · May 23, 2023

ages back in Caché 5.? or so there was

  • Do INT^SHUTDOWN   

to get rid of your running system
I just checked: it's still there in IRIS  and working clean

0
Alex Woodhead  May 24, 2023 to jaroslav rapp

Thanks for sharing answer.

Adding a snippet for %ZSTART in case fellow community person wished find / refer to later.

#include %occStatus
  quit 0SYSTEM() PUBLIC {
    Try {
    // Some test to determine whether to start or not
        if ##class(%File).Exists("c:\tmp\stop.txt") {
          Do INT^SHUTDOWN
        }  
    Catch {}quit 0}
0