Apache Autostart

  • Hello,


    I am trying to install something from a script. The installation requires that apache is not running. I stop apache (/etc/init.d/apache2 stop) and proceed with working through the install script. The issue is that by the time I get to the end of the script and it tries to do its thing apache has automatically restarted. I just cannot kill it off and keep it down! Is this related to OMV? i.e. is OMV setup to automatically start apache if its down?


    Many thanks,
    C

    • Offizieller Beitrag

    I assume you are using omv 0.5? engined might be restarting it. Try:


    /etc/init.d/apache2 stop
    /etc/init.d/openmediavault-engined stop

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.7


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • I would rather guess that it is monit.

    Code
    monit stop apache2
    monit start apache2


    should do the trick.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!