diff options
author | James Davidson <james.davidson@vyatta.com> | 2012-03-07 10:46:10 -0800 |
---|---|---|
committer | James Davidson <james.davidson@vyatta.com> | 2012-04-11 10:00:57 -0700 |
commit | 97d7a148b5f0dcf2e03687235724dbfc93e174d2 (patch) | |
tree | 6224001081fb5b9af23d4324b47c78b7ce4084d6 | |
parent | 3203e040f120da864f6a4dfbd5f0747133bd1aed (diff) | |
download | vyatta-cfg-system-97d7a148b5f0dcf2e03687235724dbfc93e174d2.tar.gz vyatta-cfg-system-97d7a148b5f0dcf2e03687235724dbfc93e174d2.zip |
Return success on stop if telnetd service is not running
Fixes Bug 5511.
-rwxr-xr-x | scripts/telnetd.init | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/telnetd.init b/scripts/telnetd.init index 04f65147..fdb63040 100755 --- a/scripts/telnetd.init +++ b/scripts/telnetd.init @@ -52,7 +52,10 @@ start () stop () { local -i pid=$( running_pid ) - [ $pid -ne 0 ] && kill $pid + if [ $pid -ne 0 ] + then kill $pid + else return 0 + fi } restart() |