Priklad: chceme zmenit hodnotu Nice
pro sluzbu zabbix-agent.service
Vychozi je /lib/systemd/system/zabbix-agent.service
, na ten nesahame, protoze by nam ho prepsalo apt
pri aktualizaci.
Vyvorime adresar a soubor s nastavenim:
mkdir -p /etc/systemd/system/zabbix-agent.service.d
touch /etc/systemd/system/zabbix-agent.service.d/10-custom-nice.conf
Syntaxe je JMENO.service.d
, tedy zabbix-agent.service.d
.