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

 

 

 

Configuring which services start automatically

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
User avatar
VA1DER
Posts: 14
Joined: 2018-12-20 04:34

Configuring which services start automatically

#1 Post by VA1DER »

I am setting up a Debian 11 (testing ATM) server to migrate my email to. I am looking for the current best practices for configuring which services start automatically at boot time.

My needs are as follows:
  • Ability to inhibit the automatic startup of a service.
  • Retain the ability to start a service manually which has had its autostart inhibited
  • When a service has been manually started, have this not affect its autorun status - ie: starting a service != setting the service to autorun
I am accustomed to using "rcconf", and it is still available in 11, but it seems tied to sysv-rc and I am unsure of the ramifications of installing sysv-rc on a modern systemd system. Also there are reports that rcconf doesn't work to disable startup on all services it purports to. I really liked rcconf, though. It was simple and worked. If there is something available, I would like the solution to be rcconf-like in that it presents a nice interface.

And yes, I'd like to have my cake and eat it too. :)

Is there anything that fits the bill?

TIA.

CwF
Global Moderator
Global Moderator
Posts: 2680
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 196 times

Re: Configuring which services start automatically

#2 Post by CwF »

VA1DER wrote:sysv-rc on a modern systemd
Well, not on my radar?
I have a buster running without sysv-rc and its bullseye replacement has it installed, so it seems fine?
I have it mentioned in a note from months back "?vs openrc, watch, no change"

User avatar
VA1DER
Posts: 14
Joined: 2018-12-20 04:34

Re: Configuring which services start automatically

#3 Post by VA1DER »

I tried installing rcconf on my system and ended up running into a couple bugs. Putting on insserv, initscripts, and sysv-rc seems a little invasive.

Is there any other rcconf-like tool that is designed for systemd?

User avatar
sunrat
Administrator
Administrator
Posts: 6471
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 117 times
Been thanked: 474 times

Re: Configuring which services start automatically

#4 Post by sunrat »

VA1DER wrote:I tried installing rcconf on my system and ended up running into a couple bugs. Putting on insserv, initscripts, and sysv-rc seems a little invasive.

Is there any other rcconf-like tool that is designed for systemd?
Systemd services are managed with systemctl. There is much documentation on the internet.
https://wiki.debian.org/systemd#Basic_usage
https://www.linux.com/training-tutorial ... x-systemd/
https://access.redhat.com/documentation ... th_systemd
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

reinob
Posts: 1196
Joined: 2014-06-30 11:42
Has thanked: 99 times
Been thanked: 47 times

Re: Configuring which services start automatically

#5 Post by reinob »

Disable a service: systemctl disable <service>
Start a disabled service: systemctl start <service>

I don't think it gets easier than that :)

Post Reply