Solved

Trixbox Configure automatic nightly reboot

Posted on 2008-06-23
5
849 Views
Last Modified: 2008-07-09
Hi,

I am running Trixbox 2.2.4 and I want to configure it so that each night at say 2.00am it reboots itself. How do I configure this in linux?

Thanks

Mark
0
Comment
Question by:mark_06
5 Comments
 
LVL 19

Expert Comment

by:http:// thevpn.guru
ID: 21844126
Setup a cronjob

crontab -e

and add a line saying

00 2 * * * /sbin/shutdown now
0
 
LVL 6

Author Comment

by:mark_06
ID: 21844133
will that reboot the computer or just shut it down?
0
 
LVL 19

Expert Comment

by:http:// thevpn.guru
ID: 21844145
Try this

00 2 * * * /sbin/shutdown -r now

0
 
LVL 10

Accepted Solution

by:
PeturIngiEgilsson earned 500 total points
ID: 21844560
If /sbin/shutdown -r now, does not work use "00 2 * * * init 6" or "00 2 * * * telinit 6"
0
 
LVL 3

Expert Comment

by:darkmooink
ID: 21844586
why would you want to?
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Rate limit for DNS queries 7 85
looking for a CENTOS ISO to download with x window installed 2 51
ftp to port 21 4 54
voice mail Box feature on Lync 2010 3 108
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

827 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question