← Back
Editing: apachectl
#!/bin/sh help= restart= flush= unknown= dashdash= dumpmodules= for option do case $dashdash$option in --) dashdash=yes ;; --help | -? | -h) help=yes ;; restart | reload | graceful) restart=yes ;; flush) flush=yes ;; dumpmodules) dumpmodules=yes ;; *) unknown=yes ;; esac done usage () { echo "Usage: $0 restart|reload|graceful" } if [ "$help" = "yes" ]; then usage exit 0 fi if [ "$unknown" = "yes" ]; then exec 2>&1 echo "Unknown arguments" usage exit 3 fi if [ "$restart" = "yes" ]; then exec cm4all-passage-client fade_children fi if [ "$flush" = "yes" ]; then exec cm4all-passage-client flush_cache fi if [ "$dumpmodules" = "yes" ]; then exec /usr/lib/cm4all/lhttp/bin/apache-lhttpd -t -D DUMP_MODULES -Dstandard fi usage
Save File
Cancel