view backup/stop.sh @ 2137:67b504ba388c nginx_decoupled

don't assume the user's primary group name is the same as their username
author Violet7
date Mon, 19 Jan 2026 20:20:03 -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;