crontab -e
добавляю
* 0,6,12,18 * * * service apache2 restart
или
* 0,6,12,18 * * * /etc/init.d/apache2 restart
Но сохранять крон не хочет изменения
Получаю
crontab: installing new crontab
new crontab file is missing newline before EOF, can't install.
Do you want to retry the same edit? (y/n)