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".

1227 questions
120
votes
4 answers

How to read "service --status-all" results

I need to identify the currently running services but I can't figure out the results of running service --status-all, I mean what does ?, - and + mean ? $ service --status-all [ + ] acpid [ + ] anacron [ + ] apparmor [ ? ] apport [ ? ] …
53
votes
3 answers

What does bamfdaemon do?

I've googled for it, and there's very little info besides "bamf matches application windows to desktop files". Unity depends on it so it's difficut to remove, at least would be good to know what it does.
user1350992
  • 1,136
36
votes
6 answers

How to supervise and automatically restart a process?

I want to have a process which will be restarted if it crashes. I googled a bit and found that an easy solution is to use daemontools. I didn't understand how to configure it. What is the easiest way to acomplish such a functionality? How to…
opc0de
  • 487
14
votes
1 answer

Running services

Is there a way to get precise list of services with "is running"/"is not running" statuses specified. service --status-all outputs more than 30 ? services. Why is that output is so not informative? Is it that difficult to determine if service is…
zerkms
  • 1,472
14
votes
1 answer

Service --status-all --> what does the column with [ ? ],[ + ], and [ - ] mean?

If I run the command "service --status-all", each (running?) service is listed in column format. The first column has either a [ ? ], [ + ], or [ - ] before the service name. What does this column represent? What does ?, +, and - mean? Sorry if…
00fruX
  • 1,271
  • 1
  • 16
  • 32
12
votes
2 answers

What is a Daemon?

I hear a lot of talk about Daemons running on my Ubuntu computer - what are they?
Marco Ceppi
  • 48,101
9
votes
4 answers

How to close ports / disable services?

I just portscanned my system with nmap and got the following result: PORT STATE SERVICE 25/tcp open smtp 631/tcp open ipp what are these services and how i do disable them? probably i don't need them.
NES
  • 33,195
6
votes
1 answer

How do I restore /etc/init.d/nginx after removal?

Possible Duplicate: How can I replace missing configuration files after removing a package? I have installed nginx with apt-get. Than I removed it. I also manually removed /etc/init.d/nginx. After I installed it again with apt-get, it didn't…
Andrzej Gis
  • 185
  • 1
  • 6
5
votes
1 answer

differences between chkconfig vs insserv?

I know chkconfig we are not using currently to manager services in Ubuntu but even its a old tool, its a good tool. but recently I've gone through insserv . All I want to know is what are the main difference between insserv and chkconfig…
Raja G
  • 102,391
  • 106
  • 255
  • 328
5
votes
1 answer

what is '?' in service --status-all

by this command service --status-all . I can find all services status. in every line there is + or - or ?. Easy to guess + and - which may be refer to running service and not running (I'm not sure).But do not know this ? symbol meaning before…
Mohammad Reza Rezwani
  • 10,286
  • 36
  • 92
  • 128
5
votes
3 answers

How to pass flags when starting 'service'?

I use commands like sudo service memcached start to turn on various things after a reboot and I am wondering if it is possible to also tell this service to start memcached to start with certain flags, for example -vvv? Any ideas? (The 'service' was…
5
votes
2 answers

How do I port a FreeBSD daemon to Ubuntu?

I had a FreeBSD machine and it had a /usr/sbin/daemon command which could run my program in the background. The question is how to do something similar in Ubuntu? I would like something I can put in a startup script. What I mean is my program…
Sergey
  • 616
5
votes
1 answer

Unit packagekit.service is masked

When I update my system using apt update or try to install a new package with aptitude or apt, I receive this error : Error : GDBus.Error:org.freedesktop.systemd1.UnitMasked : Unit packagekit.service is masked. I tried this Cannot restart samba,…
user604517
4
votes
2 answers

How to stop all services

I'm looking for a command to stop all services running and probably restart them after. Any help would be appreciated.
Brian K
  • 41
4
votes
0 answers

How to start, stop, restart a service

Back some versions ago, when I wanted to restart, stop, start a sevice i would do something similar to this: sudo /etc/init.d/apache2 stop to stop the apache service sudo /etc/init.d/networking start to start the networking service Etc... But now it…
Luis Alvarado
  • 211,503
1
2 3 4