Getting jBASE phantom processes to restart automatically after reboot (Windows)?

134 views
Skip to first unread message

Greg Iverson

unread,
Mar 3, 2020, 5:18:33 PM3/3/20
to jBASE
Hi all!

This is an annoying issue that I thought I'd finally ask about since it's not going to fix itself! :)

On D3 every phantom process I had previously started would start back up after a system reboot. I never had to worry about whether or not there was a power failure or someone tripped on the power cord.
I have several phantoms whose only purpose is to check and make sure the other phantoms are running...but of course THEY don't start either so I remain ignorant :)

With jBASE, not only do I not have the functionality of choosing when processes kick off (between certain times and on certain days, etc.), but when the PC is restarted, the processes don't start back up automatically.

I have a proc in the MD that I run manually at TCL (JSH prompt) that does all the necessary PH-START commands, but is there any way to get it to run after a system reboot (or some other way to kick them off again)?

Just seems strange that jBASE forgets all about the phantoms and starts fresh with each reboot? I guess I've got to stop compiling lists of all the things D3 does that jBASE doesn't - HA! :)

-Greg
 

ma...@proman.com

unread,
Mar 3, 2020, 6:43:27 PM3/3/20
to jb...@googlegroups.com

You might consider adding your own service for your.exe which would execute the PH-START commands

 

https://support.microsoft.com/en-us/help/137890/how-to-create-a-user-defined-service

The registry settings woud be something like

Application : C:\jBASE\5.5.0\bin\jsh.exe

AppParameters : -Jb -c fullpath\your.exe

 

OR

 

Adding fullpath\jpq fullpath\proc to the Startup procedure might also work.

--
--
IMPORTANT: T24/Globus posts are no longer accepted on this forum.
 
To post, send email to jB...@googlegroups.com
To unsubscribe, send email to jBASE-un...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

---
You received this message because you are subscribed to the Google Groups "jBASE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbase+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbase/21dbde52-866d-48fa-8287-aee125fc8e37%40googlegroups.com.

Bruce Decker

unread,
Mar 4, 2020, 10:05:27 AM3/4/20
to jb...@googlegroups.com

Great tip Mark.  And on *nix, Cron is the “standard” way of doing timed execution.

 

Often, the power of jBASE comes from what it does not need to do. 

 

With our upcoming community-based documentation, handy tips like this will nestle right next to the main docs making life easier for Greg and the community at large.  It’s gonna be great!

-BD

Greg Iverson

unread,
Mar 4, 2020, 1:55:19 PM3/4/20
to jBASE
Thanks for the info!

I decided to go the STARTUP folder route...

I created a DOS batch file called phstartup.bat with this in it referencing my MD proc phstart:

c:\jbase\CurrentVersion\bin\jpq.exe d:\ibs\freespirit\md]d\phstart

I then created a shortcut to this batch file in the special/hidden Windows Startup dir and it now appears under the Startup tab in Task Manager so I should be good to go!
 
We'll see what happens after our next reboot :)

Thanks again!

-Greg

To unsubscribe from this group and stop receiving emails from it, send an email to jb...@googlegroups.com.

Jim Idle

unread,
Mar 5, 2020, 1:22:23 AM3/5/20
to jb...@googlegroups.com
This was in fact much of the point. Move away from Pick only. 

For Windows, use this:

And there are a few commercial schedulers that are great. Think different :)

These days, I would not run Windows - AWS Linux is the way to go guys. 

jIM

Reply all
Reply to author
Forward
0 new messages