Is it possible to restart ejabberd server using cronjob?
I tried with following script :
#!/bin/bash
output=$(ejabberdctl status)
if [[ $output == *"status: started"* ]]
then
#nothing to do
else
ejabberdctl start
fi
I tried to call this script in multiple ways but the server is not starting.
Any reference will be very helpful, thanks in advance.