how to automate server process

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Snayak
    New Member
    • Nov 2013
    • 1

    how to automate server process

    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.
  • numberwhun
    Recognized Expert Moderator Specialist
    • May 2007
    • 3467

    #2
    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

    Comment

    Working...