correctly kill ssb-server
This commit is contained in:
parent
3e0469f94c
commit
ea3c90b822
|
@ -111,8 +111,8 @@ if [[ ! $(which oasis) ]]; then
|
||||||
npm -g install ssb-server ## ADD SSB-SERVER FOR PRIVATE SSB MESSAGING (TODO: integrate Feedless modules on LOVELand Portal)
|
npm -g install ssb-server ## ADD SSB-SERVER FOR PRIVATE SSB MESSAGING (TODO: integrate Feedless modules on LOVELand Portal)
|
||||||
else
|
else
|
||||||
echo "Stopping OASIS"
|
echo "Stopping OASIS"
|
||||||
tokill=$(ps auxf --sort=+utime | grep -w oasis | grep -v -E 'color=auto|grep' | awk '{print $2}')
|
ssbD=$(ps auxf --sort=+utime | grep -w oasis | grep -v -E 'color=auto|grep' | awk '{print $2}')
|
||||||
tokill+=$(ps auxf --sort=+utime | grep -w ssb-server | grep -v -E 'color=auto|grep' | awk '{print $2}')
|
ssbD+=$(ps auxf --sort=+utime | grep -w ssb-server | grep -v -E 'color=auto|grep' | awk '{print $2}')
|
||||||
|
|
||||||
for tokill in $ssbD; do
|
for tokill in $ssbD; do
|
||||||
kill -9 $tokill
|
kill -9 $tokill
|
||||||
|
|
Loading…
Reference in New Issue