HEX
Server: Apache
System: Linux www 6.18.4-i1-ampere #899 SMP Thu Jan 8 10:39:05 CET 2026 aarch64
User: sws1073755998 (1073755998)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //bin/X11/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