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

2
votes
3answers
883 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
200 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
2k 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 ...
2
votes
1answer
6k 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 ...
2
votes
1answer
10k 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
119 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
152 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
71 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
80 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
269 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 ...
10
votes
3answers
9k 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 ...
-1
votes
1answer
602 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 ...
3
votes
1answer
1k 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: ...
3
votes
0answers
591 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
709 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
1k views

Why FreeRADIUS service won't work on Centos ?

I have installed FreeRADIUS server on centos via yum successfully, but I couldn't start radiusd service. when I run as root user and exec the following radiusd -X an error is occurred. [root@IgorAAA ...
2
votes
1answer
34 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
54 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 ...
7
votes
1answer
2k 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
340 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
771 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 ...
2
votes
1answer
422 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. ...
5
votes
4answers
26k 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
161 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
1k 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
206 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
208 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
118 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
614 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 ...
7
votes
3answers
5k 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
173 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
303 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 ...
1
vote
3answers
71 views

Create a service that logs all input

I need to create a service that logs all input on a certain port to a file. Do I have to create a custom program for this, or is there an existing tool out there that can help me with this?
0
votes
1answer
111 views

Is it possible to prevent systemd from executing the command specified with ExecStop?

I have a service that I only need systemd to run ExecStart= command at boot, and don't run the ExecStop action at shutdown / reboot. Is that possible? I can't just remove the ExecStop line, 'cause ...
4
votes
1answer
1k views

start-stop-daemon makes cron pidfile with wrong pid

I have an init.d script to start crond which specifies the following for start(): start-stop-daemon -S --quiet --make-pidfile --pidfile /var/run/crond.pid --background --exec /usr/sbin/crond ...
1
vote
0answers
335 views

service command: Failed to issue method call

I downloaded the source of tinyproxy and then use ./configure make make install to install it Then I want to start it, but get errors, like the following: [root@kitty tinyproxy-1.8.3]# service ...
3
votes
4answers
390 views

How to set proper monitoring of my services in a automated way? So that if one crash it auto on the fly restarts?

How can i setup monitoring to my system services? Either using automated script which scan every moment, if httpd, mysqld, and my custom daemon is running or not, if not running it will automatically ...
3
votes
2answers
4k views

What is the service that's responsible for automounting a USB drive in CentOS 6.4?

I know of the legacy Linux way of mounting a USB stick or drive: mount /dev/sdb1 /mnt/ But in some CentOS 6.x installations I saw, you just insert the USB stick and CentOS automagically mounts it, ...
1
vote
2answers
184 views

Run service after logging in on an X session

I am using Ubuntu 12.04. I want to automatically start a service after login with LightDM. This service is not meant to start on boot, but after X is initialized.
3
votes
1answer
3k views

Problem starting a service running Debian

I want to run a UPNP renderer as a service on a Raspberry Pi using Raspian, a Debian based distro. Actually, everything runs fine but one thing : I can't manage to start the service at boot time at ...
2
votes
1answer
76 views

Custom application running on embedded device - do I need to register my listening port in /etc/services?

I have written an application that will run on an embedded device. The installation is very minimal and uses busybox and not many other things. Part of the software includes a listener thread that ...
4
votes
1answer
91 views

Determine monthly internet transfer to detect right FUP

I live in a country where many ISP (internet service providers) have FUP (fair use policy, limit on amount of data transferred). I need to get a new connection and I would like to measure how much ...
0
votes
1answer
740 views

Converting update-rc.d redis_6379 defaults to chkconfig command

I'm trying to run the commmand below to Centos and of course I get command not found. How do I then convert it to chkconfig ? update-rc.d redis_6379 defaults
-4
votes
1answer
92 views

Peculiar lack of RHEL 5.8 service management documentation [closed]

I am needing to see the status of some services on some of our RHEL 5.8 hosts on which I am not an admin. Much to my surprise, I am not able to get any info how to do it (such as chkconfig or ...
2
votes
0answers
231 views

Run a command before services are started

I have a Oracle Linux 6.3 system on which I would like to run a command when the machines starts up before any other services are started. The reason for this is to try and work around a bug in RHEL ...
0
votes
2answers
709 views

Best language to write linux services [closed]

I want to create a crawler that scans one single web page and sends me an email in case something is wrong on the page (the page holds some webservers' status - Up/Down). What would be the best ...
4
votes
1answer
1k views

MySQL stop/waiting issues; “can't connect … through socket” [duplicate]

So this was my first time putting up a LAMP stack on a Bodhi machine (previously experience with WAMP, and LAMP on 10.04); I got Apache going, and a Drupal install begun, then I go to create a new ...
-1
votes
1answer
102 views

How to know what will execute at startup/bootup?

I would like what scripts will run at start, without needing to "restart and see what happens", is there any way to know what 'services' are ready to run? Shoud I check every single file in ls ...
1
vote
1answer
1k views

What is rsh.rlogin and How to remove rsh.rlogin

I never heard of this word rsh and also received a check list from Security pro that we have to disable rsh. Can someone please tell me what is this rsh and how to disable it. Base OS : RHEL 5.5 and ...
3
votes
2answers
759 views

Bash script needed to run every second

I have a few cleanup commands to run for my datacaching scheme. I was thinking a bash script would be an easy way to check if the full clean up job needed to be run. But the cache is very time ...