diff options
author | Dave Brolley <brolley@redhat.com> | 2009-10-20 16:11:56 -0400 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2009-10-20 16:11:56 -0400 |
commit | 09070e8a586fa1d7592f9b35c9413c6cfdc8a477 (patch) | |
tree | b80f0fea668021686014277fbd410921df50e9cb /initscript | |
parent | 52a5a179bf1b5d6d90af65bcdcd689b6bfecd7df (diff) | |
download | systemtap-steved-09070e8a586fa1d7592f9b35c9413c6cfdc8a477.tar.gz systemtap-steved-09070e8a586fa1d7592f9b35c9413c6cfdc8a477.tar.xz systemtap-steved-09070e8a586fa1d7592f9b35c9413c6cfdc8a477.zip |
stap-server initscript is now part of the systemtap-server package.
Diffstat (limited to 'initscript')
-rw-r--r-- | initscript/stap-server.in | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/initscript/stap-server.in b/initscript/stap-server.in index ccd52719..aad6b064 100644 --- a/initscript/stap-server.in +++ b/initscript/stap-server.in @@ -106,13 +106,15 @@ parse_args () { # arguments CONFIG=$2 shift 1 ;; + --) + ;; *) error=1 ;; esac shift 1 done - test error=1 && echo_usage + test error = 1 && echo_usage } CMD=$1 @@ -127,7 +129,9 @@ fi parse_args $OPTS # Include configs -. "$CONFIG" +if [ -f "$CONFIG" ]; then + . "$CONFIG" +fi for f in "$CONFIG_PATH"/*.conf; do if [ -f "$f" ]; then @@ -170,11 +174,12 @@ stop () { } status () { + local ret=0 + # Print the status here - do_failure $"$prog status not implemented" + echo $"$prog status not implemented" - do_success $"$prog status" - return 0 + return $ret } # Cleanup caches @@ -184,17 +189,16 @@ cleanup () { # Clean up the server(s) here do_failure $"$prog cleanup not implemented" - do_success $"$prog cleanup" + do_success "done" return 0 } # Restart scripts function restart () { - # Restart the server(s) here - do_failure $"$prog restart not implemented" - - do_success $"$prog restart" - return 0 + stop + echo + start + return $? } RETVAL=0 |