Closed igarny closed 7 years ago
Hi guys,
Please review and improve the init script for the bwctl-server. IMHO the invocation with "status", does not follow correctly the standard procedures.
Examples with services that follow correctly the protocol are "perfsonar-lsregistrationdaemon", "perfsonar-regulartesting" or "perfsonar-oppd-server"
[root@test-rhps02 ~]# service owamp-server status owamp-server (pid 49756) running [root@test-rhps02 ~]# echo $? 0 [root@test-rhps02 ~]# service owamp-server stop /etc/init.d/owamp-server stop: owamp-server stopped [root@test-rhps02 ~]# service owamp-server status owamp-server (pid 49756?) not running [root@test-rhps02 ~]# echo $? 0 [root@test-rhps02 ~]# service owamp-server start /usr/bin/owampd -c /etc/owamp-server -R /var/run /etc/init.d/owamp-server start: owamp-server started [root@test-rhps02 ~]# service httpd status httpd (pid 28141) is running... [root@test-rhps02 ~]# echo $? 0 [root@test-rhps02 ~]# service httpd stop Stopping httpd: [ OK ] [root@test-rhps02 ~]# service httpd status httpd is stopped [root@test-rhps02 ~]# echo $? 3 [root@test-rhps02 ~]# service httpd start Starting httpd: [ OK ] [root@test-rhps02 ~]#
Best regards, Ivan
Hi guys,
Please review and improve the init script for the bwctl-server. IMHO the invocation with "status", does not follow correctly the standard procedures.
Examples with services that follow correctly the protocol are "perfsonar-lsregistrationdaemon", "perfsonar-regulartesting" or "perfsonar-oppd-server"
[root@test-rhps02 ~]# service owamp-server status owamp-server (pid 49756) running [root@test-rhps02 ~]# echo $? 0 [root@test-rhps02 ~]# service owamp-server stop /etc/init.d/owamp-server stop: owamp-server stopped [root@test-rhps02 ~]# service owamp-server status owamp-server (pid 49756?) not running [root@test-rhps02 ~]# echo $? 0 [root@test-rhps02 ~]# service owamp-server start /usr/bin/owampd -c /etc/owamp-server -R /var/run /etc/init.d/owamp-server start: owamp-server started [root@test-rhps02 ~]# service httpd status httpd (pid 28141) is running... [root@test-rhps02 ~]# echo $? 0 [root@test-rhps02 ~]# service httpd stop Stopping httpd: [ OK ] [root@test-rhps02 ~]# service httpd status httpd is stopped [root@test-rhps02 ~]# echo $? 3 [root@test-rhps02 ~]# service httpd start Starting httpd: [ OK ] [root@test-rhps02 ~]#
Best regards, Ivan