Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Disable "auto enable" of a service
Disable "auto enable" of a service
Good afternoon
I noticed that when I install a package that corresponds to a service, such as the apache web server, the service is automatically activated, as if I were doing a "systemctl enable apache2"
Is there any way to disable said "auto-enabled service"?
I honestly do not like that in my system services are activated automatically just by installing a package.
Thank you.
I noticed that when I install a package that corresponds to a service, such as the apache web server, the service is automatically activated, as if I were doing a "systemctl enable apache2"
Is there any way to disable said "auto-enabled service"?
I honestly do not like that in my system services are activated automatically just by installing a package.
Thank you.
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 132 times
Re: Disable "auto enable" of a service
+1Snake94 wrote:I honestly do not like that in my system services are activated automatically just by installing a package
I presume that you are asking how to disable the default and already know to run `systemctl disable foo.service`?
The only answer I can give you is to switch to Arch, Alpine Linux or OpenBSD instead because they don't auto-enable services on installation.
I would be interested to hear of any method to allow that under Debian though.
deadbang
-
- Emeritus
- Posts: 2435
- Joined: 2010-12-07 19:55
- Has thanked: 14 times
- Been thanked: 54 times
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 132 times
Re: Disable "auto enable" of a service
^ That's just a GUI frontend for `systemctl` (I think), but it is very nice
There may be some dpkg option buried away somewhere but I can't get to the Debian box atm.
EDIT: here's Debian's version of that GUI:
https://packages.debian.org/stretch/systemd-ui
There may be some dpkg option buried away somewhere but I can't get to the Debian box atm.
EDIT: here's Debian's version of that GUI:
https://packages.debian.org/stretch/systemd-ui
deadbang
Re: Disable "auto enable" of a service
I was annoyed by it at first, because on sysV there used to be some that were, and some that were not and we all got along pretty well? I am pretty sure you can still do that if you want, but it would be up to the package to provide the /etc/default/ file for setting it up that way?Snake94 wrote:
I honestly do not like that in my system services are activated automatically just by installing a package.
But really, just think how much time it would take when building a system to enable them all. It might be cool to have a way to toggle it off and on, but I really think the way it is now makes good sense.
resigned by AI ChatGPT
Re: Disable "auto enable" of a service
Thanks for response.Head_on_a_Stick wrote:+1Snake94 wrote:I honestly do not like that in my system services are activated automatically just by installing a package
I presume that you are asking how to disable the default and already know to run `systemctl disable foo.service`?
The only answer I can give you is to switch to Arch, Alpine Linux or OpenBSD instead because they don't auto-enable services on installation.
I would be interested to hear of any method to allow that under Debian though.
Archlinux is nice (I used archlinux for years on desktop) but is unstable, Arch is not fine for workstation if you want a stable system and for servers better not to mention, Alpine I've never used it, and OpenBSD/FreeBSD are very very nice for system administration/servers, but I use debian on my class laptop... *BSD on my laptop hardware runs very slow.
I do not really understand the reason for activating a service automatically, so much work is writing "systemctl enable foobar.service"?
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 132 times
Re: Disable "auto enable" of a service
Well, as bw123 notes it does make sense in the context of a low-maintenance Debian stable system — why would you install a package if you do not want the corresponding service enabled?Snake94 wrote:I do not really understand the reason for activating a service automatically, so much work is writing "systemctl enable foobar.service"?
deadbang
Re: Disable "auto enable" of a service
Just to have more control of my system, anyway, I understand what you want to say.Head_on_a_Stick wrote:Well, as bw123 notes it does make sense in the context of a low-maintenance Debian stable system — why would you install a package if you do not want the corresponding service enabled?Snake94 wrote:I do not really understand the reason for activating a service automatically, so much work is writing "systemctl enable foobar.service"?
Re: Disable "auto enable" of a service
for example, which ones should be 'off' and which should be ON, how about cron/anacron? What about sshd? what about display manager? sound support? Who gets to decide what should be default on?
How in the world could you make it work for everybody, when the only real choices are automatically 'on' or 'off' ?
How in the world could you make it work for everybody, when the only real choices are automatically 'on' or 'off' ?
resigned by AI ChatGPT
Re: Disable "auto enable" of a service
Every service must be disabled for default like archlinux and other systems IMHObw123 wrote:for example, which ones should be 'off' and which should be ON, how about cron/anacron? What about sshd? what about display manager? sound support? Who gets to decide what should be default on?
How in the world could you make it work for everybody, when the only real choices are automatically 'on' or 'off' ?