System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Unrecognized service in linix

 
GTFSpanneer
Frequent Advisor

Unrecognized service in linix

Hi ALL,

I am not able restart the below service in linux os.please see the below error

httpd: unrecognized service
mysqld: unrecognized service

Please help to resolve the above issue.

regards
panneer
7 REPLIES
AnthonySN
Respected Contributor

Re: Unrecognized service in linix

post

service httpd status
service mysqld status

Wilfred Chau_1
Respected Contributor

Re: Unrecognized service in linix

how did you restart them?

Using the service should work per previous reply.

Do you see any output from the below commands?
chkconfig --list httpd
chkconfig --list mysqld

Gerardo Arceri
Trusted Contributor

Re: Unrecognized service in linix

Mnhh.. the "service" utility is only available on RedHat and its derivatives (i don't know if suse has it).
you might want to try:
/etc/init.d/httpd [restart|stop|start|status]
/etc/init.d/mysqld [restart|stop|start|status]

Regards.!
PS: Remember to thank us by assigning points!
AnthonySN
Respected Contributor

Re: Unrecognized service in linix

no where in the query he has mentioned its SUSE linux.

can u post the output of
rpm -qa mysql
rpm -qa apa

Elmar P. Kolkman
Honored Contributor

Re: Unrecognized service in linix

First: the service commando is not RedHat only: my Ubuntu workstation is also 'blessed' with it.

Then the error: the service command gives this, if there is no script in /etc/init.d with the service name. Apparently you don't have httpd and mysqld installed or the scripts have vanished.
Every problem has at least one solution. Only some solutions are harder to find.
GTFSpanneer
Frequent Advisor

Re: Unrecognized service in linix

Hi SASj,

Please see the output....
[root@pispap01 ~]# rpm -qa mysql
mysql-5.0.45-7.el5
[root@pispap01 ~]# rpm -qa apa
[root@pispap01 ~]#

[root@node ~]# ps -ef |grep apa
root 4356 1 0 Jun17 ? 00:00:00 /opt/cognite-3.0/apache2/bin/httpd -f /opt/cognite-3.0/apache2/conf/httpd.conf
daemon 4358 4356 0 Jun17 ? 00:00:00 /opt/cognite-3.0/apache2/bin/fcgi- -f /opt/cognite-3.0/apache2/conf/httpd.conf
root 4364 4356 0 Jun17 ? 00:00:00 /opt/cognite-3.0/ruby/lib/ruby/gems/1.8/gems/passenger-2.2.5/ext/apache2/ApplicationPoolServerExecutable 0 /opt/cognite-3.0/ruby/lib/ruby/gems/1.8/gems/passenger-2.2.5/bin/passenger-spawn-server /opt/cognite-3.0/ruby/bin/ruby /tmp/passenger.4356
daemon 4370 4356 0 Jun17 ? 00:00:00 /opt/cognite-3.0/apache2/bin/httpd -f /opt/cognite-3.0/apache2/conf/httpd.conf
daemon 4371 4356 0 Jun17 ? 00:00:00 /opt/cognite-3.0/apache2/bin/httpd -f /opt/cognite-3.0/apache2/conf/httpd.conf
daemon 4372 4356 0 Jun17 ? 00:00:00 /opt/cognite-3.0/apache2/bin/httpd -f /opt/cognite-3.0/apache2/conf/httpd.conf
daemon 4374 4356 0 Jun17 ? 00:00:00 /opt/cognite-3.0/apache2/bin/httpd -f /opt/cognite-3.0/apache2/conf/httpd.conf
daemon 4975 4356 0 Jun17 ? 00:00:00 /opt/cognite-3.0/apache2/bin/httpd -f /opt/cognite-3.0/apache2/conf/httpd.conf
daemon 4981 4356 0 Jun17 ? 00:00:00 /opt/cognite-3.0/apache2/bin/httpd -f /opt/cognite-3.0/apache2/conf/httpd.conf
daemon 5337 4356 0 Jun17 ? 00:00:00 /opt/cognite-3.0/apache2/bin/httpd -f /opt/cognite-3.0/apache2/conf/httpd.conf
daemon 5375 4356 0 Jun17 ? 00:00:00 /opt/cognite-3.0/apache2/bin/httpd -f /opt/cognite-3.0/apache2/conf/httpd.conf
daemon 5377 4356 0 Jun17 ? 00:00:00 /opt/cognite-3.0/apache2/bin/httpd -f /opt/cognite-3.0/apache2/conf/httpd.conf
daemon 5381 4356 0 Jun17 ? 00:00:00 /opt/cognite-3.0/apache2/bin/httpd -f /opt/cognite-3.0/apache2/conf/httpd.conf
daemon 19316 4356 0 10:23 ? 00:00:00 /opt/cognite-3.0/apache2/bin/httpd -f /opt/cognite-3.0/apache2/conf/httpd.conf
root 19367 19333 0 10:31 pts/0 00:00:00 grep apa
Matti_Kurkela
Honored Contributor

Re: Unrecognized service in linix

> root 4356 1 0 Jun17 ? 00:00:00 /opt/cognite-3.0/apache2/bin/httpd -f /opt/cognite-3.0/apache2/conf/httpd.conf

Looks like this is not a standard Apache package. I would guess this is installed as a part of the installation of Cognite 3.0 software (whatever it is).

You should read the Cognite documentation to find out the correct and supported method of restarting it.

MK
MK