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.

0
votes
1answer
28 views

Is there an application to watch changes in auto starting apps and services?

I'm thinking of developing an application to watch changes for auto starting applications and service that would notify when: A service state change (enabled/disabled/added/removed) An application ...
2
votes
1answer
40 views

auto mount by service + service not mount the folder automatically

we create the following service on redhat version 7.2 more nfsshare.mount [Unit] Description=nfs mount script Requires=network-online.target After=network-online.service [Mount] What=...
0
votes
1answer
25 views

Automount nfs on redhat 7.2 not works

I have the following nfd share folder on my linux client ( redhat 7.2 ) master1:/nfs 41932800 6601728 35331072 16% /nfsshare we decided to use the service auto fs in case this share ...
0
votes
1answer
41 views

How to fix “.service: Start request repeated too quickly.” on custom service?

I'm learning how to create services with systemd. I get this error: .service: Start request repeated too quickly. I can't start the service any more; it was working yesterday. What am I doing wrong? ...
0
votes
0answers
12 views

What are the defined paths for systemctl to find new services [duplicate]

I've been working with services but have had trouble searching the docs. A co-worker explained me that I should create my service file under /lib/systemd/system/example.service, then enable it with # ...
1
vote
2answers
33 views

How best to start my systemd service to run multiple apps

I have a one-shot service that calls a script in /usr/ Here my .service file: [Unit] Description = Start apps After = network.target [Service] Type=simple ExecStart=/usr/start_apps.sh [Install] ...
0
votes
1answer
26 views

Cannot edit crontab from service

I'd like to schedule a daily autoshutdown via sudo service autoshutdown start or either abort it via sudo service autoshutdown stop. /etc/systemd/system/autoshutdown.service [Unit] Description=...
0
votes
0answers
9 views

Conditionally run command in init.d service script stop() on shutdown/reboot in CentOS6

I have a service script in CentOS 6.10 that needs to touch a file when service myservice stop is called by the user or process, but not when stop() in the script is invoked by shutdown or reboot by ...
0
votes
0answers
24 views

How to list all services (daemons) on a Unix system that can be started by current user, but that will run as root?

How to list all services (daemons) on a Unix system that can be started by current user, but that will run as root? I'm studying cyber security and plays with capture-the-flag machines to enhance my ...
1
vote
0answers
21 views

Systemd service - custom operation

I have a LSB script launching a daemon with commands like start, stop, restart, but also with custom commands, like start-dump. Is it possible to achieve the same result with only a Systemd service ...
0
votes
0answers
45 views

Start a screen with minecraft server after restart?

I am trying to have a minecraft server auto start on a screen after the server reboot. Currently using CentOS 7. Here's my minecraft.service i put in systemd. [Unit] Description=Start Minecraft After=...
0
votes
1answer
21 views

systemd Restart is not working?

I have the following service. /etc/systemd/system/detectwifi.service [Unit] Description=wifi detect automation Requires=wpa_supplicant.service After=wpa_supplicant.service [Service] Type=simple ...
0
votes
0answers
18 views

Trying to start service B when service A is started in systemd

process_server.service: [Unit] Description=process server After=network.target Wants=process_server_helper.service [Service] Type=simple ExecStart=/opt/process_server/server_start.sh ExecStop=/...
2
votes
0answers
34 views

systemd : changing locale without rebooting

On a Debian Stretch system, when reconfiguring locales (dpkg-reconfigure locales as well as using localectl) systemd keeps running with the boot setting. Therefore services launched with systemctl ...
1
vote
0answers
42 views

why service isn't follow the script that defined in ExecStart [duplicate]

We build the following service on redhat machine version 7.2 more king.service [Unit] Description=king Daemon Requires=network.target remote-fs.target After=network.target remote-fs.target [...
1
vote
0answers
16 views

systemd looking for update-rc.d when I try to enable redis service in Ubuntu 14.04

I was trying to install redis from source in Ubuntu 14.04 and Ubuntu 16.04. I did followed everything exactly from this tutorial. Only difference was that my logfile path was /redis/logs/redis-server....
1
vote
1answer
38 views

Script for wrapping an interactive service

On the server that I use we have a systemd service that is responsible for starting/stopping/restarting something but the interaction with the service is designed in an interactive way so for example ...
1
vote
2answers
35 views

Changing the color and text of the status message seen when starting and stopping a service in RHEL 6.4?

How to change the color and text of the message while you start or stop a service?
0
votes
1answer
23 views

Solution for unmaskinig a service on read-only rootfs?

I have an embedded system with a read-only rootfs on which several services are masked. The masking creates a symlink to /dev/null in /etc/systemd/system/. The unmasking tries to remove the symlink ...
0
votes
0answers
14 views

How to enable redis service in Ubuntu 14.04

I am trying to write an ansible role for redis stand-alone server installation. I downloaded the tarball from redis repo, extracted it and ran make commands to install it. Then I made changes in ...
0
votes
1answer
76 views

How to detect if the computer is idle? [closed]

I'm using Linux Mint, and I run the below service with system start up to0 take automatically screenshots, but I need it to stop taking screenshots if the computer is idle, and run again when it is ...
0
votes
0answers
133 views

Unable to restart Polkit service in Centos 7

I am unable to start nscd.service on centos 7 the error is polkit service is not running. Below is error. ** (pkttyagent:27796): WARNING **: Unable to register authentication agent: GDBus.Error:org....
0
votes
0answers
32 views

how to update the log message about failure of service

I configured the service - calc_mem.service as the following Restart=on-failure RestartSec=5 StartLimitInterval=400 StartLimitBurst=3 the configuration above should do the following the service ...
-1
votes
3answers
166 views

systemctl + what is the meaning of Restart=always

I configured the service - calc_mem.service as the following Restart=on-failure RestartSec=5 StartLimitInterval=400 StartLimitBurst=3 the configuration above should do the following from my ...
1
vote
1answer
28 views

Are the services managed by systemd implemented based on sockets?

Are all (or most) of the services managed by systemd (or sysvinit) implemented based on sockets (either internet or unix domain sockets)? I have this question, because I am not sure what the concept "...
-3
votes
3answers
50 views

How to display only names of the file [closed]

How to display only the names of the last 10 services listed in /etc/services?
1
vote
1answer
42 views

What are those “unknown” services listed by nmap?

I run nmap on a Lubuntu machine using its own private IP address. What are those "unknown" services? How can I find them out? Is fuser supposed to find that out? Thanks. $ nmap -p0-65535 192.168....
1
vote
1answer
25 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
114 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
17 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
119 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
34 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 ...
3
votes
1answer
57 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 ...
7
votes
3answers
717 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
16 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
40 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
84 views

Debian Systemd doesn't start any service [closed]

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
74 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 ...
3
votes
0answers
161 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
387 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
58 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
29 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
41 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
40 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
13 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
49 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 ...
7
votes
3answers
558 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
259 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 ...
3
votes
1answer
43 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 ...