Home · Articles · Downloads · Hobby Wear · Forums · Web Links · News CategoriesThursday, December 13, 2018
Navigation
Home
Articles
Downloads
Hobby Wear
FAQ
Forums
Web Links
News Categories
Contact Us
Photo Gallery
OpenVMS Bigot
Search
Users Online
Guests Online: 11
No Members Online

Registered Members: 7,239
Newest Member: liu000888
Sponsors
Island Computer
View Thread
OpenVMS Hobbyist Program | Alpha Systems Forums | FreeAXP
Author FreeAXP - Run as a service
jpigott
Member

Posts: 2
Joined: 26.04.11
Posted on April 26 2011 11:51
Is it possible to run the current version of FreeAXP as a windows service?
Author RE: FreeAXP - Run as a service
John Manger
Moderator

User Avatar

Posts: 53
Location: nr Heathrow, Middlesex, UK
Joined: 18.03.10
Posted on April 26 2011 20:55
The current release of FreeAXP '1.3.0.351' is not designed to be run as a service.

'Run as a service' is a feature that requires a different approach to the emulator's VLC console and the o/s console, as well as its interaction with the desktop. We have an internal development release with this capability but there is no product ship date at this stage.

John M
Edited by John Manger on April 28 2011 10:42
Author RE: FreeAXP - Run as a service
Bruce Claremont
Moderator

Posts: 508
Joined: 07.01.10
Posted on April 27 2011 14:02
These links may help:

http://www.timdavis.com.au/general/creating-a-user-defined-service-in-windows-7/

http://answers.microsoft.com/en-us/windows/forum/windows_vista-performance/how-do-i-create-a-user-defined-service/ed290a19-3115-4c26-abee-5122181877e1

http://support.microsoft.com/kb/137890

Avanti and AvantiFlex will support running as a service in release 2.1 or 2.2.
Author RE: FreeAXP - Run as a service
srallen87
Member

Posts: 9
Joined: 04.08.11
Posted on August 09 2011 03:26
Thanks for those links Bruce.
Author RE: FreeAXP - Run as a service
NeonJack
Member

Posts: 12
Joined: 30.03.10
Posted on January 14 2013 04:32


I have got FreeAXP running as a service, and it works very well indeed, following these links: you have to use the word "Application" where Tim Davis's article says "App-" and AppParameter must just be the "/CONFIGURATION_FILE="/path/to/whatever_your_conf_file_is_called.cfg" but otherwise it all works well. You can use the windows sc command to add a description after you have the service installed, if you want e.g.
sc description name_of_service "This is a description for the Freeaxp emulator application running as a service"

I would recommend setting the service as manual or Automatic (delayed start) because I think Windows has enough to be starting with getting all the rest of its stuff to support the system up and running before having to worry about FreeAXP. If you SET AUTO_ACTION BOOT and SET BOOTDEF_DEV ddua (i.e. your boot disk) and exit properly it will save that in the nvr file and automatically boot up next time your host machine reboots.
Author RE: FreeAXP - Run as a service
NeonJack
Member

Posts: 12
Joined: 30.03.10
Posted on January 14 2013 04:42
Following on from this, what would be particularly nice would be to intercept machine shutdown (or shutdown and restart) so that putty can be configured to logon to the console (OPA0) as system and issue a shutdown command, followed by a console firmware exit, before the host machine finally shuts up.

I am looking into this, but if anybody has the answer that would be great.smiley
Author RE: FreeAXP - Run as a service
NeonJack
Member

Posts: 12
Joined: 30.03.10
Posted on January 16 2013 05:09
NeonJack wrote:
Following on from this, what would be particularly nice would be to intercept machine shutdown (or shutdown and restart) so that putty can be configured to logon to the console (OPA0) as system and issue a shutdown command, followed by a console firmware exit, before the host machine finally shuts up.

I am looking into this, but if anybody has the answer that would be great.smiley


I have found a solution to this:-
You need ExtraPuTTY which has a script facility. Set the script to login to the system console as SYSTEM and then issue a SHUTDOWN command. put a 40 second or so wait command in then issue 'exit' (without quotes) at the firmware console prompt to make the emulator itself spindown. Windows will then stop the service as part of its shutdown.
Then, you create a batch file that calls putty (from the \extraputty\ directory) on the command line, specify -load "name of session" -startup "name of shutdown script" and then put this batch file into the shutdown files (searchon the Internet for "adding Windows shutdown tasks" to find out how to do this) so that it executes before Windows completes its shutdown.

Note that FreeAXP as a service relies on you not needing to change the configuration interactively, so, for example, it's no good putting in a "ask at runtime" selection for the NIC to use when FreeAXP starts running..smiley
Author RE: FreeAXP - Run as a service
lottabull
Member

Posts: 6
Location: USA
Joined: 14.02.08
Posted on April 26 2013 08:21
NeonJack, could you post a redacted copy of the (LUA?) login-and-shutdown script?

Author RE: FreeAXP - Run as a service
NeonJack
Member

Posts: 12
Joined: 30.03.10
Posted on May 23 2013 23:32
Yes here we are:-

<?xml version="1.0"?>
<!--Registry file for ExtraPuTTY, Copyright 2011-->
<ExtraPuTTYTreeCmd>
<Position name="ExtraPuTTY" use="0">
<btlr name="bottom" value="0"/>
<btlr name="top" value="0"/>
<btlr name="left" value="0"/>
<btlr name="right" value="0"/>
</Position>
<Position name="PuTTY" use="0">
<btlr name="bottom" value="0"/>
<btlr name="top" value="0"/>
<btlr name="left" value="0"/>
<btlr name="right" value="0"/>
</Position>
<Options Locked="0"/>
<root name="Shutdown" RGB="16711680" lfHeight="-12" lfWidth="0" lfEscapement="0" lfOrientation="0" lfWeight="700" lfItalic="255" lfUnderline="1" lfStrikeOut="0" lfCharSet="0" lfOutPrecision="3" lfClipPrecision="2" lfQuality="1" lfPitchAndFamily="34" lfFaceName="Arial">
<childroot name="doShutup" type="2" loop="1" auto="0" RGB="128" lfHeight="-12" lfWidth="0" lfEscapement="0" lfOrientation="0" lfWeight="700" lfItalic="255" lfUnderline="0" lfStrikeOut="0" lfCharSet="0" lfOutPrecision="3" lfClipPrecision="2" lfQuality="1" lfPitchAndFamily="34" lfFaceName="Arial">
<childscenarii name="login" cmd=" " tempo="1000" mode="execute" CRLF="1" RGB="0" lfHeight="-12" lfWidth="0" lfEscapement="0" lfOrientation="0" lfWeight="400" lfItalic="0" lfUnderline="0" lfStrikeOut="0" lfCharSet="0" lfOutPrecision="3" lfClipPrecision="2" lfQuality="1" lfPitchAndFamily="34" lfFaceName="Arial"/>
<childscenarii name="username" cmd="SYSTEM" tempo="1000" mode="execute" CRLF="1" RGB="0" lfHeight="-12" lfWidth="0" lfEscapement="0" lfOrientation="0" lfWeight="400" lfItalic="0" lfUnderline="0" lfStrikeOut="0" lfCharSet="0" lfOutPrecision="3" lfClipPrecision="2" lfQuality="1" lfPitchAndFamily="34" lfFaceName="Arial"/>
<childscenarii name="pwd" cmd="put_your_login_password_here" tempo="1000" mode="execute" CRLF="1" RGB="0" lfHeight="-12" lfWidth="0" lfEscapement="0" lfOrientation="0" lfWeight="400" lfItalic="0" lfUnderline="0" lfStrikeOut="0" lfCharSet="0" lfOutPrecision="3" lfClipPrecision="2" lfQuality="1" lfPitchAndFamily="34" lfFaceName="Arial"/>
<childscenarii name="issue shutdown command" cmd="SHUTDOWN" tempo="1000" mode="execute" CRLF="1" RGB="0" lfHeight="-12" lfWidth="0" lfEscapement="0" lfOrientation="0" lfWeight="400" lfItalic="0" lfUnderline="0" lfStrikeOut="0" lfCharSet="0" lfOutPrecision="3" lfClipPrecision="2" lfQuality="1" lfPitchAndFamily="34" lfFaceName="Arial"/>
<childscenarii name="send CRLF" cmd=" <VK_RETURN>" tempo="30000" mode="execute" CRLF="1" RGB="0" lfHeight="-12" lfWidth="0" lfEscapement="0" lfOrientation="0" lfWeight="400" lfItalic="0" lfUnderline="0" lfStrikeOut="0" lfCharSet="0" lfOutPrecision="3" lfClipPrecision="2" lfQuality="1" lfPitchAndFamily="34" lfFaceName="Arial"/>
<childscenarii name="send CRLF" cmd=" <VK_RETURN>" tempo="30000" mode="execute" CRLF="1" RGB="0" lfHeight="-12" lfWidth="0" lfEscapement="0" lfOrientation="0" lfWeight="400" lfItalic="0" lfUnderline="0" lfStrikeOut="0" lfCharSet="0" lfOutPrecision="3" lfClipPrecision="2" lfQuality="1" lfPitchAndFamily="34" lfFaceName="Arial"/>
<childscenarii name="firmware exit" cmd="exit" tempo="1000" mode="execute" CRLF="1" RGB="0" lfHeight="-12" lfWidth="0" lfEscapement="0" lfOrientation="0" lfWeight="400" lfItalic="0" lfUnderline="0" lfStrikeOut="0" lfCharSet="0" lfOutPrecision="3" lfClipPrecision="2" lfQuality="1" lfPitchAndFamily="34" lfFaceName="Arial"/>
</childroot>
</root>
</ExtraPuTTYTreeCmd>


It's not infallible but seems to work well when running as part of the Windows Shutdown procedure as I explained earlier.

Most of the time it works OK when the host user is logged in, but it doesn't always work very well as part of a standalone Scheduler task...
Jump to Forum:
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Member Poll
Are you going to OpenVMS Boot Camp 2016?

Yes

No

You must login to vote.
Shoutbox
You must login to post a message.

jiml
November 09 2018
Thank you , Malmberg ! Exactly what I was hoping for . Reset key & all is well . JImL

malmberg
November 09 2018
Eisner was upgraded to the current Multinet Release. As part of that a new host key was generated. The old key was incompatible with newer Linux.

jiml
November 02 2018
ssh to eisner is now giving (on linux) "WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!" , Has the server key in fact changed ?

malmberg
June 26 2018
https://www.openvmshobbyi
st.com/forum/viewthread.p
hp?forum_id=10&thread_id=
2363


bhamakripa
June 24 2018
I am trying OpenVMS via SIMH. Need to get OS binaries for v7.3. Registered here but don't have any membership number yet which is needed to get license. Pls suggest what to do. I hardly know anyth

basilh
June 05 2018
Any other forum members in Perth, Australia?

LouF91
April 05 2018
ah maybe they love that!

malmberg
March 24 2018
Probably. More people hang out on the comp.os.vms newsgroup.

vaxpert
March 23 2018
I have a PE42A and other Alpha system stuff for sale. I'm in So California. Any interest out there?

goodbyespy
February 27 2018
To Prohorenko. Please, visit group OpenVMS in the ok.ru

peteherrera
February 24 2018
How much does it cost to buy a complete OpenVMS hardcopy documentation set of the latest version

prohorenko
February 17 2018
Please help to obtain the license on OpenVMS

malmberg
December 12 2017
HPE only makes the most current version of OpenVMS Alpha / IA64 /VAX available to hobbyists. When I had access to the Alliance 1 program it was the same. No public downloads are allowed by HPE.

nmbonao
December 08 2017
Is anybody knows OpenVMS 8.2 version downloadable version? or CD copy? Thank you very much

aarommes
December 02 2017
Bitcoin and Blockchain enthusiasts ( plus distributed computing ) please connec / reply: http://www.openvmshobbyis
t.com/forum/viewthread.ph
p?forum_id=130&thread_id=
2991


Shoutbox Archive