Posts

Does `kill ` figure out the correct order of killing (or does it do proper retrying)?

Image
Clash Royale CLAN TAG #URR8PPP up vote 0 down vote favorite Some processes can't be killed before other processes, so I can think of a case in which kill <PID list> tries to kill such a process, gives up, then kills its "partner" successfully leaving the former unkilled even though it could have killed it too, had it retried later. If this case is true, another question would be, does kill <PID list> obey the order of PIDs in my list or do I have to use separate kill processes to control the order in which processes get killed? bash kill share | improve this question asked Feb 7 at 8:33 argle 331 1 15 1 What do you mean with "Some processes can't be killed before other processes"? – dr01 Feb 7 at 8:56 2 I think he mean the case of daemon which span children processes. Killing children just make the daemon to create new children. Killing the parent now will (potentially) leave som...

Apache caching for dynamic content

Image
Clash Royale CLAN TAG #URR8PPP up vote 0 down vote favorite OS: Ubuntu 16.04 Installed with ISPConfig 3.1 (followed the how to: https://www.howtoforge.com/tutorial/perfect-server-ubuntu-16.04-with-apache-php-myqsl-pureftpd-bind-postfix-doveot-and-ispconfig/) I'm running several clients on my server with different kind of CMS solutions i.e. Wordpress, Joomla, Prestashop etc. all running PHP that I found I could optimize performance wise with Apache's mod_cache (cache_disk and file_cache). I found different articles pointing me to a final configuration that looks like the following. <IfModule mod_cache_disk.c> CacheRoot /var/cache/apache2/mod_cache_disk CacheEnable disk / CacheDirLevels 2 CacheDirLength 1 CacheQuickHandler off CacheLock on CacheLockPath /tmp/mod_cache-lock CacheLockMaxAge 5 CacheIgnoreHeaders Set-Cookie CacheDisable /wp-admin <Location /> CacheEnable disk CacheHeader on CacheDefaultExpire 900 CacheMaxExpire 86400 CacheLast...