mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Suppress error messages when PID files cannot be found
This commit is contained in:
parent
d4435ea874
commit
31e00b403c
1 changed files with 2 additions and 2 deletions
|
|
@ -31,7 +31,7 @@ function alive() {
|
|||
}
|
||||
|
||||
function shut_down(){
|
||||
PID=$$(cat $$SRV_PID)
|
||||
PID=$$(cat $$SRV_PID 2>/dev/null)
|
||||
if [[ $$? -eq 0 ]]; then
|
||||
if alive $PID; then
|
||||
echo "Stopping HTTP server"
|
||||
|
|
@ -44,7 +44,7 @@ function shut_down(){
|
|||
echo "HTTP server PIDFile not found"
|
||||
fi
|
||||
|
||||
PID=$$(cat $$PELICAN_PID)
|
||||
PID=$$(cat $$PELICAN_PID 2>/dev/null)
|
||||
if [[ $$? -eq 0 ]]; then
|
||||
if alive $$PID; then
|
||||
echo "Killing Pelican"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue