Solved

Trixbox Configure automatic nightly reboot

Posted on 2008-06-23
5
848 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Exchange 2010 unable to mount DB due to corruption 11 114
Failing ALG SIP test for new VoIP phone system 4 86
mcrypt_create_iv() is deprecated 4 163
linux 13 50
Implementing Avaya's One-X portal is pretty painless, until you want to deploy this to the Android and iPhone clients when these clients are outside of your network. The clients will also work within your local network. Here is our experience and so…
Almost all Internet protocol telephones have built-in switches at the back that allow you to connect your personal computer to one port and use the other port to connect your phone to to a Cisco switch.   Why we need to connect the PC to the pho…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

810 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