Announcement

Collapse
No announcement yet.

service: command not found ?

Collapse
This topic is closed.
X
This is a sticky topic.
X
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • service: command not found ?

    If you are not able to use the 'service' command (ie service httpd restart), then you need to add an alias so it gets recognized. Run the following commands as root via ssh:

    Code:
    whereis service
    That will show you the path your service command has whether or not it is installed. After you get the correct path, run the following:

    Code:
    alias service='/sbin/service'
    Most likely the path is /sbin/service but if the whereis command shows a different one, use that in the above command.
    www.AYKsolutions.com
    From Shared to Dedicated
    Professional. Painless. Polite.
Working...
X