use proper parameters for earlier versions of 'timeout' command
-hide warning if older version of timeout doesn't support --version
This commit is contained in:
parent
c22df32dd8
commit
176dd91e20
|
@ -35,9 +35,10 @@ start () {
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
#send term signal after 10 seconds
|
timeout --version >/dev/null 2>&1
|
||||||
timeout --version
|
|
||||||
RESULT="$?"
|
RESULT="$?"
|
||||||
|
|
||||||
|
#send term signal after 10 seconds
|
||||||
if [ "$RESULT" = "0" ]; then
|
if [ "$RESULT" = "0" ]; then
|
||||||
timeout -s9 10s /usr/lib/airtime/airtime_virtualenv/bin/python \
|
timeout -s9 10s /usr/lib/airtime/airtime_virtualenv/bin/python \
|
||||||
/usr/lib/airtime/pypo/bin/liquidsoap_scripts/liquidsoap_prepare_terminate.py
|
/usr/lib/airtime/pypo/bin/liquidsoap_scripts/liquidsoap_prepare_terminate.py
|
||||||
|
|
Loading…
Reference in New Issue