User Tools

Site Tools


check_service_and_restart_if_failed

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
check_service_and_restart_if_failed [2020/07/27 03:33] k2patelcheck_service_and_restart_if_failed [2020/08/10 02:35] (current) – external edit 127.0.0.1
Line 46: Line 46:
  
   # Define service array   # Define service array
-  serviceName = 'nginx+  serviceName = ["nginx"] 
- +  for service in serviceName: 
-  main(serviceName)+    main(service)
 </code> </code>
check_service_and_restart_if_failed.1595820824.txt.gz · Last modified: 2020/08/10 02:30 (external edit)