# Start/Stop runlevels for "apache-htcacheclean"

**URL:** <https://help.nextcloud.com/t/start-stop-runlevels-for-apache-htcacheclean/8373>\
**Category:** ℹ️ Support\
**Created:** [February 2, 2017, 4:40pm UTC](https://help.nextcloud.com/t/start-stop-runlevels-for-apache-htcacheclean/8373 "2017-02-02T16:40:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MichaIng](https://help.nextcloud.com/user_avatar/help.nextcloud.com/michaing/32/2125_2.png) [@MichaIng](https://help.nextcloud.com/u/MichaIng)\
**Post date:** [February 2, 2017, 4:40pm UTC](https://help.nextcloud.com/t/start-stop-runlevels-for-apache-htcacheclean/8373/1 "2017-02-02T16:40:55Z")

</div>

Hi there,

this is explicit no nextcloud issue, than an apache issue. But as I don’t have an account on all the software specific forums, I hope I am allowed to ask for help here. At least it’s somehow related to nextcloud, where the webserver is effected ;).

I just upgraded apache2 to 2.4.25-3 and got the following warning:

> insserv: warning: current start runlevel(s) (empty) of script `apache-htcacheclean' overrides LSB defaults (2 3 4 5). insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `apache-htcacheclean’ overrides LSB defaults (0 1 6).

I made some research what all of this is about and found out that it’s about in which system state (runlevel, i.e. during reboot, standby etc.) the script is started and stoped. So it seems there is no system state, where apache-htcacheclean is started, if I understand it right? But I guess it would be good, as it is about cache cleanup and also default in some runlevels by the LSB.

1. So first question is if I am right, that the script never runs on my system.
2. Second question is, if it should run and on which runlevels, i.e. the defaults.
3. Third question is how to change the start/stop runlevels for apache-htcacheclean.

I hope somebody can help :).

---

<div class="post-metadata">

**Author:** ![MichaIng](https://help.nextcloud.com/user_avatar/help.nextcloud.com/michaing/32/2125_2.png) [@MichaIng](https://help.nextcloud.com/u/MichaIng)\
**Post date:** [April 14, 2017, 5:25pm UTC](https://help.nextcloud.com/t/start-stop-runlevels-for-apache-htcacheclean/8373/3 "2017-04-14T17:25:16Z")

</div>

To close this:

- htcacheclean is a tool that cleans the apache disk cache file, given a maximum file size, used if the cache\_disk module is enabled: [http://httpd.apache.org/docs/current/mod/mod\_cache\_disk.html](http://httpd.apache.org/docs/current/mod/mod_cache_disk.html)
- It can be run as daemon or as cron job, where daemon is default. `/etc/default/apache-htcacheclean` shows how it is run.
- “#`chkconfig --list`” (if installed) lists in which system states each service is enabled. The system states/runlevels are defined here: [http://www.uptimemadeeasy.com/linux/booting-changing-runlevels-and-configuring-linux-system-services/](http://www.uptimemadeeasy.com/linux/booting-changing-runlevels-and-configuring-linux-system-services/)
- In my case apache-htcacheclean runs as daemon, but the daemon is off for all system state. This makes somehow sense, because the cache\_disk module is disabled anyway and the cache file size is and stays therefore zero. This also makes sense for my Raspberry Pi, as disk cache on sd card is not a good idea and memory caching (APCu + Redis) is enabled. I am just not sure if both caching systems are caching the same things. There was also “`mod_mem_cache`”, a memory caching module, available in apache 2.2, but not anymore in apache 2.4. Could be interesting to know, if there is any additional benefit by enabling mod\_cache\_disk on top of ACPu memory caching.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 2, 2024, 12:55pm UTC](https://help.nextcloud.com/t/start-stop-runlevels-for-apache-htcacheclean/8373/4 "2024-12-02T12:55:01Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 4, 2024, 1:03pm UTC](https://help.nextcloud.com/t/start-stop-runlevels-for-apache-htcacheclean/8373/5 "2024-12-04T13:03:52Z")

</div>


