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.

Filter by
Sorted by
Tagged with
204 votes
9 answers
570k views

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"?...
conny's user avatar
  • 2,429
114 votes
6 answers
120k views

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 ...
paulgreg's user avatar
  • 4,164
105 votes
3 answers
67k views

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 ...
Aidas Bendoraitis's user avatar
60 votes
6 answers
112k views

"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 ...
dandan's user avatar
  • 1,081
58 votes
4 answers
300k views

Free public SSH server for testing purposes [closed]

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 ...
nicoulaj's user avatar
  • 1,205
55 votes
3 answers
45k views

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 ...
Display Name's user avatar
53 votes
4 answers
200k views

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 ...
Luke's user avatar
  • 577
46 votes
4 answers
120k views

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 ...
Pryo's user avatar
  • 685
45 votes
7 answers
114k views

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's user avatar
  • 1,283
41 votes
1 answer
142k views

What does "<service_name> 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 ...
Nick Brosnahan's user avatar
36 votes
6 answers
171k views

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's user avatar
35 votes
3 answers
69k views

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 ...
Paul Brindley's user avatar
33 votes
3 answers
7k views

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 ...
guettli's user avatar
  • 3,843
28 votes
12 answers
89k views

Terminology: Bounce versus restart [closed]

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" ...
27 votes
11 answers
276k views

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 ...
Gazel's user avatar
  • 293
27 votes
1 answer
48k views

systemd service with multiple After

Is it possible to create a service that depends on several other services? What is the right syntax? Such as: [Unit] Description=service description Wants=network.target After=network.target After=...
naXa stands with Ukraine's user avatar
24 votes
2 answers
68k views

How to set systemd service dependencies?

During CentOS 7 system boot nginx start fails with the following error: 2014/08/04 17:27:34 [emerg] 790#0: bind() to a.b.c.d:443 failed (99: Cannot assign requested address) I suspect this is ...
user avatar
23 votes
2 answers
10k views

Configure buggy systemd service to terminate via SIGKILL

Background I've been asked to create a systemd script for a new service, foo_daemon, that sometimes gets into a "bad state", and won't die via SIGTERM (likely due to custom signal handler). ...
Cloud's user avatar
  • 425
20 votes
4 answers
122k views

How to "restart" particular network interface on RHEL?

In RHEL, instead of using service network restart command, how can i restart a particular network interface, lets say "eth1", with only one command. "Only one command" because that is the only ...
夏期劇場's user avatar
19 votes
2 answers
9k views

Although 80 and 443 are system ports, how are most web servers able to bind to them anyway?

Running a web-service that binds to port 80 usually doesn't require sudoer privileges. Since ports 80/443 are system ports, meaning they can only be used by privileged users, how come those services ...
adaml's user avatar
  • 361
19 votes
5 answers
58k views

Cannot change Windows Service properties: Error 87: The parameter is incorrect

I'm trying to disable a service in Windows 10 from the Control Panel > Administrative Tools > Services snap in. Service Name: OneSyncSvc_1e21e Display Name: Sync Host_1e21e Description: This service ...
Jonathan's user avatar
  • 293
19 votes
1 answer
14k views

Why isn't my upstart service listed in service --status-all

I created a bunch of upstart jobs for my services that I'm running on an Ubuntu 12.04. I can successfully start them and stop with with: service my_service start service my_service stop but they are ...
Pablo Fernandez's user avatar
18 votes
5 answers
63k views

Is there an equivalent command for 'init.d/networking restart' in OS X

From time to time, I've encountered issues with OS X clients' network connections (Wired and Wireless, Leopard/Snow Leopard) where nothing will fix the issue, until you reboot. Is there a ...
l0c0b0x's user avatar
  • 12k
18 votes
4 answers
44k views

Linux: How to pass parameters to `service foo start` (at command line)?

I'd like to pass an argument to the service I am starting. E.g. starting a server in a debug mode. Like, service jboss-as start debug Or such. But service seems not to support that. Is there some ...
Ondra Žižka's user avatar
17 votes
1 answer
28k views

Proxy with netcat forever

I am proxying a VNC TCP server port with netcat. The proxy machine runs linux. This is the comand I use: mkfifo backpipe nc -l 5902 0<backpipe | nc 10.1.1.116 5902 1>backpipe 10.1.1.116 is ...
Alojz Janez's user avatar
17 votes
4 answers
42k views

Windows Service: Can I configure the current working directory?

By default, Windows services start in the sytem32 directory (usually C:\WINDOWS\system32). Is there a way to set up a different working directory? I am thinking of some registry parameter beneath ...
Tomalak's user avatar
  • 1,605
16 votes
4 answers
82k views

How to change Linux services startup/boot order?

As the question is clear from the title, how do I change Linux services startup/boot order?
Gnanam's user avatar
  • 1,479
16 votes
3 answers
40k views

Stopping the WinPcap Packet capture service

I just installed WireShark, which also installed WinPcap. During the installation it said "do you want xxx to start automatically", which I answered yes. Now I would like to stop the service when I ...
Shiraz Bhaiji's user avatar
16 votes
1 answer
36k views

How to use variables in a systemd service file?

I'm creating a service file for a daemon, and I would like to use variables (in init scripts I used environment variables) to define some parameters for the executed scripts. For example, I would like ...
user886869's user avatar
15 votes
1 answer
15k views

How to remove or uninstall an orphaned service?

There are times when Windows Services are installed and for various reasons, that hopefully are not important to the answer, the service no longer has the installer attached to it. Therefore, this ...
Scott Saad's user avatar
15 votes
1 answer
27k views

Understanding service --status-all output

I am trying to understand the output of the service --status-all command on Ubuntu 13.10, since the man page doesn't explain it. For example: [ + ] rsyslog [ - ] sendmail [ ? ] sendsigs [ + ] ...
p4sh4's user avatar
  • 251
15 votes
2 answers
25k views

How can systemd run a command as root before launching a service as a different user? [closed]

I'm running svnserve on a Fedora 17 machine with the following systemd service file: [Unit] Description=Subversion Server After=syslog.target network.target [Service] User=svn Type=forking ...
DNS's user avatar
  • 273
14 votes
4 answers
43k views

Windows services not starting automatically?

We've had some nasty time sync problems on our Windows Server 2008 R2 servers lately. I traced this back to something very simple: the Windows Time Service was not started! The time can't possibly ...
Jeff Atwood's user avatar
  • 13.2k
14 votes
1 answer
15k views

How DNS service discovery, multicast DNS and Bonjour are related?

I am a bit lost in the terminology. I wanted to start to use Bonjour. As the first step, I tried to find an easy way to use it. And I thought that I, probably, can call Bonjour from the command line ...
Roman's user avatar
  • 2,619
13 votes
5 answers
4k views

Fixing services that have been disabled in /etc/default/ with puppet?

I'm using puppet to (theoretically) get npcd to start upon installation, however on Ubuntu, that service comes installed with the default setting in /etc/default/npcd of RUN="no": $ cat /etc/...
Matt Simmons's user avatar
  • 20.5k
13 votes
1 answer
3k views

How to set up Google ShortName service for my domain, so that the FQDN isn't needed

The blog post "A 'tinyurl' service for your domain" explains how to set up a ShortName service for your domain using Google Apps. For example, if your domain is example.com and you use Google Apps, ...
12 votes
4 answers
26k views

Nginx hangs using "service nginx start"

I've compiled nginx with custom paths for my production server and when I try to start/restart the service using: service nginx start or service nginx restart It enters a new line without ...
T0M XeOn LuCiFeR's user avatar
12 votes
1 answer
25k views

Monit configuration reload - supposed to restart monitored services?

Running Monit 5.4 on an Ubuntu server. When I use monit reload, it seems that it restarts monitored services (Tomcat 7 in this situation). Is it the expected behavior? Documentation says : reload - ...
smonff's user avatar
  • 346
12 votes
1 answer
4k views

Scheduled restart of a service with powerhshell as non-admin service account

Before I get shot down, I know how to schedule a task, restart a service with powershell or give a non-admin account the privileges to restart a service. That isn't the problem. The problem however is ...
VolrathTheFallen's user avatar
12 votes
2 answers
23k views

Running arbitrary program as daemon from init script

I need to install a program as a service in Red Hat. It doesn't background itself, manage its PID file, or manage its own logs. It just runs and prints to STDOUT and STDERR. Using the standard init ...
user avatar
11 votes
2 answers
13k views

varnish daemon not listening on configured port

I'm trying to install varnish on ubuntu 16.04, I read several article none are working. From what I read, since ubuntu 15.04, the way of configuring varnish has changed (because of systemd). Now on ...
Bruno's user avatar
  • 213
11 votes
3 answers
35k views

Force-Removing Windows Services

I am getting the following message while trying to remove a windows service with SC command? C:\Users\chacha>sc delete service_name [SC] OpenService FAILED 5: Access is denied. I tried to change ...
Chathuranga Chandrasekara's user avatar
11 votes
5 answers
10k views

Apache 2.4 is unkillable and can't be stopped on Windows Server

We have two Windows Server, one in 2012 R2 and the other in 2008 R2 which uses Apache HTTP Server (httpd) 2.4 in proxy/reverse-proxy mode (usage of ProxyPass, ProxyPassReverse and Virtual Hosts ...
SiZiOUS's user avatar
  • 311
11 votes
3 answers
7k views

Upstart : start service after non-upstart process

On Ubuntu 10.04, I need to start my service with upstart, but only when mysql is up and running. The problem is that mysql itself is not handled by upstart, so I can't use the "start on" feature. ...
Falken's user avatar
  • 1,742
11 votes
2 answers
6k views

Make systemd user service depend on system target

I have a user service in ~/.config/systemd/user/example.service like so: [Unit] Description=Example service After=network.target [Service] ExecStart=/bin/bash -c 'host google.com > /var/tmp/...
dflemstr's user avatar
  • 583
11 votes
3 answers
34k views

Rename windows service

Is there a way to rename a windows service? Not the display name, mind you, the actual name. I can't seem to edit the value in enum\root to be what I want, and there ought to be an easier way, I ...
Nate's user avatar
  • 319
11 votes
4 answers
61k views

How do I specify NetworkService or LocalService for a Windows Service on a Domain Controller?

This question is a not duplicate of these existing questions: AUTHORITY\NetworkService does not exist (question is for Windows Server 2003 How can I run a process as "NT Authority\NetworkService&...
Dai's user avatar
  • 2,299
11 votes
1 answer
15k views

How to ensure a service is running, using Chef?

I am in a situation where Chef might start a service (postgres) but it might subsequently be stopped out-of-band. I want a subsequent Chef run to cause the service to be running. I have tried this: ...
Partly Cloudy's user avatar
10 votes
1 answer
7k views

Services: Is there any real difference between "Manual" and "Disabled"?

I was just looking at our server, thinking about disabling any Services that we're not using, and it got me wondering: Provided a Service is never called by anything to start, and it's just sat on "...
Django Reinhardt's user avatar
10 votes
4 answers
7k views

Recommended way to disable a service in Debian

Is there a "recommended way" to disable a service in Debian? (Disable = The service is installed but won't start automatically when the machine boots.) I know that you can update-rc.d -f service ...
Heinzi's user avatar
  • 2,259

1
2 3 4 5
21