Moderator Control Panel ]

Can i setup auto reboot moi pro?

Can i setup auto reboot moi pro?

Postby aurimelis » Thu Oct 22, 2015 6:03 am

Hi,
can i setup on moi pro auto restart for every 24hour to make sytem reboot ? I cant found here crontab
aurimelis
 
Posts: 9
Joined: Tue Oct 20, 2015 3:16 pm

Re: Can i setup auto reboot moi pro?

Postby adminzz » Wed Feb 03, 2016 2:22 pm

Hi

you can do like this:

1.ln -s /usr/share/zoneinfo/* /etc/localtime


create a file such as root
write the following command to it
0 6 * * * /sbin/shutdowm -r now
place the file to /var/spool/cron/crontab folder
#chmod 777 /var/spool/cron/crontab/root

0 6 * * * /sbin/shutdowm -r now it means it will auto reboot every 6:00 am


dos2unix /var/spool/cron/crontabs/root

Thanks

Kind Regards

steven
adminzz
Site Admin
 
Posts: 8
Joined: Tue Apr 06, 2010 11:52 am


Return to MOI Pro

Who is online

Users browsing this forum: No registered users and 5 guests