The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    16
    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:
    16
    Anybody????
     
  3. FeeL

    FeeL Well-Known Member

    Joined:
    Apr 17, 2004
    Messages:
    135
    Likes Received:
    2
    Trophy Points:
    18
    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.
     
Loading...

Share This Page