SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Runnning 24x7 as a service

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Runnning 24x7 as a service
Author Message
joshua.cappello



Joined: 28 Aug 2020
Posts: 6

Post Runnning 24x7 as a service Reply with quote
I am running windows version 3.4.33 and it is meeting our needs. However, I have been asked to setup the application as a service. When I select to do so, it automatically starts the application with the Example Jobs.dat file. Is it possible to specify a different .dat for startup as a service?
Fri Aug 28, 2020 12:05 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7229

Post Reply with quote
Yes, of course. The issue here is that the name of the last job database used is saved in the registry. If you setup the service using a different account, it might be unable to read the same part of the registry. As a fall back, it reverts to the default file.
Fri Aug 28, 2020 4:41 pm View user's profile Send private message
joshua.cappello



Joined: 28 Aug 2020
Posts: 6

Post Reply with quote
Is it possible to change the Registry setting? If so, what is the name of the registry setting?
Sat Aug 29, 2020 2:51 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7229

Post Reply with quote
I'd like to suggest a different method. Start the scheduler in interactive desktop mode using the account you are planning on using with the service. Open and save the job database file you want it to use. Please make sure it's a local file, best if saved to C drive. Restart the scheduler in service mode.
Sat Aug 29, 2020 4:01 pm View user's profile Send private message
joshua.cappello



Joined: 28 Aug 2020
Posts: 6

Post Reply with quote
We currently run the scheduler on our server in interactive desktop mode with our service account. I open the database file and save it all the time with that account. I want to switch it to Service mode using the same account, but it opens the example jobs database. Our database is in the same directory that the Example Jobs file is in as well. I tried removing the example jobs file hoping that it would default to finding the database file that it normally opens, but it said it couldn't find the example jobs file. All of our datafiles are on the local server, but not on the C: drive. Any other thoughts?
Mon Aug 31, 2020 2:32 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7229

Post Reply with quote
Is the file saved to a network share or local drive.
If local, is it saved to a virtualized folder specific to the user account or regular?
What's the actual path to the file?
Mon Aug 31, 2020 8:17 am View user's profile Send private message
joshua.cappello



Joined: 28 Aug 2020
Posts: 6

Post Reply with quote
It is a local drive that is virtualized.

\\localhost\c$\appData\Data (E:) \24x7 Automation 3\*.dat

The mapped drive is done using the service account.
Mon Aug 31, 2020 4:36 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7229

Post Reply with quote
I see,. You do use drive mapping. Drive mapping is not visible to Windows services unless you map them from the service by executing some OS command, for example, from a job map E drive. But it's no help here with the service starting. You want the scheduler to open a file on startup. You would need to open the job database file as C:\appData\Data\24x7 Automation 3\file name here.dat

Any jobs referring to E: would need to be modified too to refer to C. Or alternatively you could add a job with On Startup schedule from which you execute something like "net use E ..." command. That may or may not work though for all jobs depending on how they are setup, but worth trying.
Tue Sep 01, 2020 12:52 am View user's profile Send private message
joshua.cappello



Joined: 28 Aug 2020
Posts: 6

Post Reply with quote
I'll give that a try. Thanks for your help.

**Update** That worked. Thank You!
Tue Sep 01, 2020 7:57 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.