Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [services]

A Linux service is an application (or set of applications) that runs in the background waiting to be used, or carrying out essential tasks.

1
vote
1answer
15 views

templated service dependency on systemd

I have some templated Base Services. Let's call them basis@foo.service, basis@bar.service (and optionally more basis@xyz.service) . And I have a more complex service which should be started after all ...
0
votes
1answer
22 views

Why I don't have a /usr/lib/systemd/system folder?

I am trying to use systemd for the first time after giving up on supervisord. Following this documentation for airflow here, my understanding is that I need to move the .service files to /usr/lib/...
0
votes
0answers
13 views

CentOS not recognizing Rackspace verbiage for saving iptables

I'm getting back into the Linux game and have installed CentOS server and am stalled with saving the iptables for Apache operation. The Rackspace guide tells me how to use the service command to save ...
3
votes
2answers
65 views

redhat 7 + How to stop systemctl service permanent

we are install some service on redhat 7 but for now we no need the service application anymore is it possible to disable the start of the service? I not mean to disable it on the next reboot what ...
1
vote
0answers
16 views

ExecStartPre= with Restart=always with systemD

I've a systemd service with Restart=always, ExecStartPre=/bin/... and ExecStart= All of the Process exit after about 1 second with exit code 0. Which process is started again? ExecStartPre and ...
2
votes
1answer
46 views

How can I find out information about a service?

$ nmap -p0-65535 192.168.0.142 Starting Nmap 7.60 ( https://nmap.org ) at 2019-03-10 17:53 EDT Nmap scan report for ocean (192.168.0.142) Host is up (0.000031s latency). Not shown: 65531 closed ports ...
-5
votes
0answers
37 views

Are the services on my laptop secured? [closed]

I was cautious about the security of the services (configured by default, I am not an expert and don't dare to reconfigure them) on my laptops (both running Lubuntu 18.04). I have used iptable to ...
5
votes
3answers
515 views

Difference between `nmap local-IP-address` and `nmap localhost`

The following IP address is for my network interface $ nmap 192.168.0.142 Starting Nmap 7.60 ( https://nmap.org ) at 2019-03-09 11:33 EST Nmap scan report for ocean (192.168.0.142) Host is up (0....
2
votes
0answers
14 views

systemctl echos prints interference from other unit

I am working on a service which runs just fine. My poblem (or rather a mild annoyance) is that when I run systemctl status foo.service or journalctl -u foo.service I will occasionally see error ...
1
vote
0answers
38 views

How to make a binary start itself after it's first run? [closed]

I want to automatically create some sort of "service" that does only very basic things (start a binary on system start) and it's supposed to work on most Linux distributions out there. I want to ...
0
votes
2answers
69 views

Debian Systemd doesn't start any service [on hold]

I don't know how nor why but my Debian systemd stopped starting any service, particularly sshd service so I can't access to my machine. It's a headless machine without monitor and moreover I can't ...
3
votes
2answers
69 views

Recommended way of checking only one running service?

I am writing a shell script to check if mongod server is running and if not, to start it. To acheive that I am using the below command: systemctl is-active --quiet mongod This does the job as ...
1
vote
0answers
35 views

Systemd Unit File - WantedBy and After

I have a question regarding making my own unit (service) file for Systemd. I've read the documentation and had some questions. After searching around, I found this very helpful answer that gives some ...
4
votes
1answer
296 views

systemd service won't start nodejs

I'm trying to get my nodejs app to start on boot. It runs fine if I start it from the command line as the user odroid. Here is my service file: [Unit] Description=ProImage After=network.target mysql....
0
votes
0answers
13 views

how to control huge services on machines [duplicate]

we created on our machines the service - presto_db this service installed on 328 machines as all know in order to know the status of the service we can acccess to each machine and by systemctl know ...
0
votes
1answer
40 views

Disabled nginx service, But the IP is still accessible

I have disabled nginx.service and have restarted my Ubuntu 18.04. $ systemctl list-unit-files | grep ngin nginx.service disabled $ systemctl is-active nginx.service inactive But ...
1
vote
1answer
22 views

Slackware 14.2 - Turn on the auditd daemon

I want to turn on / enable the auditd daemon to record system events in Slackware 14.2. I could not see the daemon auditd, when I run the code below: ls /etc/rc*.d | grep "auditd" It means it was ...
0
votes
1answer
22 views

Running a service on CentOS as a system user other than root

I've created a system user jackett (useradd -r jackett) and I'm trying to run a systemd service under it on CentOS 7. Service File: [Unit] Description=Jackett Daemon After=network-online.target [...
0
votes
1answer
37 views

What happens to the output of a service?

When I run a service from a terminal it shows many logs/errors/successes in output. But if I run it with same command options as a service (under systemd on Debian Linux) it does not show any terminal ...
0
votes
0answers
9 views

Is there a generic DBUS subscription service

I am looking for "something" that runs scripts/programs in my user context as a reaction to signals seen on the system(!) DBus. I'd imagine the best solution looking and working a lot like cron: ...
3
votes
2answers
45 views

Can we specify service name and transport protocol in a URL?

A URL has its own syntax. In a URL, we can specify either hostname or IP address. Similarly, while we can specify port number, can we specify service name instead of port number ? If we can't, how ...
6
votes
3answers
535 views

Is there a single program version of inetd?

inetd can make several programs with stdin input and stdout output work like programs with input and output from and to sockets, and monitor their listening sockets simultaneously. Is there a ...
1
vote
1answer
101 views

systemd: restart service if any of the forked processes are killed

Is there any way of auto-restart a systemd service if any of its forked processes are killed? After creating a systemd unit file for Control-M [Unit] After = network-online.target After ...
2
votes
1answer
42 views

Is there a daemon which resolves a service name to a port?

A DNS server resolves a hostname to an IP address. A program can resolve a hostname to an IP address by calling getaddrinfo() which in turn asks a DNS server to do the resolution, if I am correct. In ...
0
votes
1answer
64 views

Which field(s) can be a key in the table in /etc/services?

In /etc/services, a service name can have multiple (transport protocol, port number) pairs. For example, The Linux Programming Interface says: The /etc/services file consists of lines containing ...
0
votes
0answers
19 views

Better use ACL or Capability to let users start a service?

My question is openned to other propositions too. An install sequence puts a binary in the directories (say bin1 in PATH_TO_BIN1). It configures a service in /etc/init.d The service has to be ...
0
votes
3answers
62 views

How do I get systemd to correctly manage a script with background processes?

I have a shell script which runs three programs in the background, a few in the foreground and then trap and wait, and I have set up a unit file so systemd can start it and restart it if it fails. I'...
2
votes
0answers
47 views

How do I make systemd sockets close when service is stopped?

I'm currently trying to make a systemd service with two Fifo sockets. These sockets map to stdout and stdin of the application. I'm currently using the following configuration files. foo.service [...
1
vote
1answer
49 views

systemd service file for a node.js app is not working when pointed at a shell script

Before I mention my problem, I have already checked in most of the questions related to systemd, but I couldn't find a convincing answer. I wrote a nodejs app that runs a server. const express = ...
0
votes
0answers
23 views

How come this service is not running? Why is it exiting? (Docker CentOS container)

I am trying to install Tenable Security Center in a CentOS container upon a base install of Debian. Inside my container, the following returns when inspecting SecurityCenter service (suppose to ...
0
votes
1answer
26 views

Why is my service running as root

I have an old laptop hooked up to my router running as linux box. I installed qbittorrent to run as a remote torrent box (to download linux distros of course) and I created a new user, "qbuser" for it ...
0
votes
0answers
17 views

How to manage a dbus service which is provided by multiple applications?

On my system (debian stretch) There is a folder full of files which all define different dbus services, provided by different appliactions: /usr/share/dbus-1/services The files there are named like ...
1
vote
2answers
60 views

Pipe output of script through Exec in systemd service?

So I'm trying to set up a systemd service in order to launch a set of files on a daily basis (different types of journals) from directories based off the date. For example a todo list for today would ...
0
votes
0answers
39 views

stop the firewalld.service + ERROR: ZONE_ALREADY_SET: trusted

we want to stop the firewalld.service but we get - ERROR: ZONE_ALREADY_SET: trusted so is it possible to erase what is configured in firewall and stop again we have OS - redhat - version 7.3 [root@...
1
vote
1answer
160 views

How to limit a systemd service to “play nice” with the CPU?

I have a systemd service (a CI runner) that tends to bog the system down with very CPU intensive jobs. I caught the load average flying over 100 just now and want to put a stop to that nonsense. ...
0
votes
1answer
63 views

service status return string

When checking status of a service running on Linux (Ubuntu) machine, I am used to the following output: service status nginx * nginx is running After recent nginx upgrade, the output of the same ...
1
vote
0answers
47 views

SAMBA/MiniDLNA: Use RAM as working/Cache Directory?

As a follow-up to this question: I want to reduce High I/O Load on Raspberry Pi when streaming with MiniDLNA from an SSHFS/NFS Share. At 'iotop' I could see MiniDLNA/Samba uses over 99% Disk I/O ...
1
vote
1answer
43 views

Mount SSHFS to tmpfs/Memory/MiniDLNA just write to RAM

to reduce the I/O on my low end Raspberry Pi, I want to set my SSHFS/NFS to be mounted in RAM. MiniDLNA then will stream it to my Network. As I can see in IOtop, Minidlna uses 99% of IO usage, and I ...
1
vote
1answer
38 views

how to know which service restarted every one min

from the /var/log/message we see the following Jan 08 06:01:01 kafka1 systemd: Started Session 37735 of user root. Jan 08 06:01:01 kafka1 systemd: Starting Session 37735 of user root. how to know ...
3
votes
0answers
324 views

Failed to get properties: No such interface '' in Ubuntu 16.04.3 LTS

I Created this Unit file tdk-api.service in the /etc/systemd/system folder with this permissions: -rwxr-xr-x with this content: [Unit] Description = tdk API daemon [Service] Type = simple ExecStart ...
7
votes
1answer
537 views

Is it safe to disable apt-daily.service?

I use Linux Mint 19.1 Cinnamon. I found this question indirectly relevant: How to disable `apt-daily.service` on Ubuntu cloud VM image? My question is: Is it safe to disable apt-daily.service? ...
2
votes
1answer
310 views

systemd status=127 for /usr/bin/install when trying to start MariaDB

I just upgraded my MariaDB installation to 10.2. When I now try to start the service, it tells me it failed an checking the status shows me this rather strange message: root@server # systemctl status ...
1
vote
2answers
272 views

How do I configure my Amazon Linux service to auto-restart if it fails?

I'm using Amazon Linux. I have a script to start and stop a service, written in bash, located at /etc/init.d/wildfly At the various run levels, I have symlinks to ensure the script starts and stops,...
0
votes
0answers
45 views

how to take affect the seting on temporary files ( /tmp )

subject - new settings retarding temporary files ( redhat 7.2 ) we set new values on the following configuration files , in order to minimize /tmp capacity in file: /lib/systemd/system/systemd-...
1
vote
1answer
87 views

how to manage cleaning of /tmp better on hadoop machines

As all know the content of /tmp should be deleted after some time. In my case we have machines ( redhat version 7.2 ) that are configured as following. As we can see the service that is triggered ...
4
votes
2answers
498 views

Linux + files & folders cleanup under /tmp

On all my Red Hat Linux machines version 7.2 we saw that systemd-tmpfiles-clean.service is inactive: systemctl status systemd-tmpfiles-clean.service ● systemd-tmpfiles-clean.service - Cleanup of ...
3
votes
3answers
483 views

What is the difference between “init” and “service manager”?

From When the operating system shuts down, how does a service manager know that it should sends SIGTERM and SIGKILL to its services? systemd IS BOTH the init and service manager What is the ...
1
vote
1answer
70 views

When the operating system shuts down, how does a service manager know that it should sends SIGTERM and SIGKILL to its services?

Reading one of Stephen's excellent replies, When the operating system shuts down, processes are shut down using SIGTERM and SIGKILL, but those signals don’t come from the kernel (or not directly — ...
0
votes
1answer
58 views

Node service Active (running) but unavailable

I have just managed to get my service status active via the help of yourselves, however it still appears that the node service is not actually running. So put simply, I know my node app is running, ...
0
votes
0answers
533 views

service: Start request repeated too quickly. (code=exited, status=127)

I am simply trying to start my node application as a service I am pointing to the server.js file and have that set as executable. I would like to have this node app restarting on server reboot and ...