NetworkManager-dispatcher killing my scripts



I created a simple script to show my problem.
<-------start of /etc/NetworkManager/dispatcher.d/99-test script
test()
{
x=0
while [ ${x} -lt 25 ];do
sleep 1
echo ${x} > /tmp/test
let x=${x}+1
done
}
test &
<------end of script

the script gets killed after 8 seconds ie:
cat /tmp/test
8


I don't see any error messages in /var/log/message pertaining to it.

Is there a way to get my script to not get killed?
Maybe a way to externally call my script using dispatcher?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]