Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

cron jobs

  • 19-04-2005 3:41pm
    #1
    Registered Users, Registered Users 2 Posts: 2,032 ✭✭✭


    I've setup IPcop as our firewall and works very well but sometimes if the connection drops I have to hit disconnect and reconnect (from the web interface) or if I'm out of the office I just tell someone to reboot it using the power button...

    I've heard that it's pretty much a stripped down version of linux, so I've got in via ssh... which I did and it worked...

    but I'm not that experienced at command line linux and I wanted to create a simple cron job that would ping a site every 15 mins or so and if nothing came back to reboot the machine...

    Any advice would be good...

    Cheers


Comments

  • Registered Users, Registered Users 2 Posts: 2,755 ✭✭✭niallb


    Hi Colm,
    first make sure crond is installed and running.
    A ps aux should let you see it.

    If not, you'll have to fetch and install it,
    but I'd be surprised if it's not there.

    You can add a crontab entry using
    crontab -e
    and it should have a format like:
    0-59/15 * * * * root /usr/local/sbin/CheckOurLink

    I'd recommend against rebooting the system though.
    Find out what commands the system uses to restart
    the external network over the web interface, and just put those in the script.

    Hope that gets you started,
    keep us posted,
    NiallB


Advertisement