Cron Shutdown Автоматически Выключаем/Включаем сервера на ночь

Литература как бы намекает, но до конца не раскрывает вопрос.

Выводим и смотрим текущиее расписание заданий

crontab -l

Отредактируем (если не существует создастся) текущий файла расписания (/var/spool/cron/) (при первом запуске будет выведен список поддерживаемых текстовых редакторов), команда откроет для редактирования задачи того пользователя, от которого была введена команда,

crontab -e

Если команда требует привелегий root, то команду необходимо запускать от пользователя root

crontab -u root -e

Пропишем строку для выключения Хоста ежедневно в 2.30 ночи и не забуедм поставим в конце перевод сроки

30 2 * * * /sbin/shutdown -h now

Если необходимо прописать команду на именя другого пользователя, то необходимо запустить следующую команду от суперпользователя root, и явно указать пользователя:

crontab -u username

Писать задания прямо в системный файл /etc/crontab не рекомендуется, но уж если приспичило то в нем надо указывать пользователя, так:

0 5 * * * root /sbin/shutdown -h now

При проблемах смотри лог файл cron

grep cron /var/log/syslog


По идеии после добавления задачи рестарт крона не требуется но можно попробовать

/etc/init.d/cron restart

Основной системный файл конфигурации находится в /etc/crontab

Ключи запуска crontab

crontab -e  запускается пользователем для редактирования пользовательского файла crontab
crontab -r  удаление пользовательского файла crontab
crontab -l  выводит содержимое файла crontab
crontab -u username   запускается суперпользователем(root) для изменения crontab файлов других пользователей

Для включения хоста можно испльзоать Wake On Alarm, и Wake On Lan, эти функции должны поддерживаться материнской платой и настраиваются в BIOS.

Вот пример как используя шлюз pfsense и Wake On Lan включать хосты по расписанию

Таксаномия: 

Комментарии

cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes

cheap yeezy shoes
Cheap yeezys
air jordans for sale
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
Cheap Jordan 12
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
Cheap Jordan 12
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
Cheap Jordans For Sale
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
Cheap Jordans For Sale
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
Cheap Jordans Men
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
Cheap Jordans Online
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
Cheap Jordans Shoes
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
Cheap Puma Shoes
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
Cheap Real Yeezys
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
Cheap Under Armour Shoes
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
Cheap Under Armour Shoes
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
Cheap Yeezy v2
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
Jordans For Cheap
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
Jordan Shoes Cheap
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes

cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap air jordans
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap adidas shoes
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap curry shoes
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap fake yeezys
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap jordan 11
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap jordans for sale
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap jordan shoes
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap kobes
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap lebron shoes
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap nike shoes
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap nike shoes
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap real jordans
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap real jordans
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap real jordans
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
jordans cheap
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
lebron 12 cheap
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap adidas nmd
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap air force ones
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap air max 90
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap jordan shoes for men
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap jordans online
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap kd shoes
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap kobe shoes
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap lebron 13
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap lebrons
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap nike air max shoes
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap nike roshe
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap retro jordans
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap ultra boost
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap under armour
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap retro jordans
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap yeezys 350
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
cheap yeezys for sale
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
discount jordans
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
jordans for cheap
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
nike roshe run cheap
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
off white cheap
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes
cheap jordans
cheap yeezy shoes
Cheap yeezys
cheap nmd
wholesale nike shoes
cheap yeezy boost 350
cheap nike air max
cheap nike shoes
cheap lebrons
cheap jordan shoes

http://www.topsneakerwholesale.com/
http://www.adidasultraboost.uk/
http://www.adidasyeezy.us.org/
http://www.cheapsnapbackhats.us.com/
http://www.cheapyeezys.fr/
http://www.yeezysboost350.fr/
http://www.adidasyeezy.uk/
http://www.soronshop.com/
http://www.cheapairmax2018.co.uk/
http://www.dearlover.us/
http://www.kickstmall.com/
http://www.adidasultraboost.fr/
http://www.adidasyeezy.fr/
http://www.adidasyeezy350boost.uk/
http://www.adidasyeezy350boost.us.org/
http://www.cheapyeezy350boost.us/
http://www.yeezy350boost.uk.com/
http://www.yeezyboost350.fr/
http://www.yeezyboost350.com.de/
http://www.yeezyboost350forsale.co.uk/
http://www.yeezyboost350forsale.us.org/
http://www.yeezyboost.me.uk/
http://www.yeezyshoes.it/
http://www.yeezyshoes.me.uk/

http://www.airjordansforsale.us.com/
http://www.cheapjordan12.us.com/
http://www.cheapjordans.org/
http://www.cheapjordansforsale.co.uk/
http://www.cheapjordanshoes.org/
http://www.cheapjordansmen.us.com/
http://www.cheapjordansonline.us.org/
http://www.cheapjordansshoes.us.org/
http://www.cheappumashoes.us.com/
http://www.cheaprealyeezys.us.com/
http://www.cheapunderarmourshoes.com/
http://www.cheapyeezyboost350v2.us.com/
http://www.cheapyeezyv2.com/
http://www.jordansforcheap.us.org/
http://www.jordanshoescheap.us.org/

http://www.cheapairjordans.us.org/
http://www.cheapadidasshoes.us.com/
http://www.cheapcurryshoes.us.com/
http://www.cheapfakeyeezys.com/
http://www.cheapjordan11.us.com/
http://www.cheapjordansforsale.us.org/
http://www.cheapjordanshoes.us.org/
http://www.cheapkobes.us.com/
http://www.cheaplebronshoes.us.com/
http://www.cheapnikeshoes.us.org/
http://www.cheapnmd.com/
http://www.cheaprealjordans.us.org/
http://www.cheapyeezys.us.org/
http://www.cheapyeezyshoes.us.com/
http://www.jordanscheap.us.org/
http://www.lebron12cheap.com/
http://www.cheapadidasnmd.us.org/
http://www.cheapairforceones.us.com/
http://www.cheapairmax90.us.org/
http://www.cheapjordanshoesformen.us.com/
http://www.cheapjordansonline.co.uk/
http://www.cheapkdshoes.us.com/
http://www.cheapkobeshoes.us.com/
http://www.cheaplebron13.us.com/
http://www.cheaplebrons.us.com/
http://www.cheapnikeairmaxshoes.us.com/
http://www.cheapnikeroshe.us.com/
http://www.cheapretrojordans.us.org/
http://www.cheapultraboost.us.com/
http://www.cheapunderarmour.us.com/
http://www.cheapyeezyboost350.com/
http://www.cheapyeezys350.com/
http://www.cheapyeezysforsale.us.com/
http://www.discountjordans.us.com/
http://www.jordansforcheap.co.uk/
http://www.nikerosheruncheap.com/
http://www.offwhitecheap.com/
http://www.wholesalenikeshoes.us.com/

Добавить комментарий