shell script:

```
#!/bin/sh
services=( httpd named proftpd mysqld dovecot postfix webmin)

for service in ${services[@]}
do

if ps ax | grep -v grep | grep $service > /dev/null
then
    echo "$service service running, everything is fine"     
else
    echo "$service is not running"
    service $service start
fi

done 

```

file executable, running from root user

command:

```
bash /etc/mycron/checkServices.sh

```

tried sh and just `/etc/mycron/checkServices.sh`

doesn't run