07-16-2018
Shell script to stop and start server
Hi,
I need to create a shell script for automated server patching, with the following scenario:
- I have two Linux servers Primary and secondary.
- Server patching should start on Primary 1st and then secondary.
- 1st check both servers are up and running.
- Then stop primary and patching will start.
- Start primary after patching.
- Wait for server status to be running and check for messages ready in logs.
- Then stop the secondary side.
- start patching.
- start the secondary server after patching is completed.
- Wait for server status to be running and check for messages ready in logs.
- I want to use uc4 to create jobs for this in later
Last edited by rbatte1; 07-16-2018 at 11:35 AM..
Reason: Formatted numbered/bulletted list
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm a newbie to the Unix world Help!
I have to maintain a host of Sybase database servers sitting on Unix Sun Solaris 8...I've been tasked with finding/creating a way to auto start/stop Unix via unix commands, specifically when the Unix servers need to be restarted we want Sybase to start... (2 Replies)
Discussion started by: jjv1
2 Replies
2. Solaris
As the title. Thanks (1 Reply)
Discussion started by: eddsos
1 Replies
3. Shell Programming and Scripting
Hi,
I just learnt the shell scripting and got working on that right now. I have one problem.
Here i am having a java application that needs to be start and stop using two shell scripts, i.e., starting the java application using one shell script and stopping the application using another... (1 Reply)
Discussion started by: sadha
1 Replies
4. Solaris
Hi,
I am working with a company where some times i need to start/stop cron jobs on need basis.
I have one option to kill cron daemon.Is it right?
Please correct me.
Waiting for your reply.
Thanks in advance.. (2 Replies)
Discussion started by: varaprasadu
2 Replies
5. UNIX for Dummies Questions & Answers
i have two separate scripts that work nicely to curl and generate two files.. one html and one txt so a total of four.
When the script starts up i want it to:
call and run shellscripta
call and run shellscriptb
sleep for about 40 seconds
again run shellscripta
again run shellscriptb
check... (4 Replies)
Discussion started by: phpfreak
4 Replies
6. Shell Programming and Scripting
Hi All,
I would like to develop a shell script for stop & start an application server (1-4) on Solaris box. Here are the user requirements for this task.
1. User will input the option which server they wish to stop.
2. Will clear cache files from specific location.
3. ... (1 Reply)
Discussion started by: venga
1 Replies
7. UNIX for Dummies Questions & Answers
I did a search of these forums but couldnt find a suitable resolution.
I am attempting to script a stop and start of an application on AIX.
Such as:
However it has authentication where username and password prompts will appear after running the above command requiring input from a... (2 Replies)
Discussion started by: Soupy
2 Replies
8. Shell Programming and Scripting
Hello All,
I am completely new to shell scripting. I had to write a script that starts and stop the queue manager in Websphere MQ. We are on Linux 64-bit patform.
The script should stop the queue manager and all the processes related to websphere MQ. It should be a clean stop. Once the queue... (3 Replies)
Discussion started by: pady1224
3 Replies
9. UNIX and Linux Applications
Good afternoon
I need your help please.
There is a Mantenance Windos which needs to Restart de Database Server 192.x.x.97 to set up some configuration
Is it mandatory or not to stop/start Applcation server that runs in 192.x.x.95 ?
Is it mandatory or not to stop/start apache and Tomcat?... (3 Replies)
Discussion started by: alexcol
3 Replies
LEARN ABOUT CENTOS
pppoe-stop
PPPOE-STOP(8) System Manager's Manual PPPOE-STOP(8)
NAME
pppoe-stop - Shell script to shut down a PPPoE link
SYNOPSIS
pppoe-stop [config_file]
DESCRIPTION
pppoe-stop is a shell script which stops the Roaring Penguin user-space PPPoE client. If you omit config_file, the default file
/etc/sysconfig/network-scripts/ifcfg-ppp0 is used.
AUTHOR
pppoe-stop was written by David F. Skoll <dfs@roaringpenguin.com>.
The pppoe home page is http://www.roaringpenguin.com/pppoe/.
SEE ALSO
pppoe(8), pppoe-start(8), pppoe-connect(8), pppd(8), pppoe.conf(5), pppoe-setup(8), pppoe-status(8), pppoe-sniff(8), pppoe-relay(8), pppoe-
server(8)
4th Berkeley Distribution 21 February 2000 PPPOE-STOP(8)