The officially official Devuan Forum!

You are not logged in.

#1 Yesterday 12:46:27

https_force
Member
Registered: Yesterday
Posts: 2  

How to use the Init system?

When I install a new distro I typically run 'sudo lsof -i' to see what is [Listening] and work to remove any potentially vulnerable network aware applications.

I'm struggling to learn how the init system works. A small guide on how to use the Devuan init for managing daemons would be nice for the following actions:

Do I need to know about runlevels for daemons?
How to Start a service:
How to stop a service:
How to disable a service:
How to enable a service:

What is the correct procedure to follow before 'sudo apt remove <package>' that also has a service module?

Offline

#2 Yesterday 15:07:28

RedGreen925
Member
Registered: 2024-12-07
Posts: 212  

Re: How to use the Init system?

Do I need to know about runlevels for daemons?
How to Start a service:
How to stop a service:
How to disable a service:
How to enable a service:

What is the correct procedure to follow before 'sudo apt remove <package>' that also has a service module?

The runlevels will be in the file that controls the daemon in the /etc/init.d/ directory,

sudo /etc/init.d/service start
sudo /etc/init.d/service stop
sudo update-rc.d service remove
sudo update-rc.d service defaults

Those would be the answers to your next four questions usually you can find the options used with /etc/init.d/service by reading the plain text file it is to see what is available in it. Most times there is a restart option and some of the time a force-reload that can be used as well.

Apt will shut down the service before/during removal as I remember it as never having to do anything special when I have done it, using the --purge option with it when removing will get rid of all of the configuration files installed by the package as well.

Offline

#3 Yesterday 21:31:26

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,770  

Re: How to use the Init system?

Old but still useful -
https://refracta.org/docs/debian-handbook-wheezy.pdf
Last Debian Administrator's Handbook before systemd.

Offline

#4 Yesterday 23:59:45

Devarch
Member
Registered: 2022-10-03
Posts: 105  

Re: How to use the Init system?

When I install a new distro I typically run 'sudo lsof -i' to see what is [Listening] and work to remove any potentially vulnerable network aware applications.

I'm struggling to learn how the init system works. A small guide on how to use the Devuan init for managing daemons would be nice for the following actions:

Do I need to know about runlevels for daemons?
How to Start a service:
How to stop a service:
How to disable a service:
How to enable a service:

What is the correct procedure to follow before 'sudo apt remove <package>' that also has a service module?

Yep, most people here do not like to use ai too much ... but ... you can try to ask ai to get some answers.

Offline

Board footer