[lug] debianisms?

Zan Lynx zlynx at acm.org
Tue Jun 19 17:19:56 MDT 2018


On 06/19/2018 04:23 PM, Lee Woodworth wrote:
> 
>    system upgrades seem to rewrite files like
>      
> /lib/systemd/system/systemd-timesyncd.service.d/disable-with-time-daemon.conf
> 
>    so trying to disable things there or deleting the service
>    didn't seem like a durable fix

Yes, all systemd files in /lib or /usr/lib are controlled by the
distribution, not the user. Don't modify them.

Instead, put all customizations into /etc/systemd/system/... These will
override everything else.

The way that you forcefully disable a service for everything is to
symlink it to /dev/null in the /etc/systemd/system directory. There is a
systemctl command to do that for you:
	systemctl mask systemd-timesyncd.service

However, that's extreme and a basic systemctl disable should do it also,
unless you have other units activating it. If you mask it out, those
other units will fail to start instead.

There's a guide to using systemd around somewhere. I found reading it
very helpful.

-- 
                Knowledge is Power -- Power Corrupts
                        Study Hard -- Be Evil


More information about the LUG mailing list