Solved

Trixbox Configure automatic nightly reboot

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
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.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now