[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: howto customize apache service from another package



On 4/29/25 11:38, PICCA Frederic-Emmanuel wrote:
Hello, I have a package qemu-web-desktop which is served via apache2.

This system run vm from a cgi script. We need to increaze the apache2 service mem limits, in order to run these VM (with GPU passthrough).

What is the right way to customize the apache service from another package.

now we are doing this locally.

# configure apache to use unlimited memory for GPU access

mkdir -p /etc/systemd/system/apache2.service.d

FILE=/etc/systemd/system/apache2.service.d/override.conf
echo "Saved Apache server memory limits configuration in ${FILE}"
dd status=none of=${FILE} << EOF
[Service]
LimitMEMLOCK=infinity
EOF

systemctl daemon-reload
systemctl restart apache2


thanks for your help

Frederic
Hi,

you can add a conf file into /etc/apache2/conf-available and insert in doc that to enable it, launch a2enconf <name>


Reply to: