annotate backup/stop.sh @ 2036:2740f8a9ba3a acme-tiny tip

First test prototype (also convert spaces to tabs and remove *.orig files)
author Violet7
date Wed, 05 Nov 2025 21:49:39 -0800
parents ee75b5c12272
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1693
45eaaf5146f3 add backup autostart
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
1 #!/bin/bash
45eaaf5146f3 add backup autostart
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
2
2030
ee75b5c12272 finish rename
Franklin Schmidt <fschmidt@gmail.com>
parents: 2026
diff changeset
3 LUAN_PIDS=$(ps ax | awk '{if($0~"backup_[s]erver.luan"){print $1}}');
1693
45eaaf5146f3 add backup autostart
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
4 kill -TERM $LUAN_PIDS;
45eaaf5146f3 add backup autostart
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
5 exit 0;