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
1answer
17 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
17 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
1answer
31 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
34 views

How to restart certain Linux services

What are the commands to restart the following services on CentOS? cpdavd cpsrvd leechprot spamd tailwatch
0
votes
1answer
30 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
46 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
33 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 ...
0
votes
1answer
21 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 ...
0
votes
1answer
99 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] ...
3
votes
3answers
92 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
109 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
17 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
7answers
182 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
0answers
22 views

Debian running high resource all the sudden!

So, I recently Installed Debian 8. It ran at about 800 Mb Of RAM but after installing metasploit ( with it not running ) My ram Is at 1800 Mb Without even running anything, I've check my startup ...
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
86 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
74 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 ######################################## ...
1
vote
1answer
51 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 ...
1
vote
0answers
27 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, ...
0
votes
1answer
21 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
56 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
106 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
156 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
79 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
104 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 ...
2
votes
1answer
216 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 ...
2
votes
3answers
71 views

is there a system-wide “extension” to /etc/services that does not get replaced on package updates?

I know how to use /etc/services but if I change it and the inetd package is later updated via apt-get to a new default one, my changes are gone (happened to me on a apt-get dist-upgrade from Debian ...
3
votes
0answers
19 views

Where do I put my web services? [closed]

I'm administrating my server since a few year but I'm looking for good practice like: What is the best place web service like my wordpress website files? My etherpad-lite instance? Which user shall ...
6
votes
2answers
205 views

What is brandbot?

What is the "brandbot" service running in Centos 7? What does it do? All I can find (it has no manpage) is "Flexible Branding Service" and that it's part of the "base" repo.
3
votes
1answer
172 views

Can I use a symbolic link as a service of systemd?

For instance, I have a service named mysshd.service under /usr/lib/systemd/system/ directory. Can I create a symbolic link such as: ln -s /usr/lib/systemd/system/mysshd.service ...
3
votes
0answers
73 views

What is the difference between “systemctl restart” and “systemctl start”?

I have two services A and B where B is dependent on A which means in the A's service unit i have After and Requires set to B After=B.service Requires=B.service Now when i stop the service B the ...
0
votes
1answer
44 views

Run custom service remotily on Linux

On the server side : ( @ip for example 10.0.0.3 ) Consider this simple script named script.sh : ( /home/user/script.sh ) #!/bin/bash echo good Let's create new service named script.sh under xinetd ...
2
votes
1answer
54 views

Option --skip-slave-start Not Working with Systemctl

I just started with centos 7. I'm trying to get replication working and am attempting to start mysql without starting the slave (so that I can set the pointers as to where it's supposed to resume ...
4
votes
2answers
532 views

How could we allow non-root users to control a system.d service?

With sysvinit, a sudoers entry like this would suffice: %webteam cms051=/sbin/service httpd * This would allow for commands such as: sudo service httpd status sudo service httpd restart Now, ...
1
vote
1answer
123 views

Linux- Stop a process running as daemon

I've started uwsgi as a daemon, how can I kill that process? Everytime I kill its pid, and then does ps aux | grep "uwsgi", it again comesin the output. I've also tried pkill uwsgi, but no use. How ...
1
vote
1answer
58 views

Optimal way to set and read variables

I need to set 6 variables which are used by several services and applications in Linux. I have so far been using the environment variables, but find it very complicating to modify these variables ...
1
vote
0answers
31 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
80 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
74 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
26 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
122 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
763 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
53 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
121 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
57 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
62 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
97 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
170 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' ...