Results 1 to 8 of 8
  1. #1

    Question Plesk 8 Cron to Reboot Server

    Hi folks I am new to Dedicated Server I have Plesk 8 installed I would like to create Scheduled Task as root to reboot the server in every 8 hours. I tried to find help on google but was not accuretly lucky. Do you guys know any link that will guide me.

    Thanks in advance.

  2. #2
    Join Date
    Sep 2005
    Posts
    550
    Why would you want to do this in the first place? To answer your question, you would either have to have an implementation for the script to su to root, then reboot it, or you would have to add the script as a root crontab

  3. #3
    Join Date
    Jul 2005
    Location
    Buffalo, NY
    Posts
    2,626
    Quote Originally Posted by halisemre View Post
    Hi folks I am new to Dedicated Server I have Plesk 8 installed I would like to create Scheduled Task as root to reboot the server in every 8 hours. I tried to find help on google but was not accuretly lucky. Do you guys know any link that will guide me.

    Thanks in advance.
    I'd really advise against this; there's no reason to reboot a server that often. Following that route is a great way to ruin hardware...

  4. #4
    Any specific purpose that you are trying to do this ?
    www.24x7servermanagement.com
    Server Management, Server Security, Server Monitoring.
    India's Leading Managed Service Provider !! Skype: techs24x7

  5. #5
    actually 8 was just an example but at least I need to reboot everyday at around 2 am...because the server gets slow.

  6. #6
    Join Date
    Jan 2008
    Location
    United Kingdom
    Posts
    414
    Quote Originally Posted by halisemre View Post
    actually 8 was just an example but at least I need to reboot everyday at around 2 am...because the server gets slow.
    You'd be much better finding out what is causing the slowness instead of rebooting. When the server becomes slow, post the 'top' command here.

  7. #7
    thanks for your replys it is as follows

    PID USER PR NI %CPU TIME+ %MEM VIRT RES SHR S COMMAND
    1 root 16 0 0 0:00.83 0.1 1924 548 468 S init
    2 root RT 0 0 0:00.02 0.0 0 0 0 S migration/0
    3 root 34 19 0 0:00.00 0.0 0 0 0 S ksoftirqd/0
    4 root RT 0 0 0:00.00 0.0 0 0 0 S migration/1
    5 root 34 19 0 0:00.00 0.0 0 0 0 S ksoftirqd/1
    6 root 5 -10 0 0:00.00 0.0 0 0 0 S events/0
    7 root 5 -10 0 0:00.03 0.0 0 0 0 S events/1
    8 root 7 -10 0 0:00.00 0.0 0 0 0 S khelper
    9 root 15 -10 0 0:00.00 0.0 0 0 0 S kacpid
    35 root 5 -10 0 0:00.00 0.0 0 0 0 S kblockd/0
    36 root 5 -10 0 0:00.00 0.0 0 0 0 S kblockd/1
    37 root 15 0 0 0:00.00 0.0 0 0 0 S khubd
    54 root 20 0 0 0:00.00 0.0 0 0 0 S pdflush
    55 root 15 0 0 0:00.14 0.0 0 0 0 S pdflush
    56 root 25 0 0 0:00.00 0.0 0 0 0 S kswapd0
    57 root 10 -10 0 0:00.00 0.0 0 0 0 S aio/0
    58 root 10 -10 0 0:00.00 0.0 0 0 0 S aio/1

  8. #8
    Join Date
    Oct 2007
    Posts
    1,902
    Hi,

    Are you experiencing slowness in accessing the websites? or entire server is slow? Can you paste the load when the server is slow and number of apache connections?

    You can use the command cat /proc/loadavg to check the load and the following command to check the number of apache connections.

    netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1

    and

    netstat -apn |grep :80 |wc -l
    ServerPoint.com - a true hosting company offering online presence solutions since 1998.
    >>Web Hosting, colocation, dedicated servers and virtual private dedicated servers.
    >>>>Wholly owned multi homed network, servers and facilities.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •