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
55 views

Trouble setting up systemd service on Centos 7 system

An application from a vendor was installed with a non-root user. This is supported by the vendor and all is good. So the non-root user owns all the installed application executables and files. One of ...
1
vote
0answers
34 views

How to advertise a service on a port

I want to run a service(a server typically) on a host and it should advertise to other machines in the network. Let's say I'm running a ReST service which provides the temperature based on location ...
0
votes
0answers
51 views

systemctl not works for own daemon

I have a problem with starting own daemon program using systemctl in Debian (deamon has wirted in golang if this have any meaning) I created file in /etc/systemd/system/tcp-server.service . His ...
0
votes
0answers
15 views

Can I start a service with optirun?

I have a laptop with two GPUs (Intel and NVidia) so I have to use Bumblebee (via optirun) to use my NVidia GPU with some applications. I would like a service, which can be found in /etc/init.d, to ...
0
votes
0answers
222 views

Universal Media Server not working

I'm trying to get Universal Media Server to work on a headless Debian 8 home server to stream video to my PS4 and other devices. I followed this tutorial (http://www.slsmk.com/how-to-install-universal-...
5
votes
1answer
952 views

Why doesn't my systemd user unit start at boot?

I'm trying to create a systemd user unit and have it start when the system boots. The service does start manually, however it does not start at boot. From searching the Internet I learned that in ...
0
votes
0answers
43 views

Restart service after boot then enable networking ordering

Problem: Server application when first started upon boot has memory leak. When service is restarted, it will then run without issue. Temporary solution is to: AFTER the OS has completed booting, ...
1
vote
1answer
149 views

Sudo with NOPASSWD and service restart [duplicate]

I have an /etc/sudoers with the following: glens ALL=NOPASSWD:/usr/sbin/service php5-fpm glens ALL=(ALL:ALL) ALL And I'm trying to run the command: sudo /usr/sbin/service php5-fpm restart ...
0
votes
2answers
36 views

Run root program on login

Apache2, SSH, and similar don't seem to work (unless restarted) upon booting, and logging in graphically to device. To make it work, I have to type /etc/init.d/apache2 restart, and do the same for SSH....
0
votes
1answer
26 views

How to enable/disable services with upstart 0.6.7?

I need to disable a service in RHEL, before upgrading it. Stopping it does not do the trick, because it uses the respawn stanza , which causes it to start immediately after I stop it. The method in ...
1
vote
1answer
36 views

Keeping an SSH tunnel up while my system is up - init.d service or something else?

I use an SSH tunnel on my host computer daily; but so far I've just been manually using some terminal just for that: Entering ssh -D 5001 user@some.where.com at the command line, and redoing it if ...
4
votes
1answer
95 views

How do you disable a service in systemd?

I know what the command is sytemctl disable NAME but I have a question about the NAME parameter. For example the bluetooth service[1] on Fedora 21. For the NAME parameter should you put bluetooth or ...
2
votes
1answer
3k views

What does status “active (exited)” mean for a (custom) service?

I'm working with a custom service which essentially runs a web server, called thisismywebserver. Currently it's not working (ie I get an "Unable to Connect" error trying to access a page). When I ...
3
votes
0answers
44 views

Symlink as WorkingDirectory in systemd service

I have a service with WorkingDirectory=/srv/ctr/current which is a symlink. It seems the service doesn't pick up changes in the symlink when restarted. The error log reports /srv/ctr/releases/69 as ...
2
votes
1answer
124 views

Unable to start ZNC as a service

Firstly, this is the exact same question as found here, but the given solutions did not work in my situation. Background I am running a CentOS 6 VPS and I want to run a ZNC bouncer on it. I ...
2
votes
1answer
949 views

systemd service and multiple haproxy instances

I have a requirement to run a couple of instances of haproxy and I need to update the haproxy.service file to add the second command / instance. Google lead me to adding the second command on the same ...
4
votes
4answers
271 views

Does a service restart send a HUP?

I have noticed that doing a service restart with something like: service sshd restart is very similar to doing something like: pkill -HUP sshd However the pkill would close my ssh session where ...
2
votes
1answer
48 views

How does kill by pgid affect new subprocesses?

I have a very complicated application, which has its init-script and main service runs as a daemon. I want to stop it fast and gracefully, so I used this in stop() function: group_id=$(ps -o pgid= $(...
1
vote
1answer
33 views

Keeping services on EC2 alive

I'm using a MySQL database and Apache server with an AWS EC2 instance running AWS Linux. I start them both using the service command, but I am not familiar with any other tool that would come pre-...
0
votes
1answer
2k views

Unable to start vncserver in RHEL 7

Following the instructions from Redhat documentation (TigerVNC), I've installed VNCserver in RHEL 7. When I try to start the vncserver service, it returns an error #systemctl start vncserver@:1....
0
votes
0answers
152 views

Can´t run COUCHDB service

I am trying to run couchdb service, but after type # service couchdb start I get answer: Failed to start couchdb.service: Unit couchdb.service failed to load. No such file or directory. I've ...
2
votes
3answers
160 views

Execute a command after 10 minutes of boot

I have a CentOS Server. When the server Boots up I want to execute a command after 10 minutes of booting up. How can I do so? $ /usr/bin/curl -u admin:$PASSWORD -i -H 'X-Requested-By: ambari' -X PUT -...
1
vote
3answers
2k views

How do I create a service for a shell script so I can start and stop it like a daemon?

I'm using CentOS 7 what my aim is to create a cron for every five seconds but as I researched we can use cron only for a minute so what I am doing now is I have created a shell file. hit.sh while ...
1
vote
1answer
241 views

Monitoring systemd service activation times

I'd like to be able to retrieve from systemd how much time the last activation of a oneshot service took. I thought about the following options, but they didn't manage to convince me completely : ...
0
votes
0answers
34 views

I have error in postgresql service

Today I would like to test my metasploit. So, first I run service postgresql start, so here problems: root@localhost:/# service postgresql start [....] Starting PostgreSQL 9.1 database server: main [...
0
votes
1answer
392 views

How to run ipython notebook as a service

I have ipython notebook running properly but I'd like to run it as a service (start, stop, restart) so that I don't have to start it manually every time I login with SSH. How can I do that?
0
votes
0answers
124 views

How to start xend service automatically on boot?

I am trying to auto-start xend and xendomain service automatically on boot as soon as I log into XEN-dom0 (on Ubuntu server 12.04 x64) so that when I type : sudo xm list the hypervisor lists me all ...
3
votes
0answers
97 views

Memory consumption over variable period of time

There are a number of questions on this StackExchange about memory consumption, notably: How to check which process is using most memory How to display top results sorted by memory usage in real ...
0
votes
1answer
342 views

nginx stop is not working and nginx is creating new process after killing processes

nginx version: nginx/1.8.0 I am trying to stop nginx with the following command /etc/init.d/nginx stop, however it is not returning any successful message. Then I tried to view the nginx processes ...
0
votes
0answers
37 views

Config folder for a service

Context When running the Deluge daemon (deluged) as a service, you can specify an option to where the config folder will be created. The deluge-user I've created, is a system account, and therefore ...
0
votes
1answer
82 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
226 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 ...
1
vote
1answer
43 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 all ...
1
vote
1answer
34 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 ...
2
votes
1answer
149 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 ...
2
votes
0answers
135 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 ...
1
vote
3answers
120 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
2answers
120 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 ...
0
votes
1answer
139 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 ...
0
votes
1answer
435 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 ...
4
votes
2answers
2k 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 ...
3
votes
0answers
743 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
76 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 ...
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
113 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
85 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
82 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
314 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
120 views

How to restart certain Linux services

What are the commands to restart the following services on CentOS? cpdavd cpsrvd leechprot spamd tailwatch
1
vote
1answer
3k 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 ...