perfsonar / bwctl

A scheduling and policy framework for measurement tools
Apache License 2.0
16 stars 6 forks source link

init script with bwctl-server 1.6.0-2.el6 #33

Closed igarny closed 3 years ago

igarny commented 8 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 bwctl-server status bwctl-server (pid 32675) running [root@test-rhps02 ~]# echo $? 0 [root@test-rhps02 ~]# service bwctl-server stop /etc/init.d/bwctl-server stop: bwctl-server stopped [root@test-rhps02 ~]# service bwctl-server status bwctl-server (pid 32675?) not running [root@test-rhps02 ~]# echo $? 0 [root@test-rhps02 ~]# service bwctl-server start /usr/bin/bwctld -c /etc/bwctl-server -R /var/run /etc/init.d/bwctl-server start: bwctl-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