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

0
votes
1answer
12 views

Where do service permissions come from

I'm trying to broaden my knowledge of the events surrounding system startup. I see that there are many process which are started without root level permissions. e.g. rsyslogd is listed as running ...
0
votes
1answer
28 views

How to install `service` command in a Stable Debian?

In ubuntu we do simple: service MyService restart service MyService stop ... So, the service command is good and simple. I need this simplicity: how to install service command on Debian? PS: this ...
2
votes
1answer
41 views

Is there a way of getting logs for startup processes in /etc/init.d?

Is there a way of getting logs for startup processes in /etc/init.d? I am running Raspbian (Debian Wheezy). dmesg shows boot log, but does not go far enough. Some time ago I added a script to start ...
1
vote
1answer
21 views

service launched at boot, after all other?

Config : Linux Mint 17,2 (Ubuntu based, Debian based). I launch a home-made service at boot. Added with update-rc.d homemadeserviceName defaults I need to be sure homemadeserviceName runs after ...
1
vote
1answer
23 views

Making service NOT launch at boot

Context I made a service in init.d to be launched at boot (let's call it the primary service). And I updated update-rc.d primaryservice defaults This service calls 2 scripts (2 different task ...
1
vote
0answers
27 views

How to configure Systemd User Service with a Timer

I have a systemd user service that works as expected. It is started like this: systemctl start test@user The problem is that I need to run this service on a timer possibly for multiple users. There ...
3
votes
7answers
18k 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 ...
0
votes
2answers
19 views

Systemd optional service dependency that checks for error

I'm trying to rewrite an init script to systemd, but I'm struggling with an issue of optional dependencies. My service depends (optionally) on two other services. These two dependencies are mutually ...
1
vote
3answers
32 views

Dynamic logic in systemd service file

I'm trying to rewrite an init.d service file that contains the following code: if [ ! -r /var/spool/torque/server_priv/serverdb ]; then DAEMON_SERVER_OPTS="-t create ...
0
votes
1answer
53 views

opening a terminal with a command on startup in debian

I have an application which is an object file (obtained from a c source code). When I run this application from the terminal it works fine. I want to run this application on system start up. Since ...
3
votes
2answers
64 views

Ubuntu full list of available services

This question is very similar to this one: List of available services For my specific case, I'm wondering if there is a specific command to show the full list of services under Ubuntu. I did run a ...
0
votes
1answer
13 views

service pptpd shows “is not running” but why it is still working?

In my ubuntu server 14.04, I start a pptpd service, when I check it status: ubuntu@server:~$ service pptpd status * /usr/sbin/pptpd is not running But it actually is wokring: ubuntu@server:~$ ps ...
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 ...
0
votes
0answers
25 views

Service failing to start during server boot

Facing some issue with jboss startup script for our QA box. The jboss service does not startup during reboot although the startup script is there. $chkconfig jboss --list jboss 0:off 1:off 2:on ...
2
votes
0answers
104 views

start-stop-daemon, services, environment variables, and ansible

So, I have a Java program that runs Ansible. I'd like to run this program as a service. I've written a service script in /etc/init.d that uses start-stop-daemon to run/stop the Java program. I've run ...
0
votes
0answers
10 views

auto mp3 id3 tag updater as a service [duplicate]

I have an ubuntu 14.04 server running 7/24 as NFS, torrent server etc. I have many mp3 files needed to update id3 tags. Is there a way for auto update those mp3 files id3 tags like musicbrainz picard ...
0
votes
1answer
30 views

Start service before user logs in

Noob question ahead. I'm running a debian 4.8.4-1 x64 vanilla on a VirtualBox VM on a Win 7 x64 host. Purpose of the installation is to serve as a server for the subsonic music streaming service, ...
1
vote
1answer
20 views

service stop doesn't run the exit/cleanup part

This is a sleeping service, import time bufsize = 0 f = open("/home/user/sleep-log", "w", bufsize) try: f.write("going for a deep sleep......") time.sleep( 1000000000) except: import traceback; ...
1
vote
1answer
28 views

systemd: How do you query a service's status?

In sys-v-init, to query a service's status you can use the service command and do a service $NAME_OF_SERVICE status. In systemd, how do you query a service's status?
1
vote
2answers
4k 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 ...
1
vote
1answer
55 views

ubuntu - Why modifications to init.d script are ignored

I'm using Ubuntu Server 14.04. After I make modification to /etc/init.d/gearman-job-server and type: # sudo service gearman-job-server restart it ignores modification I've made. But then I type: # ...
-2
votes
1answer
41 views

How to restart certain Linux services

What are the commands to restart the following services on CentOS? cpdavd cpsrvd leechprot spamd tailwatch
2
votes
1answer
816 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 & ...
3
votes
1answer
337 views

Init-systems and service management on different distributions

Is there some overview which Linux distribution comes with which (default) init system and uses which tool for starting/stopping services? Is there some distribution independent way to ...
1
vote
1answer
107 views

disable service linux mint 17

I'm using linux mint 17 and I want to prevent a service from starting on boot. I can stop the service with, /etc/init.d/<service_name> stop but it will start again on a reboot On centos7 I ...
-2
votes
1answer
67 views

linux shell command in Perl program

Hi friends here is some issue I want to write a script that restarts server which is in stopped status. Here I am using my MySQL server in future if it is in stopped status then it will be restarted ...
0
votes
1answer
98 views

effect of reboot signal on systemd service state

I am working with systemd services at the moment. What is the sequence of state changes that all of the services undertake when, for example, init 6 or reboot or init 0 are executed? Here is the ...
2
votes
7answers
195 views

Restart firewall from bash file

I need to restart firewall periodically, so I created a bash file to add it to CRON tables. In terminal, I restart firewall using command: service firewall restart but if I have similar line in ...
0
votes
1answer
38 views

Creating service in SLES / SUSE 11 SP3

I have a python script that works very well executed from a (remote) console like this : sudo /srv/web-asset-server-master/python server.py The problem is, that it only lives as long as the console ...
3
votes
3answers
180 views

How to start SSH daemon on boot on Linux Mint Debian v2

I'm using Linux Mint Debian v2, 64-bit. I noticed recently that my ssh daemon does not start automatically on boot. It used to. I'm not sure if it had to do with my UFW configuration or sshd_config ...
0
votes
1answer
192 views

CentOS 7 - Using systemctl to start headless virtual machine hangs

I'm not entirely sure if what I'm trying to do can work. I would like to run a vbox virtual machine as a service and have it enabled on startup. Here is my .service script: [Unit] ...
0
votes
1answer
293 views

systemd Failed at step EXEC spawning /opt/autologger/placeholder.sh: Permission denied

This is a really simple question, I know, but I am jumping right into systemd with little prior knowledge of system management and Linux in general. I am attempting to create a "Hello World" service, ...
0
votes
0answers
38 views

How to make sdptool add SP persistent or configure it automatically as bluetoothd starts?

I found that simply adding sdptool add SP to an initialization script does not make the serial port persistent. If I restart the bluetoothd service, the change will be lost... How can I add an SP ...
2
votes
1answer
71 views

systemd : write a .service daemon for setting up swap and fs in zram

I recently acquired a laptop with a ssd and in order not to weigh too much on the ssd (which I was told had a limited number of write cycles), I decided to write a systemd unit file for setting up a ...
0
votes
2answers
28 views

How can I find where a program is installed or run from?

I installed centos and now I want to get into mysql via the command line, but I forgot my root password for mysql as its not the same as the root password I made to login to the system. I googled and ...
1
vote
1answer
107 views

Force a service to start before networking.service

I would like to start my service samplerbox.service [Unit] Description=Starts SamplerBox [Service] Type=simple ExecStart=/root/SamplerBox/samplerbox.sh # this script does: python ...
3
votes
1answer
107 views

How to make a Systemd service run forever (“Bootup is not yet finished. Please try again later.”)

I have created a systemd service that has to run forever (because it does the main job on my embedded computer): # /etc/systemd/system/samplerbox.service ######################################## ...
29
votes
2answers
71k views

How can I restart the SSH daemon on Ubuntu?

When I type in service sshd restart I get a sshd: unrecognized service error. I do have, in /etc/ssh/ a file sshd_config that I use to set config. I can also putty into the Ubuntu box (it is remote). ...
1
vote
0answers
29 views

Is it possible to create aliases that affect services starting?

Currently I have a custom service that executes java in multiple places. I want to be able to add an option to any executions of java this service will spawn (I'm specifying the error log location, ...
2
votes
5answers
2k views

How can I run a process in a terminal window and then hide that window?

I want to run python ~/program/proxy.py in a terminal when I boot up. And then hide this terminal window (because it is just a proxy program, and I don't want to see the debug info). So how can I get ...
2
votes
3answers
478 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
1answer
23 views

is it possible to have a dhcp client stop the dhcp service of the server after receiving an address?

Is there anything (specifically in linux machines) that can jump from client to server that would have the ability to perform a root-level task, such as stopping a service in an automated manner? ...
1
vote
1answer
93 views

How to start Virtual Box service on Linux

I performed a dist-upgrade and then and autoclean and autoremove. It disabled the Virtual Box service on Linux because the headers were out of date. The headers caught up, so I rebuilt the modules off ...
1
vote
2answers
149 views

Too many open ports in Debian 8

The IT department has given me 3 virtual servers with Debian 8 for my area, which I will manage (but they have some monitoring tools). Starting Nmap 6.40 ( http://nmap.org ) at 2015-05-11 13:33 ART ...
2
votes
1answer
315 views

Systemd service wanted by multiple targets

Is there a way to make a service wanted by multiple targets (or to have multiple install directives) so that when installed a symbolic link is created in all places. My example is the following ...
0
votes
2answers
101 views

Self-restarting service does not restart with systemd

I have several different services that can self-restart (e.g. after an auto-update). Unfortunately, when they restart, they do not come up. I can tell because service <service name> status tells ...
2
votes
0answers
137 views

Wireless LED indicator issue

The question itself: is there any way to make this indicator be turned ON and OFF depending on wireless status (not just blink when there is wireless activity)? After having installed Linux, I saw ...
1
vote
0answers
136 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 ...
2
votes
2answers
3k views

Get running status of mongodb

Having a script where I start/stop various services depending on what I need. For example Apache, BIND, MySQL, PostFix, Memcached, Tomcat, ... and so on. Depending on status options to script etc. ...
2
votes
1answer
316 views

Run script every 30 min with systemd

I would like to execute a script every 30 min after booting into the system. I know you can use cron, but I don't plan to use this feature often therefore I'd like to try it with systemd. So far I ...