[ 
https://issues.apache.org/jira/browse/TS-199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839273#action_12839273
 ] 

George Paul commented on TS-199:
--------------------------------

AFAIK init.d/rc scripts ( 'rc/trafficserver')  do not return an error on 
subsequent invocations but a status e.g. OK.

For example the 'sshd' init.d script on Ubuntu:

sudo /etc/init.d/ssh start
 * Starting OpenBSD Secure Shell server sshd                             [ OK ]
 sudo /etc/init.d/ssh start
 * Starting OpenBSD Secure Shell server sshd                             [ OK ]

and 
sudo /etc/init.d/ssh stop
 * Stopping OpenBSD Secure Shell server sshd                             [ OK ]
sudo /etc/init.d/ssh stop
 * Stopping OpenBSD Secure Shell server sshd                             [ OK ]

-G

> Startup script should fail on "multiple" invocations of "start" (or "stop")
> ---------------------------------------------------------------------------
>
>                 Key: TS-199
>                 URL: https://issues.apache.org/jira/browse/TS-199
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: Packaging
>            Reporter: Leif Hedstrom
>            Priority: Minor
>         Attachments: TS-199-v2-JasonGiedymin.patch, 
> TS-199-v3-JasonGiedymin.patch, TS-199_r1.patch
>
>
> If I do
> # /etc/init.d/trafficserver start
> # /etc/init.d/trafficserver start
> I'd expect the second invocation to give an error, [NO]. Same thing with 
> stop, if I run stop multiple times, if there are no process(es) to stop, each 
> invocation ought to generate errors as well, e.g.
> r...@loki 507/0 # ./local/bin/trafficserver stop
> Stopping :                                                 [  OK  ]
> Stopping :                                                 [  OK  ]
> Stopping :                                                 [  OK  ]
> r...@loki 508/0 # ./local/bin/trafficserver stop
> Stopping :                                                 [  NOT  ]
> Stopping :                                                 [  NOT  ]
> Stopping :                                                 [  NOT  ]

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to