su 21. helmik. 2021 klo 14.03 Martin-Éric Racine ([email protected]) kirjoitti: > On hosts running systemd as /sbin/init, changing defaults requires editing > two systemd files as root: > > /lib/systemd/system/[email protected]: document root > /lib/systemd/system/micro-httpd.socket: IP address and port
Actually, for systemd, the correct method apparently is: $ sudo systemctl edit --full [email protected] $ sudo systemctl edit --full micro-httpd.socket This will create a copy of the upstream files shipped in /lib/systemd/system/ to /etc/systemd/system/ and launch an editor. Those copies in /etc will survive package upgrades. Once both files have been editted, the daemon needs to be restarted: $ sudo systemctl restart micro-httpd.socket Martin-Éric

