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
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
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
46 votes
4 answers
119k 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
1 vote
2 answers
5k views

Can the startup order for windows services be configured? If so, where?

Windows Server 2003 MySQL 5.x Hi Guys, I have a service that requires mysql to be running when starting up. I'd like ensure that mysql itself starts well before other windows services during ...
Mike B's user avatar
  • 12k
45 votes
7 answers
113k 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
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,823
9 votes
2 answers
4k views

What can cause ALL services on a server to go down, yet still responding to ping? and how to figure out

It has happened to me already twice within very few days that my server goes down completely, meaning http, ssh, ftp, dns, smtp, basically ALL services stop responding, as if the server had been ...
matteo's user avatar
  • 729
7 votes
4 answers
13k views

How to create a windows service in XP

How can I turn a given normal application into a Windows service under Windows XP? EDIT: This is a server application, so it has no GUI and does not require any input or output.
Lucas Lindström's user avatar
5 votes
2 answers
14k views

How to give rights to one user for the restart of a service

It's there a way i can give the rights to a specific user, for restart a specific service on windows server 2008 ?
Cédric Boivin's user avatar
2 votes
2 answers
8k views

Run a script as root from apache

I would like to update my hosts file and restart dnsmasq from a web interface (php/apache2). I tried playing around with suid bits (the demonstaration). I have both apache and dnsmasq running on an ...
Lord Loh.'s user avatar
  • 1,079
1 vote
4 answers
355 views

Monitoring a one-off service

We do not have any sort of proper server monitoring solution in place (a situation I'd like to rectify this summer), but I've got one service in particular that I'd like to monitor. [Our current ...
Clinton Blackmore's user avatar
105 votes
3 answers
66k 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
58 votes
4 answers
298k 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
53 votes
4 answers
198k 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
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
24 votes
2 answers
67k 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
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
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
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
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, ...
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
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,237
9 votes
4 answers
26k views

"service"-command and environment variables

I am trying to start a service that requires a env. variable to be set to certain path. I set this variable in "/etc/profile.d/". However when I start this service using the service command, it doesn'...
Esa Varemo's user avatar
7 votes
5 answers
5k views

CentOS 5.5: service not stopped on shutdown

I have wrote script /etc/init.d/xxx which start/stop my service on CentOS 5.5. When I call 'service start xxx' or 'service stop xxx' everything works fine. But when I restart my machine, I see in the ...
Boris's user avatar
  • 121
7 votes
1 answer
26k views

What is "Radan HTTP"?

There is a service using the 8088 port on a Linux server I use. It identifies itself as radan-http, and indeed it's on the IANA port list. It is apparently being used by Nginx. But, despite a fair ...
Rafael Almeida's user avatar
7 votes
4 answers
9k views

Why can a user grant themselves the Log On As A Service right?

This article describes the (relatively laborious) steps you should go through to grant an Active Directory user the Log On As A Service right. However, if I install a service and manually specify my ...
Jez's user avatar
  • 1,443
7 votes
2 answers
17k views

Granting service control manager access permission to user outside of administrator group

I have a user outside of administrator group. How can I grant service control manager access permission for that (specific) user? It's like SC_MANAGER_ALL_ACCESS from the following link: http://...
Nati's user avatar
  • 71
6 votes
3 answers
29k views

Restarting the httpd service in RHEL returns "Stopping httpd: [FAILED]" - How do I fix this?

This is my first indication of an issue: $ sudo /sbin/service httpd restart Stopping httpd: [FAILED] Starting httpd: no listening sockets available, ...
ghbarratt's user avatar
  • 163
5 votes
1 answer
15k views

What killed my tomcat service and how can I restart it automatically?

tomcat 9 with ubuntu 18.04. tomcat service status: ● tomcat.service - Tomcat 9 servlet container Loaded: loaded (/etc/systemd/system/tomcat.service; enabled; vendor preset: enabled) Active: ...
Amos's user avatar
  • 267
5 votes
2 answers
15k views

How to reset service permissions after messing up with `sc sdset`?

After applying this "solution" I have no way of starting the spooler service, not even as Admin. If I open services.msc as Administrator, that service has disappeared, as noted here (I wish I found ...
Yajo's user avatar
  • 302
4 votes
2 answers
507 views

Start stopped service because of dependency update

I have two systemd services: postgresql.service and app.service. postgresql.service is distribution provided (ubuntu 15.10) and app.service is written by myself. Since app needs postgresql, the ...
Markus's user avatar
  • 151
4 votes
5 answers
3k views

Setting up daemons on Mac OS X

I've recently given in to temptation and bought a new MacBook - I've upgraded the RAM, got AppleCare etc. and am really enjoying myself! I've been setting up my development environment - compiling my ...
3 votes
1 answer
5k views

How to sequence a proper shutdown and startup of web services with systemd?

I am trying to structure the shutdown and startup of Apache, PHP-FPM and MariaDB services using systemd: These are the additional configuration files in /etc/systemd/system folder: # httpd.service ....
Question Overflow's user avatar
3 votes
1 answer
5k views

Windows 2008 R2 services not working

EDIT I spawned the Windows events logging service won't start issue to a separate question here I have a strange problem: SQLAGENT won't start Windows events logging service won't start Today I ...
alex440's user avatar
  • 213
3 votes
1 answer
3k views

How does Windows Service Control Manager Work?

This is the Microsoft Document https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc756379%28v%3dws.10%29 Service Control Manager transmits control ...
Karamzov's user avatar
  • 149
3 votes
3 answers
4k views

Windows Sharepoint Services Login Problem

I am wanting to try out Windows Sharepoint Services on my Windows 2008 Box at home. The Windows 2008 Server is a domain controller. I have installed IIS 7, Active Directory, SQL 2008 Standard and ...
user avatar
2 votes
1 answer
972 views

Installing gitblit GO as service in Ubuntu Server 16.04

I got a new server with ubuntu 16.04 and installed gitblit GO. extracted it to /opt/gitblit/ created user and group glitblit gave rights to user: chown -R gitblit:gitblit /opt/gitblit called install-...
roeb's user avatar
  • 141
2 votes
3 answers
14k views

Server 2012 R2: World Wide Web Publishing service is failing to start

I've got Server 2012 R2 running in Hyper-V with Exchange 2013 installed. It's not a critical system - I'm using it to learn Exchange administration. I went to log into the server tonight after ...
CXL's user avatar
  • 213
2 votes
1 answer
11k views

Remove active directory certificate services role

I have logged in as Administrator to my windows 2012 server. I just installed active directory certificate services role, now I want to remove it (as this service prevents me from adding my server to ...
Ashkan Mobayen Khiabani's user avatar
2 votes
1 answer
2k views

"IIS Admin Service is Disabled" Error When IIS Admin Is Running

Issue: I am trying to start the Default Website on IIS, but I am getting the following error: As you can see, it says that IIS Admin is disabled, when it is actually running. Question: Is there ...
Onion-Knight's user avatar
2 votes
1 answer
4k views

Give users the right to restart a service

Based on How to give rights to one user for the restart of a service I've tried the command sc sdset My.Service (A;;RPWP;;;S-1-1-0) which i believe should give all users permission to restart My....
Esben Skov Pedersen's user avatar
2 votes
1 answer
3k views

How can I troubleshoot a service not starting at boot?

I've got a service set up to start at boot but it's not doing so and I don't know where to look (e.g. logs) to troubleshoot it. I've verified the run level: $ grep default /etc/inittab id:3:...
Teflon Ted's user avatar
1 vote
1 answer
16k views

How to monitor services with SNMP?

I want to monitor the status of several services via SNMP. The manpage says: proc NAME [MAX [MIN]] monitors the number of processes called NAME (as reported by "/bin/ps -e") running on ...
Sethos II's user avatar
  • 507
1 vote
2 answers
8k views

Give Non Root user access to start mysqld service

I have a Non Root User abc and want to give the user sudo rights only to restart, start or stop - mysqld service. i.e sudo service mysqld restart. How can I do it so? I would like to do the same to ...
Shahrukh Khan's user avatar
1 vote
1 answer
3k views

Setting up mongodb via upstart - how to pass options?

I installed MongoDB in an Ubuntu Server VM inside VMware using these instructions: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/. Everything works fine, and I can access MongoDB ...
Jonathan Ong's user avatar
1 vote
1 answer
4k views

How to set Windows Services permissions from Powershell?

I need to grant a specific account SERVICE_START permissions for a given Windows service. There seems to be some methods for doing so here, but would prefer a method that's native to PowerShell and ...
Ariel's user avatar
  • 423
1 vote
1 answer
1k views

puppet service not stopping service

notice ("This should be echoed") service { "iptables": ensure => "stopped", } This does not stop iptables, I am not sure why. service iptables stop works fine. Puppet 2.6.17 on CentOS 6.3. ...
user avatar
1 vote
4 answers
4k views

Monitor Services with $ in the service name in Icinga / Nagios

I'm trying to set up monitoring on a couple of MSSQL instances that exist on my Windows servers. The issue here is that if the service name contains a $ (for example, MSSQL$PROD)then the check_nt ...
DKNUCKLES's user avatar
  • 4,028