<div dir="ltr">What it sounds like you need, is  for simh to detect the shutdown interrupt itself, and then save the current state of everything in the machine to a file. Upon power-up, it then needs to restore back to that state.<div>You;d have to save the current configuration settings,  state of memory, cpu registers, device structures, etc., and then be able to read it all back in and restore everything back to a working state. Could get complicated, for example the disk drive have a timer in them so that they don't respond instantly to read requests, so this type of thing would need to be saved.</div><div>Is it possible to manually do this right now? Store the state of a machine, them restore it back using simh commands to individually reset all the devices?</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 29, 2019 at 7:52 PM Jeremy Begg <<a href="mailto:jeremy@vsm.com.au">jeremy@vsm.com.au</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello Jim,<br>
<br>
>       Hello Jeremy ,  You call a /home/eric/stop_eric.sh in your systemd<br>
>procedure ,  But forgot to insert the contents of the file in your missive .<br>
<br>
That's because I never wrote the 'stop_eric.sh' script.  Apologies for not<br>
saying so in my posting!  The other postings in this discussion have given<br>
me some ideas I might persue but for the time being it's not a critical item<br>
for me.<br>
<br>
Regards,<br>
<br>
        Jeremy Begg<br>
<br>
>On Fri, 29 Nov 2019, Jeremy Begg wrote:<br>
>> Hi Seth,<br>
>><br>
>>> Has anyone got a clean solution for running a background SIMH process<br>
>>> that doesn't involve `screen` or `tmux`?<br>
>><br>
>> My solution is pretty clean and doesn't require any kind of virtual TTY.<br>
>><br>
>> I have SIMH running under Ubuntu Linux 18.04 on an Intel i3 NUC box.<br>
>> It took a little trial and error to get it all working (mostly due to<br>
>> Ubuntu's use of 'netplan' and 'systemd') but it works well enough for me.<br>
>><br>
>> It's configured so that my SIMH VAX starts up when Linux starts up.<br>
>> I don't have it configured to shutdown VAX/VMS or SIMH when Linux is<br>
>> shutting down, but for my purposes it doesn't need to.  (Or I just haven't<br>
>> gotten around to it yet; the machine is only rebooted when I want it to.)<br>
>><br>
>> ------------------------------------------------------------------------------<br>
>> # /etc/systemd/system/simh-eric.service<br>
>> # Starts SIMH at system boot to run ERIC the Half-a-VAX<br>
>> # Created 21-Jul-2019 by Jeremy Begg<br>
>><br>
>> [Unit]<br>
>> Description=ERIC the half-a-VAX<br>
>> Requires=network-online.target<br>
>> After=network-online.target<br>
>><br>
>> [Service]<br>
>> User=eric<br>
>> ExecStart=/home/eric/start_eric.sh<br>
>> ExecStop=/home/eric/stop_eric.sh<br>
>> RemainAfterExit=yes<br>
>><br>
>> [Install]<br>
>> WantedBy=multi-user.target<br>
<br>
>--<br>
>+---------------------------------------------------------------------+<br>
>| James   W.   Laferriere    | System    Techniques | Give me VMS     |<br>
>| Network & System Engineer  | 3237     Holden Road |  Give me Linux  |<br>
>| <a href="mailto:jiml@system-techniques.com" target="_blank">jiml@system-techniques.com</a> | Fairbanks, AK. 99709 |   only  on  AXP |<br>
>+---------------------------------------------------------------------+<br>
_______________________________________________<br>
Simh mailing list<br>
<a href="mailto:Simh@trailing-edge.com" target="_blank">Simh@trailing-edge.com</a><br>
<a href="http://mailman.trailing-edge.com/mailman/listinfo/simh" rel="noreferrer" target="_blank">http://mailman.trailing-edge.com/mailman/listinfo/simh</a></blockquote></div>