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

cron así...



Con cualquiera de las 2 formas me funcionó ok

Con

0 * * * * /path_completo/invoke-rc.d ejabberd restart
path_de_un_log_porsiaca 2>&1


o con...

Crea un archivo por ejemplo reiniciar.sh y con permisos 744

Dentro del archivo debe decir:

#!/bin/bash
invoke-rc.d ejabberd restart

Prueba primero que funcione el archivo creado:

# sh reiniciar.sh

Luego modifica el cron y agrega el script.

0 0 * * * /ruta-completa/reiniciar.sh


Gracias

Saludos
Cosme


Reply to: