FastHandle is fast operation tools for infrastructure configurations and tests.
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
os:linux:check:scripts:check_reboot.sh.html [2017/11/25 23:35] kurihara |
os:linux:check:scripts:check_reboot.sh.html [2018/02/05 00:02] (current) kurihara |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | [[os:info.html|]] | + | [[os:linux: |
| ====== check_reboot.sh ====== | ====== check_reboot.sh ====== | ||
| + | |||
| + | $FHHOME/ | ||
| Line 6: | Line 8: | ||
| #!/bin/bash | #!/bin/bash | ||
| # | # | ||
| - | # systeminfo.sh | + | # check_reboot.sh |
| # | # | ||
| # How to use | # How to use | ||
| Line 17: | Line 19: | ||
| # Function | # Function | ||
| # | # | ||
| + | process_check(){ | ||
| + | | ||
| + | if [ " | ||
| + | echo "$1 Process Found" | ||
| + | fi | ||
| + | } | ||
| # | # | ||
| Line 70: | Line 77: | ||
| # Process | # Process | ||
| # | # | ||
| + | # OS | ||
| + | `process_check snmp` | ||
| + | |||
| + | # middleware | ||
| + | `process_check httpd` | ||
| + | `process_check nginx` | ||
| @ | @ | ||
| Line 78: | Line 91: | ||
| \\ | \\ | ||
| \\ | \\ | ||
| - | [[os:info.html|]] | + | [[os:linux: |
| \\ | \\ | ||
| <WRAP box 90%> | <WRAP box 90%> | ||
| [[: | [[: | ||
| - | <catlist ..: -noAddPageButton -noHead -sortAscending> | + | < |
| </ | </ | ||
My Sites
SNS
Copyright (c) 2025 FastHandle - IT Operations Examples All Rights Reserved.