473,403 Members | 2,284 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

how to automate server process

1
Suppose some process are running in the back end unix environment, if any services is getting down then ,what we are doing is manually we are logging to that environment through putty and and then restating the process and by using some commands.So here i want to create a automated script where that script will run autometically and run and up the process and send the notification mails to the team members.
Nov 28 '13 #1
1 1434
numberwhun
3,509 Expert Mod 2GB
Well, there are a number of ways that you can go about this, but I will describe a couple here.

1. You could write a script that checks for the running process and/or its process id (which some processes would write to a file) and if it is not present, then the script would start it. The script could then be put into cron and run as often as you would like to check.

2. This option is a bit more intense, but could be used in many ways to manage configurations. By using something like Puppet (my preferred) or Chef, which are configuration management softwares, you could use either of them to 'ensure' a process is always running. If the process were to get stopped or stop, the updating client software would restart it the next time it ran to check configuration.

Either option will work but the first is quicker to do and a lot less learning intensive, but I thought I would throw #2 out there for the heck of it.

Regards,

Jeff
Dec 5 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Michael J. Moore | last post by:
Is it the listener process, or some other Oracle process. Also, on a UNIX system, when you do "ps -ef" to see your processes, the PPID points back to a process named "init". Why does the PPID not...
2
by: w2jin | last post by:
Hi All Some my SQL Server are experience high memory usage. 1. How can I detect which process which process cause the big memory usage and not released? 2. Which sql server components in...
2
by: John Jayaseelan | last post by:
Hi, Is 'sqlserver.exe' the only windows process does everything for that instance of the database? Please explain in details the SQL server process architecture. Thanks
4
by: Prince Kumar | last post by:
I joined a company recently and they have a java program which hangs (does nothing) after a while. This is no way consistent. It could succeed quite a few times and can fail a few other times....
3
by: Teckie03 | last post by:
Hi, does anyone know how to display a seperate browser from server process? My ASP.NET app control (ascx) has Archive button that does its own work , including updating an html page called...
5
by: Max Metral | last post by:
I have an application that has a web interface but also provides a direct TCP interface for some older systems. In IIS5, I used to just spawn a thread in Application_Start and clean it up when the...
0
by: DR | last post by:
Unable to start TSQL Debugging. Could not attach to SQL Server Process on 'srvname'. The RPC server is unavailable. I get this error when I try to run a SQL Server Project with a CLR stored...
4
by: Cirene | last post by:
i am creating an asp.net auction website how do i create a process that will "end" the auction when it's time obviously i don't want to sit at a browser and keep refreshing the page i'm not...
1
by: justsam | last post by:
Hi Guys, can anybody help me to figure out how much sql server takes to process a query and in case application server is busy and due to that sql server is waiting to send the rsult to Application...
0
by: Deshi | last post by:
Hi All, I am trying to abort the process running on server which takes more than the expected time to complete the task, I have developed web application which reads files from the drive and...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.