#!/bin/bash
myvar=0
while [ $myvar -ne 10 ]
do
echo $myvar
mythbackend.real
myvar=$(( $myvar + 1 ))
done
Make sure it's executable. This script runs our renamed mythbackend ten times in a row (we're only going to restart mythbackend 10times). Then create a file called mythbackend with the following contents:
#!/bin/bash
mythbackend.run&
Again make it executable. This just fires off our mythbackend.run script in the backround. So there you go!
No comments:
Post a Comment