A Linux service is an application (or set of applications) that runs in the background waiting to be used, or carrying out essential tasks.

learn more… | top users | synonyms

1
vote
0answers
39 views

Start TCP-based service on demand, and stop it after connection is closed

A server needs to provide several huge (consuming lots of RAM) tcp-based services. What I want to achieve is, that they are started on-demand (lazy), and stopped after either the connection is closed ...
1
vote
0answers
90 views

Running etherpad as a service on raspberry pi

I am setting up etherpad-lite on my raspberry pi ubuntu 14.04 server. I got stuck trying to make etherpad-lite run as a service, following these instructions (I've also checked several others but that ...
1
vote
1answer
25 views

What happens to the services that do not have a killing-script in the new run level?

I read, that each runlevel has its own set of services or daemons, which can be looked up in /etc/rcX.d (X for the respect runlevel), there are scripts which names start with S and start services of ...
0
votes
0answers
91 views

How to debug failing service in Arch Linux

I have a application which i can run without any problems as a normal application. The application is using I2C and WiFi. I can detect the data flow through wireshark so i can confirm that it is ...
0
votes
0answers
27 views

How to backup current chkconfig configurations

How to backup current chkconfig configurations chkconfig --list list the current services configurations, and when (run level) a service set to start. I need to backup the configurations and check ...
0
votes
1answer
138 views

Create a service in Debian that sources a bash startup script

The server is running Debian 7 Wheezy without systemd. I have a user in Debian with Perlbrew installed into their home directory. The user is running a Mojolicious app. In order for the app to work, ...
0
votes
0answers
947 views

nginx won't to start

I have run nginx -t and it returns successful. On boot I see messages about nginx has failed to start, and it wont start when I try nginx or service nginx start Instead i get a message to check ...
0
votes
0answers
12 views

Will I be able to install a service as a sudoer?

I will need to install a custom application as a service on a RHEL 6.2 box this weekend. Will I be able to do this with sudoer powers or will I need the root password for anything?
1
vote
0answers
56 views

Service script and shared libraries

I have the following simple script IPN in CentOS 6.5 in /etc/init.d/ #!/bin/sh # chkconfig: 2345 05 06 cd /root/IPNHost . /etc/rc.d/init.d/functions start() { echo -n $"Starting..." ...
0
votes
4answers
143 views

Load a service in Linux programatically [closed]

Given a service name(created by user) and its path, how can I load and start the service at runtime from a C++ program in Ubuntu. Does there exists functions similar to the Windows functions such as ...
2
votes
1answer
63 views

FreeBSD: Restart one service each time another restarts

On FreeBSD, what is the correct/canonical way of specifying that one rc script is reliant on another, such that each time the service it depends on is restarted, the dependent service is then ...
1
vote
1answer
69 views

who controls a linux service?

How do I quickly find out who controls some linux service? I'm tired of poking around /etc to find out if initd, upstart, systemd or supervisord is controlling some service.
0
votes
1answer
120 views

What do +,- and ? symbols represent in `service --status-all`

What do +,- and ? symbols represent in service --status-all represent in Ubuntu 14.04. I am not able to understand it properly. I guess + here might mean delayed services which start after the ...
1
vote
1answer
207 views

Keeping track of service status continuously

I need to monitor the status of nagios service (Because, whenever I make any changes in configuration and apply the new configuration, I would find nagios service stopped). If found in 'stopped' ...
2
votes
1answer
372 views

How to enable systemd's service without waiting?

I'm trying to make fastest boot possible and did run systemd-analyze critical-chain: graphical.target @5.800s └─multi-user.target @5.800s └─NetworkManager.service @4.201s +1.598s └─basic.target ...
1
vote
2answers
123 views

How to use process substitution within a case statement without getting syntax errors?

I have a script loaded as a service in /etc/init.d/myfile When I try to start the service I get the error /etc/init.d/myservice: 21: /etc/init.d/myservice: Syntax error: "(" unexpected The issue ...
1
vote
1answer
204 views

How, on ubuntu, to run as a service / run under supervision

I have been given 3 clusters. One is of Kafka, one is of storm and one is of ZooKeeper. I need to make it so that the services start and when stopped, start up again as described in the Zookeeper ...
0
votes
2answers
1k views

Installing MySQL on CentOS throws error that cannot find mysqld.sock

I have yum install mysql in CentOS 6.4. Now, when I use mysql command, it throws the following error: ERROR 2002 (HY000): Can't connect to local MySQL server through socket ...
1
vote
1answer
123 views

How to remove a service that keeps the system from booting?

I created a service that starts a script using exec, because it works on upstart. On systemd it keeps the system from booting, because it waits for my script to end, but since it is a webserver, it ...
5
votes
1answer
13k views

How to list all running daemons?

From my question, it was clear that I cannot easily decide the features of a daemon.I have read in different articles and from different forums that service --status-all command can be used to list ...
2
votes
1answer
790 views

creating a custom service on ubuntu

I am setting up an ap called scumblr (https://github.com/Netflix/Scumblr/wiki) The final step calls for initiating the server using the following 3 commands: redis-server & ...
1
vote
0answers
155 views

(Super)user issues in handling services

Headless Ubuntu server 14.04. I have installed dropbox (as outlined here http://ubuntuserverguide.com/2012/06/how-to-install-and-configure-dropbox-on-ubuntu-server-12-04.html) and have added the ...
0
votes
2answers
910 views

Service start and Permission denied

I have a script that execute a java program, and I want to create a service to start this script at boot time. So I've created a script called run.sh. /test/run.sh #!/bin/bash java -cp ...
2
votes
3answers
562 views

Can't start a ZNC service

I try to start ZNC using the following command service znc start I get this error Starting znc: /usr/bin/dirname: extra operand `2>&1.pid' Try `/usr/bin/dirname --help' for more ...
2
votes
3answers
3k views

setting mysql root password in CentOS 7

How can I log into the mysql 5.6 command line client and reset the root password in Centos7? I read the following at this link, but it does not work: 1) sudo service mysqld stop 2) sudo service ...
0
votes
1answer
122 views

Trying to debug /etc/init.d/named, no output, replace > /dev/null with /var/log/named.log?

I'm trying to debug named, when I try: [root@test master]# service named start Starting named: [FAILED] it fails silently, so I tried: sed -i ...
2
votes
2answers
866 views

Can't start systemd user instance

I'm using CentOS 7, and am trying to create a systemd service for my local user. However, before I can do that, I need my systemd user instance, which I cannot find or create to begin with. Running ...
1
vote
0answers
65 views

Limit system reboot burst

Systemd allows to automatically restart services if they have crashed. To prevent indefinite services restart it uses @StartLimitInterval@ and @StartLimitBurst@ variables. Moreover, I can reboot ...
0
votes
0answers
63 views

How do you connect app and DB servers from separate containers?

With Docker, how can I make the DB in one container accessible by the app server in another?
2
votes
3answers
465 views

Nginx leaves old socket

I'm running Nginx 1.6.2 (the nginx-full package from the nginx/stable PPA). I'm using the unmodified configuration /etc/nginx/nginx.conf: user www-data; worker_processes 4; pid /run/nginx.pid; ...
0
votes
2answers
211 views

Start/stop service script like Ubuntu for RedHat

Is there a .sh script that manages starting and stopping the service like Debian/Ubuntu but for Red Hat/Fedora? Looking to place it into the file running some software.
1
vote
1answer
325 views

Stopping postfix - are messages queued when postfix is idle?

I am running some scans on my server tonight and would like to disable email notifications since there is a chance for a LOT of them to be sent out. I am planning to issue service postfix stop ...
6
votes
2answers
225 views

Is there an ICMP echo request service?

Often, in applications that I develop, I like to include a network status indicator for various devices on the network. The easiest way to monitor these devices is by pinging them. But ICMP echoes are ...
0
votes
0answers
45 views

Why wouldn't distributions use a cross-platform service manager?

I use Supervisor for my services on production servers. I also recently switched to MacOS and, for services that I need for development, instead of a OSX's service manager, proposed by brew ...
3
votes
1answer
742 views

Can't start the MySQL service on a recently upgraded VM

I have a VM running Ubuntu server which I just upgraded to 14.04. The VM provides access to a MySQL database. However, after upgrading, the database refuses to start and I don't know enough about it ...
1
vote
1answer
48 views

Does updating disabled services re-enable them?

I remember going through this list to disable some of the services that I do not need on my Fedora desktop. By going through my bash history, I can also see clearly that I have disabled rsyslog with ...
1
vote
0answers
143 views

Cgroups unrecognised service

I'm running the following command, after having modified my version of /etc/cgconfig.conf but get the following error (I'm running Ubuntu 14.04). Does anyone have any idea why this is the case? $ ...
0
votes
0answers
1k views

Runtime parameters for a systemd service

I am a little confused about how runtime parameters are normally supplied to a systemd service. The general idea I have is that the following happens: There is a file that contains the environment ...
2
votes
1answer
3k views

sudo service command not found when installing mongodb

I am currently on OS/X using macbook. I want to stop the instance of mongodb service running. Hence I tried: > sudo service mongodb stop sudo: service: command not found After looking up on ...
1
vote
1answer
2k views

I stopped MiniSSDPD, will something bad happen?

I have been trying to harden my Debian system by stopping and disabling the 20 or so unnecessary services listening by default. One of them is called "minissdpd". Apparently this provides "discovery" ...
1
vote
1answer
55 views

Find service by network activity

I see a strange DNS request at tcpdump and I want to find service which is originated from. I've already tried to find it with different monitoring tools but still no luck. Is there any proven ...
2
votes
4answers
310 views

How to have service that makes sure program keeps running?

I made a service called thin_keep_alive_service in /etc/init.d. I gave it chmod +x rights. The script looks as follows: #!/bin/bash ### BEGIN INIT INFO # Provides: thin_keep_alive_service # ...
4
votes
1answer
599 views

Transmission-daemon service spontaneously stops

I've installed, configured and ran transmission-daemon on my CentOS 6 machine using service transmission-daemon start This works nicely, and I can see the web interface on http://server.ip:9091 as ...
1
vote
1answer
3k views

Why I get status: Unknown job on the service?

I followed this tutorial to add a program to init.d as a service (I guess), when I want to see its status with: sudo status /etc/init.d/noip2 I get : status: Unknown job: /etc/init.d/noip2 What ...
1
vote
0answers
51 views

Setting up touch driver to run through service

We are trying to integrate a touch panel to our Debian system. Touch driver (General touch) I am trying to run this application in Linux service.Below are the steps which i followed Driver ...
1
vote
0answers
134 views

MongoDB “service” on clean Redhat can not be started

I just bring up Redhat 6.5 64-bit from AWS and did the below things: Disabled SELinux Disabled Iptables All ports opened in Security Group Rebooted Then i just followed, both of the below ...
1
vote
1answer
5k views

Why does sendmail's status keep changing to “dead but subsys locked”?

Every day I get the output of sudo service --status-all emailed to me using crond. The server is a CentOS 6.5 web server which I use to host a few WordPress websites. Occasionally sendmail will change ...
0
votes
1answer
175 views

What is logcheck, and why is it consuming 100% CPU out of the blue?

I have a server that's hardly used, basically a fresh linode VPS with Ubuntu 12.04 LTS. It has been running for 14 months with hardly a blip in the CPU graphs (2% max, average over 2 hours). ...
0
votes
2answers
15k views

Can't start mysql service

Trying to start my mysql service. /etc/init.d/mysql start returns: Job failed. See system logs and 'systemctl status' for details. Further: systemctl status mysql.service returns: ...
1
vote
1answer
1k views

autorun a linux program on startup from a non-root user in centOS 6 64bit

I have a software that needs to be run via specific user "non-root" hence its home directory is /home/non-root/, I have to emphasize that the program must not be run via root and must only run after ...