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
votes
0answers
60 views

Debian - how to find out why a lot of services stopped [on hold]

Question: How to find out why services stopped if their logs don't say anything, they just stopped logging. Where does Debian keep logs about services that were killed (for example do to RAM running ...
0
votes
0answers
9 views

openfire chat server Deamon not getting start while server up every time

we using a Chat server, its installed with openfire, for local office use we installed it, every day morning while server getting ON openfire service is not getting started, I have added it in run ...
2
votes
3answers
296 views

Restart all services without reboot

I do some group permission changes on the CentOS server, And then need restart all services. How can I restart all services safely without rebooting?
4
votes
2answers
48 views

What's the recommended way to run a service as a non-root user?

I have a simple init.d script which starts and stops a process. I call the init.d as root, but I'd like the process it controls to run as a specific user. The most common suggestion online seems to ...
0
votes
0answers
54 views

Why did my debian server crash?

I have a debian server newly installed yesterday evening. I used an image called debian-7.0-amd64-minimal from my hoster. Just installed apache2, mysql, php, vim, lynx and configured a few webpages. ...
0
votes
1answer
27 views

How to check if Samba is installed

I don't know if Samba is pre-installed in my Linux system. I have the /etc/samba/ directory, with smb.conf file. But if I try one of these commands sudo service smb start sudo service samba start ...
1
vote
1answer
42 views

Daemons fall into what category?

Above system call, there are library routines, utilities and applications. Do daemons fall into any of these categories or they have their own category?
5
votes
1answer
37 views

Lightdm service - contradictory results for `status` command

When I run in my gnome-terminal: service lightdm status everything looks OK and it is as expected: lightdm start/running, process 1221 But when I run: service --status-all 2>&1 | grep ...
1
vote
1answer
104 views

hostapd will not start via “service” — but will start directly

I am having trouble getting hostapd to start as a service. It fails when I try to start it: $ sudo service hostapd start [FAIL] Starting advanced IEEE 802.11 management: hostapd failed! From what ...
3
votes
1answer
82 views

What code runs when I type “sudo service nginx start”

I am having this problem: http://stackoverflow.com/questions/10939072/add-nginx-as-a-ubuntu-service-stop-and-reload-doesnt-work I am trying to understand if my code to start nginx is point to the ...
1
vote
1answer
44 views

Named service won't start - seems to be caching errors

When I try to restart / start the named service, it keeps failing. service named restart Results in:- Stopping named: [ OK ] Starting named: Error in ...
2
votes
0answers
37 views

Why does't stopping the nginx server kill the processes associated with it?

When I stop nginx like this on ubuntu 12.04, I get the following errors: $ sudo service nginx stop Stopping nginx: nginx. $sudo service nginx start Starting nginx: nginx: [emerg] bind() to 0.0.0.0:80 ...
1
vote
0answers
28 views

Running uuidd automatically on startup on Ubuntu 13.10 server?

I am running the 13.10 Ubuntu server edition on which I have installed SAP's Netweaver Gateway 2.0 trial. This requires the UUID daemon to be running. Whenever I start up the system and run uuidd as ...
0
votes
1answer
25 views

How check presence of service if present return status else -1

I am bit struggling with following. I would need one line sh command which follows following logic: Check if service present then return service status otherwise -1. I came up with following: ...
1
vote
1answer
62 views

NFS Server changes in /etc/exports file need Service Restart?

I have NFSv4 Server (on RHELv6.4) and NFS Clients on (CentOSv6.4). Let's say in /etc/exports: /shares/website1 <ip-client-1>(rw,sync,no_subtree_check,no_root_squash) /shares/website2 ...
1
vote
2answers
58 views

An init-script does not get called on shutdown

I have set up an init-script to control the state of a VirtualBox VM: #!/bin/sh #chkconfig: 35 99 5 #description: vTiger virtual machine ### BEGIN INIT INFO # Provides: vtigervm # Required-Start: ...
0
votes
3answers
62 views

How do we know what applications are installed in Linux?

I'm trying to understand the following in Linux. In windows we have the services that run or "startup". When we install an application it could be installed as a service so that it starts ...
3
votes
1answer
99 views

What is the “mintsystem” service setting and when would I want to activate it?

In hunting around my GUI for a place to enable sshd I clicked on "Services" from the Administration section of the Linux Mint (16) menu. It opened a window titled "Service Settings" and inside it I ...
2
votes
3answers
62 views

Running commands on startup on a Red Hat server

I have a Red Hat server instance on AWS that I'm trying to make a nice AMI image of so I can test specific instance machine types with Apache Bench (ab). I'm currently just trying to create the OS ...
0
votes
1answer
35 views

service red5 restart FAILED

Works to start and stop but not to restart: -bash-4.1# service red5 restart Shutting down red5: [FAILED] It was all working before had to delete red5 and JDK and ...
1
vote
1answer
338 views

Make screen start as Daemon for a Minecraft server

I made a script that runs fine manually, but can't get it to run with the description in How to start a script file on boot?. I have run update-rc.d -f minecraft.start defaults This is what my ...
1
vote
1answer
1k views

Fedora 19: can't disable the firewall

I've installed a server (WSO2 ESB) in my laptop. When I run it, going to the browser and typing the console address https://10.13.6.75:9443/carbon, it works normally, but if I try it on another ...
1
vote
1answer
488 views

List of available services

Is there any command that would show all the available services in my wheezy Debian based OS? I know that in order to see all the running services you can use service --status-all.
2
votes
1answer
46 views

Why can't I disable some of the services in system-config-services?

I'm developing a kiosk like PC so it doesn't need most of the services. Questions Why can't we disable some services showed in system-config-service? Is there any way to disable all (or at least ...
2
votes
1answer
81 views

local shutdown scripts (do's and don't's)

At work, I'm running linux, and use vagrant on a daily basis. What I find annoying is that the system often hangs when I reboot/shut down, if I forgot to vagrant halt any virtual boxes I may have ...
1
vote
1answer
51 views

Server socket location, startup and monitoring

I'm writing a server on a shared development desktop that moonlights as a server. This is my first attempt at writing a linux server for someone else on a shared box. I'd like to conform to unix ...
1
vote
1answer
37 views

Startup script doesn't work

I have the following start script. #!/bin/bash # MyApp # # description: bla bla case $1 in start) /bin/bash /javaprog/serport-start.sh ;; stop) /bin/bash ...
1
vote
3answers
123 views

Detect process if not found then run it

I am running several process at startup using "crontab -e" @reboot tranmission-daemon && python defualt.py && python MonitorService.py But for some reason, those service can ...
4
votes
3answers
361 views

How do services in Debian work, and how can I manage them?

In Windows I have the services manager, where I see all system services, that can be started through Windows itself, I set up the user it uses, the rights management is in there, and I can pass ...
0
votes
1answer
123 views

Run a php file as service?

I created a .sh file and it is email.sh In this email.sh file I have these lines #!/bin/sh php /home/username/public_html/Worker.php Now, I want to make that email.sh as a startup service in the ...
2
votes
1answer
236 views

chkconfig bootup script failing, script runs good manually

I recently purchased a vps and I attempted to create a startup/restart script to start up my java program. I am running CentOS 6. The script works if I execute it manually with this command: ...
1
vote
0answers
258 views

Plymouth splash not working and causing VT problems

Since I tried installing Plymouth (boot splash), I'm facing two problems : It's not working My Virtual Terminals (tt1 - 6) aren't working anymore Here what I did : Added plymouth hook (after ...
0
votes
1answer
210 views

Create cron as a apache user and run as root user

I am creating this cron as apache user and want to run this cron as root, below is my code snippet: # Create a cron job to restart apache cron_file="/etc/cron.d/restart_apache_crontab" cron_job="*/1 ...
0
votes
1answer
423 views

Cannot start Free radius service on Centos

I installed free radius server via yum successfully, ut now cannot start radiusd service. when I run as root user and exec the following radiusd -X command the error is below. Any ideas on how to fix ...
2
votes
1answer
31 views

Ubuntu blocks access to services when not logged in

I'm not really sure what's going on here. I have the following: A fresh install of Ubuntu 12.04 LTS. Jira 6.1.2 installed as per instructions from Atlassian. Confluence 3.5.13 installed as per ...
0
votes
1answer
36 views

Service not starting at boot

Im on Ubuntu 12.10. I have a service that runs well when I do sudo service myservice start/stop at installation, I did sudo update-rc.d myservice defaults and I see that there are in rc*.d some ...
6
votes
1answer
261 views

What is the difference between start-stop-daemon and running with &?

I am setting up a service in /etc/init.d. I am looking at various scripts in there, some are implemented with start-stop-daemon ... and some with /path/to/script &. All of them save the pid in a ...
1
vote
1answer
218 views

service vs. initctl in Ubuntu

Why are some deamons run out of service and some out of initctl in Ubuntu? Do both tools do the same thing and it is just a matter of personal preference of the user what they will use? E.g. sudo ...
1
vote
0answers
446 views

Bittorrent Sync Autostart as a Service

I'm running a raspberry pi with the latest raspbian (debian) on it. I've installed btsync. Now I want to run Bittorrent Sync, when the system boots, not only when somebody logs in. Do I have to run ...
1
vote
1answer
220 views

Process calling getaddrinfo() at boot gets permanently stuck with bad /etc/resolv.conf?

I'm running pianod, a Pandora client/server, on a Raspberry Pi with Arch Linux ARM. I have pianod set up to run as a service at boot. It starts up before the network stack, so getaddrinfo() fails. ...
2
votes
4answers
6k views

Keeping a process running after putty or terminal has been closed [duplicate]

I'm running a node.js server off of a raspbian (Debian) machine, and I'd like to start and stop the server remotely. This for me means using putty to access the shell, except when I close out of the ...
3
votes
2answers
92 views

Is service stop synchronous or asynchronous?

I did sudo service ... stop before shutting down the machine remotely, over SSH, but then I realized I didn't know if stop is synchronous or not and I wondered if I was not too fast to shut down the ...
1
vote
4answers
561 views

how to monitor up time and down time of a linux service

How to monitor up time and down time of a linux service. I have created a service for my application using chkconfig (RHEL 6.3). I want monitor when the service is turned started and stopped. I can ...
4
votes
1answer
137 views

Monitor a process in Debian

I want to create a service that monitors the existence of a certain process. I wrote the following shell script: #!/bin/sh while : do w=`ps u -A | grep -P ".+Sl.+/usr/local/MySource/endpoint" -c` ...
2
votes
1answer
151 views

boot without failing services

I'm using Debian testing. I want to configure wifi on my netbook, but failed to do so and when the system boots I get the following message: INFO: task wpa_supplicant:1634 blocked for more than 120 ...
1
vote
1answer
103 views

Script to restart the application

I need to write a script for the below scenario in Linux: Run a cron every 5 minutes. grep the application log file to see if we can see the pattern "ORA-". If we see this pattern: stop the ...
7
votes
1answer
363 views

How to autostart a background program by a non-root user?

As a non-root user, I want to run a background job when the system boots. It's sort of a service which doesn't require root privilege. Is there a way to do it? One way is to put sudo -u user command ...
6
votes
3answers
2k views

The rc0.d,rc1.d,… directories in /etc

I'm running Ubuntu 10.04 LTS where I have the directories /etc/rc0.d, /etc/rc1.d, /etc/rc2.d, ..., /etc/rc6.d. Example files from my machine: directory example symlinks in the dir ...
0
votes
1answer
107 views

Read and parse XML input via TCP [closed]

I'm setting up something where I'll need to be able to setup a service that accepts input on a TCP port and then parses the XML provided and extracts the necessary data, then posts that to Google's ...
3
votes
3answers
111 views

What is the recommended way of checking running services?

I'm often exposed to various GNU/Linux systems including CentOS, SLES and Debian. I want to know: what is the recommended method of checking all running services across these systems? I am aware of ...