diff options
author | Daniil Baturin <daniil@baturin.org> | 2023-09-07 20:40:41 +0100 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-09-14 07:56:58 +0200 |
commit | 0814f38e5985651c57e7b6b0d3908bae19a19df8 (patch) | |
tree | b79d00a5adab795178130901065e0444fe851c45 /scripts/vyatta-monitor-background-stop | |
parent | 63c5b3b55c2e244148a2f7946c7e7cb0792c8a27 (diff) | |
download | vyatta-op-0814f38e5985651c57e7b6b0d3908bae19a19df8.tar.gz vyatta-op-0814f38e5985651c57e7b6b0d3908bae19a19df8.zip |
T671: remove scripts that are either unused or about to be replaced
(cherry picked from commit 2f92b8bbb1b1042ff14918af3495c86f8b0c7870)
Diffstat (limited to 'scripts/vyatta-monitor-background-stop')
-rwxr-xr-x | scripts/vyatta-monitor-background-stop | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/scripts/vyatta-monitor-background-stop b/scripts/vyatta-monitor-background-stop deleted file mode 100755 index c10528f..0000000 --- a/scripts/vyatta-monitor-background-stop +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -declare pidname="$1" -pidfile="/var/run/vyatta/monitor/$pidname-`tty| sed -e s-/--g -e s/dev//g`.pid" -if [ -f $pidfile ]; then - pid=$(cat $pidfile) - processname=$(cat /proc/$pid/cmdline 2>/dev/null) - if [[ $processname =~ "tail" ]];then - kill -9 $pid - rm -f $pidfile - exit 0 - fi -fi -echo -ne "\n You are not currently monitoring this service\n\n" |