Results 1 to 4 of 4

Thread: Script for checking CCcam status

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Standard RSP member franta's Avatar
    Join Date
    24 Jun 2009
    Location
    Hamburg
    Posts
    1,430
    Mentioned
    3 Post(s)
    Rep Power
    73

    Default script restart pt E2 folosit pe BH 1.7.9

    Daca mai are nevoie cineva de un script care sa verifice si sa dea restart la CCcam in caz in care e nevoie, eu pe BH folosesc scriptul urmator denumit ccheck.sh si plasat in
    /usr/script
    #!/bin/sh
    if ps x |grep -v grep |grep -c CCcam >/dev/null
    then
    echo "cccam... ok"
    else
    echo "cccam... restarting"
    /usr/bin/CCcam
    fi
    Se adauga liniade mai jos in fisieru root si bh.cron aflate in /etc/bhcron/
    */5 * * * * /usr/script/ccheck.sh
    Last edited by franta; 19-12-12 at 22:18.

Posting Permissions

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