Skip to content
Snippets Groups Projects
ausf-healthy-check.sh 210 B
Newer Older
#!/bin/bash

STATUS=0

RESULT=$(ps aux | grep -v nohup || true)
SUB='/openair-ausf/bin/oai_ausf -c /openair-ausf/etc/ausf.conf -o'
if [[ $RESULT =~ $SUB ]]; then
    STATUS=0
else
   STATUS=-1
fi

exit $STATUS