Web lists-archives.com

Re: Re: Prevent apt/dpkg from automatically enabling services during the upgrade process.

I guess that the script prevents from enabling currently disabled services.
One more thing, what should I do if I also want that after installing a new 
service with "apt install service" it doesn't get enabled automatically in the 
installation process?

Thank you very much Reco.

> It's a hack, but it should work. Create an executable file called
> /usr/sbin/policy-rc.d with the following contents:
> #!/bin/sh
> /bin/systemctl --quiet is-enabled $1 && exit 0
> echo All rc operations are disabled by policy: $1 $2
> exit 101
> Reco