view backup/stop.sh @ 2141:c62dfd37545f nginx_decoupled

use regex trick to stop stop_nginx.sh from detecting itself
author Violet7
date Mon, 19 Jan 2026 20:56:48 -0800
parents ee75b5c12272
children
line wrap: on
line source

#!/bin/bash

LUAN_PIDS=$(ps ax | awk '{if($0~"backup_[s]erver.luan"){print $1}}');
kill -TERM $LUAN_PIDS;
exit 0;