Questions tagged [services]

Daemons are programs that constantly run in the background. They usually service requests. If you are asking about online services, please use a different tag.

Daemons are programs that run in the background and either service requests or poll for various environment indicators, and then act accordingly. Once a request is received, it may be queued up or forked to run in a different thread or process. Daemons are often started via Upstart or init, which are started by the kernel in early startup.

The service command will run init scripts in /etc/init.d with a command. Usually, it is status, start, stop, or reload. Upstart (which provides Ubuntu's init) is in charge of managing these daemons automatically.

Daemons are also called services (especially in a Windows context, where the term "daemon" is rarely if ever used), but should not be confused with the concepts of online services, services in systems architecture, nor (though related) "software as a service".

1258 questions
956
votes
9 answers

How to enable or disable services?

I read about how to enable and disable services in Ubuntu and it seems that there are different possibilities to manage them. The first method I found is update-rc.d to add new services to startup, which aims on the /etc/init.d folder and its…
NES
  • 33,935
646
votes
10 answers

How to list all enabled services from systemctl?

How can I list all enabled services from systemctl? I know running systemctl command by itself lists all services, but I would like to only get the enabled ones.
oceanBT
  • 6,697
  • 4
  • 13
  • 12
455
votes
35 answers

How can I deactivate Bluetooth on system startup?

How can I deactivate Bluetooth on system startup?
Floqqi
  • 4,567
342
votes
5 answers

How can I configure a service to run at startup

I have a daemon that runs fine if I start it manually with the service command: ricardo@ricardo-laptop:~$ sudo service minidlna start * Starting minidlna minidlna [ OK…
339
votes
18 answers

How to restart the networking service?

I tried to use sudo service networking restart and sudo /etc/init.d/network restart but they both crash the window manager and I can no longer use my keyboard for input into X. when I use the /etc/init.d/ method it complains saying that I should…
waspinator
  • 4,942
329
votes
13 answers

How do you restart Apache?

I switched from SLES to Ubuntu and now I want to restart my local server. In SLES I used: rcapache2 restart but this seems not to work in Ubuntu. How do I restart Apache?
Jai Puri
  • 4,089
298
votes
2 answers

Difference between systemctl and service commands

systemd gives us the systemctl commands suite which is mostly used to enable services to start at boot time. We can also start, stop, reload, restart and check status of services with the help of systemctl. We can do, for example, sudo systemctl…
luv.preet
  • 5,997
237
votes
8 answers

How can I make a script that opens terminal windows and executes commands in them?

I have three scripts I need to run when I start up my Ubuntu machine, they start services I use in my development environment. To do that, I manually open three terminals and type in the commands. Is there any way to create a script that will open…
JSBach
  • 2,551
230
votes
1 answer

How do I override or configure systemd services?

Many sysv init scripts used a corresponding file in /etc/default to allow the administrator to configure it. Upstart jobs can be modified using .override files. How do I override or configure systemd units, now that systemd is the default in Ubuntu?
muru
  • 207,228
207
votes
10 answers

Command to list services that start on startup?

Is there a command to list services that run on startup? I imagine it would involve parsing /etc/init.d/, and the various /etc/rc.* directories.
Eric H
  • 2,173
190
votes
3 answers

What is the difference between "systemctl start" and "systemctl enable"?

I installed MariaDB server to my machine. While setting up, I was met with the problem of whether I should have it enabled all the time, as the documentation I follow suggests with these steps: sudo yum install mariadb mariadb-server sudo systemctl…
187
votes
24 answers

Tips to extend battery life for laptops and notebooks

This question is present as a matter of historical interest. While you are encouraged to help maintain its answers, please understand that "big list" questions are not generally allowed on Ask Ubuntu and will be closed per the FAQ. Is it possible…
154
votes
2 answers

How do you get a list of all starting services?

I know about the update-rc.d SERVICE OPTIONS command to add and remove services from startup, but how do I use it to get a list of all the services that are currently configured to start at startup? Is there some other way to get this list?
154
votes
4 answers

Disable autostart for a service without uninstalling?

How can I disable autostart for a service without uninstalling? For example, I'd like to leave tomcat installed, but I don't want it turning on every time I restart.
C. Ross
  • 3,067
150
votes
5 answers

Chkconfig alternative for Ubuntu Server?

I've become very accustomed to managing service startups on Redhat/RHEL platforms using chkconfig though that doesn't appear to be the Debian/Ubuntu way - How do I update runlevel information for system services on Ubuntu? Ultimately looking for the…
Marco Ceppi
  • 48,827
1
2 3
83 84