Sponsored Content
Top Forums Shell Programming and Scripting Need to Restart Service with Password Post 302530989 by pradeepbaliga on Wednesday 15th of June 2011 02:41:38 PM
Old 06-15-2011
Thanks Mayur,

I already written script like this to check the service

read component
if ps ax | grep -v grep | grep -w $component > /dev/null
then
echo "$component is Running"
else
echo "$component is NOT Running or NOT a Valid Component"
fi

i need a restart script in else part to restart the service.

Thanks,
Pradeep
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Service Restart Netbackup

For vertitas netbackup 6.0 I have media server :Solaris Client server: Windows I want to restart the netbackup service on the media server . plz suggest ASAP. (1 Reply)
Discussion started by: saurabh84g
1 Replies

2. Shell Programming and Scripting

Restart a Service!!

Hello, I am trying to write a script which will monitor few processes(winbind) for cpu utilization, If the process consumes more than say 99% cpu for 3 minutes, I want to run a script to restart the service which forks the process. ---------- Post updated at 11:21 AM ---------- Previous update... (5 Replies)
Discussion started by: linuxaddict7
5 Replies

3. Solaris

NFS client service restart

Can any one please tell me the command for NFS client service restart.This is to resolve, NFS mount slowness issue.Mount is very slow for both read and write operations.The below commands are not helping out in this situation. ---------- Post updated at 08:59 AM ---------- Previous update was... (1 Reply)
Discussion started by: ksvaisakh
1 Replies

4. HP-UX

Script to auto restart a service

Hi All, May i please know if it is possible to write a script to check the log messages and automatically restart a service if it is failed or it is stopped. Appreciate your suggestions. Thanks in advance. regards, Eajaz (2 Replies)
Discussion started by: ajazshariff
2 Replies

5. Shell Programming and Scripting

Restart IDSM service in WASSERVER

Hello, Currently i am handling admin activity of wasserver, its parts of teamcenter, wasserver is used to maintain IDSM service which is involved in data transfer activity. due to some reason IDSM service gets down and have to restart this service manually. ... (0 Replies)
Discussion started by: chetan0412
0 Replies

6. SuSE

Service restart daily

Hi, Beside using crontab, what is other application we can set it? Normally I check using command crontab -l. Any other path I need to check? Please guide me. Thanks. (2 Replies)
Discussion started by: mzainal
2 Replies

7. Shell Programming and Scripting

How to restart a service without root access.?

hi , can anyone please tell me to how to restart a service without root or i need a root access for it. as a user i am getting this type of error : nkchand@(tendcer0h1) nkchand $ service /opt/Nimsoft/bin/niminit stop ksh: service: not found. (1 Reply)
Discussion started by: nkchand
1 Replies

8. Red Hat

Service restart and check if running

Hello, I'l like to create a script that restart a service (/etc/init.d/httpd restart) and also check if after restart the service is actually running. Sometimes it happen that at the first try the service fails to restart. Thanks (2 Replies)
Discussion started by: bazzola
2 Replies

9. Red Hat

Restart service xinit.d or init.d ?

Hello How do I restart init.d ?? (centos 6.5) Thanks (2 Replies)
Discussion started by: mnnn
2 Replies

10. Red Hat

Apache service not coming up after restart

When I update the server with new SSL certificates, and restart httpd, I get errors : # service httpd restart Stopping httpd: rm: cannot remove `/usr/local/apache2/bin/httpd/logs/httpd.pid': Not a directory Starting httpd: ... (0 Replies)
Discussion started by: anaigini45
0 Replies
ORTE_SNAPC(7)							     Open MPI							     ORTE_SNAPC(7)

NAME
ORTE_SNAPC - Open RTE MCA Snapshot Coordination (SnapC) Framework: Overview of Open RTE's SnapC framework, and selected modules. Open MPI 1.4.5 DESCRIPTION
Open RTE can coordinate the generation of a global snapshot of a parallel job from many distributed local snapshots. The components in this framework determine how to: Initiate the checkpoint of the parallel application, gather together the many distributed local snapshots, and provide the user with a global snapshot handle reference that can be used to restart the parallel application. GENERAL PROCESS REQUIREMENTS
In order for a process to use the Open RTE SnapC components it must adhear to a few programmatic requirements. First, the program must call ORTE_INIT early in its execution. This should only be called once, and it is not possible to checkpoint the process without it first having called this function. The program must call ORTE_FINALIZE before termination. A user may initiate a checkpoint of a parallel application by using the orte-checkpoint(1) and orte-restart(1) commands. AVAILABLE COMPONENTS
Open RTE ships with one SnapC component: full. The following MCA parameters apply to all components: snapc_base_verbose Set the verbosity level for all components. Default is 0, or silent except on error. snapc_base_global_snapshot_dir The directory to store the checkpoint snapshots. Default is /tmp. full SnapC Component The full component gathers together the local snapshots to the disk local to the Head Node Process (HNP) before completing the checkpoint of the process. This component does not currently support replicated HNPs, or timer based gathering of local snapshot data. This is a 3-tiered hierarchy of coordinators. The full component has the following MCA parameters: snapc_full_priority The component's priority to use when selecting the most appropriate component for a run. snapc_full_verbose Set the verbosity level for this component. Default is 0, or silent except on error. none SnapC Component The none component simply selects no SnapC component. All of the SnapC function calls return immediately with ORTE_SUCCESS. This component is the last component to be selected by default. This means that if another component is available, and the none component was not explicity requested then ORTE will attempt to activate all of the available components before falling back to this component. SEE ALSO
orte-checkpoint(1), orte-restart(1), opal-checkpoint(1), opal-restart(1), orte_filem(7), opal_crs(7) 1.4.5 Feb 10, 2012 ORTE_SNAPC(7)
All times are GMT -4. The time now is 10:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy