8 lines
75 B
Bash
Executable File
8 lines
75 B
Bash
Executable File
#!/bin/bash
|
|
|
|
pgrep nginx
|
|
if [ $? -ne 0 ]
|
|
then
|
|
rc-service nginx start
|
|
fi
|