SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Connecting to a scheduler running as a service

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Connecting to a scheduler running as a service
Author Message
dalfonso01



Joined: 08 May 2009
Posts: 39
Country: Italy

Post Connecting to a scheduler running as a service Reply with quote
Hi,
I would know if connecting to a scheduler running as a service is simply obtained opening a windows and then, after change, closing the window, leaving the scheduler service running.

If I have open two process is only one job executed, if condition to run are met while the processes are running?

Thanks
Fabio D'Alfonso
Sat May 09, 2009 11:43 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7953

Post Reply with quote
I'm sorry, I don't understand your question. Would you please rephrase it or provide a specific example?
Sat May 09, 2009 12:34 pm View user's profile Send private message
dalfonso01



Joined: 08 May 2009
Posts: 39
Country: Italy

Post Running the main scheluler as a service or as a deamon Reply with quote
Hi,
I would know what is the process in windows to be used to install a service ( Should I setup it with master.bat nogui or with the 24x7srv.exe) and what is the command line to insert in the rc.local.

I was also asking if running more that one master.bat can bring to a double job or trigger execution.

Thanks
Fabio D'Alfonso
Sat May 09, 2009 12:45 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7953

Post Reply with quote
What's rc.local? I've never heard of this.

To install a service you should use 24x7srv. For details run 24x7srv /? command from the command prompt.

You can multiple instances of the scheduler or agent on the same system only if you install them into different directories and configure them to use different port numbers.
Sat May 09, 2009 1:03 pm View user's profile Send private message
dalfonso01



Joined: 08 May 2009
Posts: 39
Country: Italy

Post rc.local Reply with quote
Hi,
rc.local is a file which is executed at linux boot and where are inserted commands which are executed at every runlevels. What is the command to be put to start as a deamon?

/path/master.sh nogui ?

Thanks
Fabio D'Alfonso
Sat May 09, 2009 1:12 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7953

Post Reply with quote
I thought you were talking about a Windows system.

Yes, if you want to start it as daemon on a Linux system, you can use ./master.sh nogui command. Please make sure you CD to the 24x7 home directory first.

If you use a specific user profile script to start, create new shell script like in the following example, so that you can avoid multiple starts during interactive user logins, and use ./control.sh start

Code:

#!/bin/sh

###########################################################
# The first parameter must be either 'start' or 'stop',
# for example:
#
# ./control.sh start
###########################################################

if [ "$1" = "start" ]
then
   # start server if it is not already running
   ps -ef | grep -v grep | grep jscheduler.jar

   if [ $? -eq 1 ]
   then
      echo "Starting 24x7 server..."
      $JAVA_HOME/bin/java -jar jscheduler.jar nogui &
      echo "Server started."
   else
      echo "24x7 Scheduler/Agent is already running."
   fi
elif [ "$1" = "stop" ]
then
   # find and kill the server process
        ps -ef | grep -v grep | grep jscheduler.jar

   if [ $? -eq 1 ]
   then
      echo "ERROR:  24x7 Scheduler/Agent is not running."
      exit 1
   else
                ps xu | grep -v grep | grep jscheduler.jar  | awk '{ print $2 }' | xargs kill -9
      echo "Terminate signal has been sent to the 24x7 Scheduler/Agent server process."
   fi
else
   echo "ERROR:  Invalid command line parameters."
   echo "Example 1: ./control.sh start"
   echo "Example 2: ./control.sh stop"
   exit 1
fi

Sat May 09, 2009 1:20 pm 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.