Questions tagged [service]

A service (also daemon or server) is a programme that constantly runs in the background. It usually services requests. If you are asking about online services, please use a different tag.

A service (also daemon or server) is a programme that constantly runs in the background. It usually services requests. If you are asking about online services, please use a different tag.

1009 questions
188
votes
9 answers

How to start/stop/restart launchd services from the command line?

How do I restart, say for example my httpd or afpd, running any Mac OS X >= 10.5 (Leopard-), without having to use the GUI and go to System Preferences -> Sharing and unchecking/checking "Web Sharing"? I'm looking for the canonical equivalent to…
conny
  • 2,259
  • 2
  • 16
  • 14
110
votes
6 answers

Where can I find data stored by a Windows Service running as "Local System Account"?

I'm using a service which stores data on disk. The service is running as "local system account". Where is the stored data for that system user? I'm thinking about C:\Documents and Settings\Default User but I'm not sure about that. Can someone…
paulgreg
  • 4,094
  • 6
  • 31
  • 32
91
votes
3 answers

What is the difference between service and systemctl?

Maybe this is a trivial question, but it is not totally clear to me. On one of our servers we have some background processes running which were started with service and some others which were started with systemctl, like this: $ service nginx…
Aidas Bendoraitis
  • 1,345
  • 1
  • 12
  • 17
59
votes
6 answers

"reboot" or "shutdown -r now": what restart command is safer?

We have in our organization around ~500 RedHat Linux machines. On all the machines we installed applications and services under /etc/init.d, and oracle RAC servers. We intend to perform yum updates on all machines and after that take a reboot. So I…
dandan
  • 1,021
  • 4
  • 13
  • 21
54
votes
4 answers

Free public SSH server for testing purposes

I'm writing an application that makes connections to SSH servers. It doesn't need anything specific from the server (except running under GNU/Linux). I need SSH servers for running my application tests. I was wondering, is there some kind of free…
nicoulaj
  • 1,155
  • 2
  • 10
  • 12
53
votes
3 answers

get notification when systemd-monitored service enters failed state

I need to have network messages sent when a systemd service I have crashes or is hung (i.e., enters failed state; I monitor for hung by using WatchdogSec=). I noticed that newer systemd have FailureAction=, but then saw that this doesn't allow…
Display Name
  • 751
  • 1
  • 8
  • 13
46
votes
4 answers

Configuring Systemd Service to run with root access

I have a service in the form of a node.js application set up with Systemd on Raspbian Jessie and it is using its own user account. However, I am finding that the service does not run correctly because it does not have the necessary permissions. One…
Luke
  • 507
  • 1
  • 5
  • 11
44
votes
7 answers

How to find memory usage of individual Windows services?

Task Manager shows the overall memory usage of svchost.exe. Is there a way to view the memory usage of individual services? Note this is similar to Finegrained performance reporting on svchost.exe
Aidan Ryan
  • 1,253
  • 2
  • 13
  • 16
41
votes
1 answer

What does " dead but subsys locked" mean?

I'm trying to run memcached on a centos box and it runs for a while, but then ends up in this state: memcached dead but subsys locked netstat shows this: tcp 0 0 :::11211 :::* LISTEN udp …
Nick Brosnahan
  • 513
  • 1
  • 6
  • 7
39
votes
4 answers

How to automatically restart a service on failure in Linux

On Windows, you can set what should happen if/when a service fails. Is there a standard way of achieving the same thing on Linux (CentOS in particular)? A bigger part of my question is: how do you handle sockets that have been left open - for…
Pryo
  • 615
  • 1
  • 5
  • 11
35
votes
6 answers

How to list services/daemons started at boot _and_ check their loading order

I want to be sure in what order services are started during boot process in Debian based systems (Debian Squeeze in particular).
user155872
  • 353
  • 1
  • 3
  • 4
33
votes
3 answers

Disable all services, except ssh

How can I disable all services except ssh on modern (systemd based) linux distributions? I need to implement a maintenance mode. All these services need to be down: postgres postfix apache cups cron dovecot But ssh must not be shut down, since…
guettli
  • 3,113
  • 14
  • 59
  • 110
32
votes
3 answers

Find out who disabled a Windows service

I was doing some fault finding, and I've discovered two services which should be set to automatic have been set to disabled. What is the best way to find out who did this? It could be someone from my company, or it could be someone client-side. …
Paul Brindley
  • 423
  • 1
  • 4
  • 6
27
votes
11 answers

Can't start CentOS 7 "network" service

I Can't start CentOS 7 "network" service after disabling and removing "NetworkManager" service. When I check the network service status, it comes up with the following error: #systemctl status network.service network.service - LSB: Bring up/down…
Gazel
  • 293
  • 1
  • 4
  • 9
27
votes
12 answers

Terminology: Bounce versus restart

I've always heard and used the term "reboot" or "restart" to indicate restarting a server, service or software module. "reboot the server" "restart Tomcat" "restart the XYZ service" Does "bounce" mean something different or is it just a duplicate…
Wavy Crab
  • 183
  • 2
  • 5
  • 14
1
2 3
67 68