 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
dalfonso01
Joined: 08 May 2009 Posts: 39 Country: Italy |
|
Connecting to a scheduler running as a service |
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7953
|
|
|
|
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 |
|
 |
dalfonso01
Joined: 08 May 2009 Posts: 39 Country: Italy |
|
Running the main scheluler as a service or as a deamon |
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7953
|
|
|
|
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 |
|
 |
dalfonso01
Joined: 08 May 2009 Posts: 39 Country: Italy |
|
rc.local |
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7953
|
|
|
|
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
 |
 |
#!/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 |
|
 |
|
|
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
|
|
|