Introduction

In order to reboot the system on a regular base, you have to add a cron job in the linux system.

This can be done on a daily, weekly or monthly base.

The changes will be gone after an sw-update of the PBX.

Connect to SSH-console

Use putty or another SSH capable client to connect via port 22 to the PBX system.

Use the following credentials to login:

Login as: root

Password: <administrator PIN>


Add the cronjob

enter

root@galilei:~# nano /etc/crontab

to edit the existing file.

Following syntax can be used to add a reboot on every sunday at 23:15:

15 23 * * 0 root reboot

The final text will look like this:

# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user  command
15 23 * * 0 root reboot

Save the changes and exit the editor. Your system will now reboot every week on sunday 23:15.

 

  • No labels