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.

1035 questions
9
votes
4 answers

Crontab to restart service

I am running a web server on an AWS EC2 micro instance. The instance has ~630MB of RAM. With time, I have several httpd processes and very little free RAM. When I restart the httpd service, I end up freeing about 350MB of RAM. I thought of having…
Lord Loh.
  • 1,089
  • 3
  • 16
  • 25
9
votes
8 answers

MySQL: Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist

All of a sudden my local MySQL 5.5 server stopped running on my Windows XP SP3. I also have WAMP Apache and WAMP MySQL installed, but WAMP MySQL is not running. Error log shows: Can't start server: Bind on TCP/IP port: No such file or directory Do…
Steve
  • 365
  • 2
  • 7
  • 18
9
votes
4 answers

How to stop git-daemon on debian

I'm running debian lenny server, and I've installed git on it. Now there is a git-daemon process (and appropriate opened port), but there is no /etc/init.d/git script that I could stop. I know there is /etc/sv/git-daemon/run but that doesn't help me…
Slartibartfast
  • 265
  • 1
  • 4
  • 8
9
votes
4 answers

How do you do a keyword search the Services.msc (mmc) window in Windows 7?

When you want to run a service, you have very limited capabilities, in all current Windows versions, as far as I can tell. I usually start Services by typing "services.msc" into the Start->Run box, on most versions of Windows, this works. I know…
Warren P
  • 1,195
  • 8
  • 21
  • 35
8
votes
2 answers

How to configure a service auto-restart after failure with PowerShell

On a Windows system, in the Service console, there is a recovery tab to configure actions for a service in case of failure. How can I configure this with PowerShell?
Luke
  • 439
  • 2
  • 6
  • 15
8
votes
4 answers

Loop through servers and run command

I have a set of servers mentioned in a text file called network_list.txt . How can i run through the servers and run command and display the result ? I have tried the follows : filename="network_list.txt" service=httpd while read -r line do …
KTM
  • 213
  • 2
  • 6
8
votes
3 answers

To restart a service (e.g httpd), should I use /etc/init.d httpd restart or /sbin/service httpd restart?

Whenever I need to restart Apache on my RHEL VPS, I type sudo /sbin/service httpd restart. However I notice a lot of articles suggest using sudo /etc/init.d httpd restart. Is there any difference? If there is, when I should use each one?
Andy Stewart
  • 203
  • 2
  • 6
8
votes
1 answer

"Netconsole Module Not Loaded" When Trying To Check All Services

I have a fairly new server build and I'm trying to list all the services. Checking the status of any one works fine, but running service --status-all gives the error: netconsole module not loaded Configured devices: lo eno16777736 Currently…
Gary
  • 267
  • 2
  • 4
  • 10
8
votes
3 answers

How to escape spaces in systemd unit files?

My unit file looks like this (already attempted to escape spaces as \x20 like the docs say): [Unit] Description=My…
Cobra_Fast
  • 650
  • 2
  • 8
  • 23
8
votes
1 answer

Is it possible to set the processor affinity of a service, and persist this affinity across reboots?

Is there a setting that can be changed (or a reg key that can be added) to set the processor affinity of a service? I would want to set the affinity, and keep this setting across reboots (so manually changing the affinity after starting the service…
8
votes
3 answers

How to control the rate of automatic restarts of a runit service?

I have this runit service with run and log/run scripts properly working. As it happens, the service itself can crash for external reasons and might not be able to start for many minutes. The default way that runit handles this situation is by…
jpbochi
  • 163
  • 8
8
votes
3 answers

Why does NTP daemon keep listening on UDP6?

I have a clean Debian 7 installation, and I manually entered the following lines in /etc/ntp.conf: interface ignore wildcard interface listen Hoping that NTP will no longer listen on UDP6, but after a restart, it still does: 5:udp …
Howard
  • 303
  • 2
  • 4
  • 11
8
votes
3 answers

How do I configure another instance of redis on ubuntu?

I basically want to have 2 instances of redis on Ubuntu. I looked at /etc/init.d/redis-server script and tried to create a new one (redis-server-dev) pointing to another config file (new port etc) but it didn't seem to work. What is the correct…
Dan
  • 371
  • 2
  • 9
8
votes
1 answer

Setting %PATH% for a service?

I have a service which is installed that runs and executes certain commands periodically. It runs as the Local System account. The source code for the service is not under my control, but I do control the Windows XP SP3 box that the service is…
Kyle Kaitan
7
votes
3 answers

Debian - Slow boot waiting for network

I have a Debian 10 Server that I think could/should boot faster, but I don't know what the problem is. I see A start job is running for Raise network interfaces when booting, and looking at systemd-analyze blame it seems a lot of time is spend in…
Kona98
  • 101
  • 1
  • 1
  • 6