[Answered] cron restart all services

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
neno20st
Posts: 11
Joined: Sun Jan 27, 2019 3:23 pm

[Answered] cron restart all services

Post by neno20st »

Hi all

How to write cron job to restart all dietpi services at 1 hour in the morning using crontab -e ?
User avatar
MichaIng
Site Admin
Posts: 2418
Joined: Sat Nov 18, 2017 6:21 pm

Re: cron restart all services

Post by MichaIng »

Add the line:
* 1 * * * /DietPi/dietpi/dietpi-services restart

This restarts services every day at 01:00 am system time.
neno20st
Posts: 11
Joined: Sun Jan 27, 2019 3:23 pm

Re: cron restart all services

Post by neno20st »

Thanks
Post Reply