Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How to create shortcuts?

Discussion in 'General Discussion' started by Jeff75, Nov 4, 2004.

  1. Jeff75

    Jeff75 Well-Known Member

    Joined:
    Apr 11, 2003
    Messages:
    555
    Likes Received:
    0
    Trophy Points:
    166
    I have a FreeBSD server and was wondering how to create shortcuts for restarting services on the server. For example, to restart exim, I'd like to type restartexim. Also, apachectl is currently coming up with an error stating that /usr/local/sbin/httpd is not found. I need to change it's location and was wondering what I need to do in order to change the path. pico apachectl does not work.
     
  2. Jeff75

    Jeff75 Well-Known Member

    Joined:
    Apr 11, 2003
    Messages:
    555
    Likes Received:
    0
    Trophy Points:
    166
    Anybody????
     
  3. FeeL

    FeeL Well-Known Member

    Joined:
    Apr 17, 2004
    Messages:
    135
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    Rio de janeiro
    cPanel Access Level:
    Reseller Owner
    its easy

    Its quite easy to create shortcuts to do anything you want.. Do you know some shell scripting? you can see some "restarters" ready to go at /scripts too
    for named restarting, you can simply put a line like "killall -HUP named" that makes the job, but you can also make mor complex scripts to do some checks before, and so on.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice