Stack Exchange Network

Stack Exchange network consists of 174 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
25 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
33 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
33 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
25 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
34 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 ...
2
votes
0answers
68 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
300 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
161 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
93 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
30 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
56 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
418 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
262 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
60 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
31 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
151 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 ...
-2
votes
1answer
173 views

Why is SSH, Active: inactive (dead)? [closed]

I am trying to run sshd. When I check its status, I am presented with this: root@mini2-game1-30001:~# /etc/init.d/ssh status * ssh.service - OpenBSD Secure Shell server Loaded: loaded (/lib/...
0
votes
1answer
55 views

Linux Mint 19.1 BETA service management? [closed]

How to figure which system Linux Mint 19.1 BETA is? sysv? upstart? And how to manage i.e. enable/disable services, start/stop? I had problems with 17.3 because it was using both and couldn't manage ...
0
votes
1answer
30 views

chkconfig modification dosen't takes effect

I use CentOS release 6.5 (Final) and I would like that wpa_supplicant service start after network service. When I go to /etc/rc5.d and I type ls command, I can see : K84wpa_supplicant -> ../init.d/...
0
votes
3answers
53 views

remove dots from value

I am trying to write a script that shows me if a service is running or not. command: service ntpd status | awk '{print $5}' output: running... how can i remove those dots? or is there a better way to ...
0
votes
0answers
68 views

Using systemd service to lock computer on suspend

I need to lock the screen on latop lid close. I am trying to find a solution to locking my screen using i3lock without xss-lock after doing a bit of research I think the best way to approach this is ...
1
vote
1answer
42 views

Why can't a service startup at boot

I want to use systemd to make a service startup at boot. However I get the message saying that the service is inactive(dead): root@mdchost:/lib/systemd/system# systemctl status ...
0
votes
1answer
65 views

How to close nc port in Debian 9?

I am struggling to close these ports which seem to be backdoors -- or at least I have never opened and used them. How can I close or shutdown nc and close these ports? netstat -lntup | grep nc ps-...
0
votes
0answers
24 views

Service to mount USB cannot mount USB

I have a small watcher I am deploying to detect when a certain USB stick is inserted on SLED 11 (Suse) terminals. It should then mount that stick and read some files on that stick. Problem is - I ...
1
vote
2answers
45 views

Arch Linux Systemd wont detect hibernate events [closed]

I currently have a system service setup to lock my laptop every time it hibernates, in /etc/systemd/logind.conf is have HandleLidSwitch=hibernate but for some reason my service is never run also ...
0
votes
2answers
47 views

Why is my service-unit-file a file, but others are a directory?

I created a service-unit to run apache-httpd and it is working, but I am concerned that my service-unit configuration-file is a file, but the other items in the directory (/etc/systemd/system) are all ...
0
votes
1answer
42 views

Getting error when stopping auditd

I have recently made changes to my audit.rules file on a 32bit RHEL 6.9 machine and I know that since the end of the file has -e 2 to make the file immutable a reboot is required for the new rules to ...
0
votes
1answer
64 views

How to prevent this service from starting at boot

This question is different from the possible candidate since here I am asking how to remove the service at startup I am using a Seeed ReSpeaker Core v2.0 board. I would like to use the UART ...
6
votes
1answer
481 views

what is rc service (or rc.service)?

running $sudo systemctl status rc in my Ubuntu v18.04 I notices there is such a service: ● rc.service Loaded: masked (/dev/null; bad) Active: inactive (dead) can anyone tell me what it does?
1
vote
0answers
58 views

How to execute sh script using system service on Linux (rhel 7) [closed]

I have linux script that starts up my service: /home/MyApp/MyAppStart.sh java -jar -Dspring.profiles.active=dev $home/MyApp/MyApp.jar /tmp 2>> /dev/null >> /dev/null & echo $! > /...
1
vote
0answers
42 views

How to use service to start/stop app with non-root access?

RHEL 7.5 Currently installed an application as root in /app. As part of administration, application will start/stop using /sbin/chkconfig & /sbin/service utilities All the application binaries ...
0
votes
0answers
54 views

Does “### BEGIN INIT INFO” section of service scripts have any effect in Centos?

I am testing under: Centos 6.8 If I do man chkconfig there is a section saying the following: chkconfig also supports LSB-style init stanzas, and will apply them in preference to "chkconfig:" ...
0
votes
1answer
64 views

How to start weblogic service with another user? [closed]

First I need to start weblogic service with test user but I need the process owner to be weblogic not the test user. Second thing is I have to start weblogic with nohup and put it in backbground like ...
0
votes
0answers
116 views

Unrecognised service in /etc/init.d/ despite 755 permissions, when calling from a script

I have a service in /etc/init.d with 755 permission. When run directly with sudo, this service runs fine. When run by a user, service gives /etc/init.d/myservice: unrecognized service Also when ...
1
vote
1answer
1k views

systemd “status=203/EXEC” error when creating new service

I've created a new service for a Python script that works when running standalone but gives errors below when run through systemd : Oct 02 12:17:09 raspberrypi systemd[1]: Started Read pressure And ...
0
votes
1answer
83 views

Systemd custom service doesn't read PATH

I am trying to run a Node.js app as a service in Debian 9. So, following some tutorials, I've made a service like that. [Unit] Description=bumer API Http Server [Service] PIDFile=/tmp/bumer-service....
-1
votes
0answers
32 views

How to start and stop service from browser

I made a nodejs app and this app should run on server forever, but sometimes we need to start and stop it. So I want to make a webpage to access the output of the app's console and start & stop ...
0
votes
2answers
766 views

Service command not found cron

I need to start the icecast2 service on startup. To to make it run on boot, I added to crontab (root) the following line: @reboot service icecast2 start >/home/pi/logs/icecast2.log 2>&1 ...
0
votes
1answer
237 views

dnsmasq not working after reboot

After rebooting, dnsmasq service is running, but does not respond to remote requests (trying using "dig @10.0.0.1 stackexchange.com" from another machine). The log looks good in my opinion: Aug 11 17:...
1
vote
2answers
46 views

Opening a file automatically on boot on Raspberry Pi3 b?

I want to have a text file I created on LibreOffice Writer and saved in documents open automatically when I boot my raspberry pi. I know there is this https://www.raspberrypi.org/documentation/linux/...
1
vote
0answers
189 views

Creating a service in Alpine Linux to run Java application

I would like to deploy a spring boot application into a docker container. I had created the base image using Alpine Linux. My old configuration runs a service on Red Hat under this path /etc/systemd/...
1
vote
0answers
35 views

Is there a way to run a program at startup and in the background without root access?

I'm trying to have it so that my program is able to run at startup and in the background without having the user to be root. Ideally this would happen at the installation of the program and not using ...
0
votes
1answer
169 views

Is there a difference between running a program as a daemon and using nohup with & to run the program?

I'm trying to run my program as a daemon but the way I am doing it currently requires root access. I was wondering if I could use the nohup command with & to push it to the background instead of ...
-1
votes
1answer
64 views

How should I enable system services to start on demand?

I rarely use virtualbox [on Kubuntu FWIW], it has two system services that load vboxdrv and virtualbox-guest-utils. Can I set these services so they don't load on boot but do load on demand, or do I ...
0
votes
1answer
491 views

Failed to start The Apache HTTP Server - Unit apache2.service has failed

I recently installed Apache2 via sudo apt install apache2 but it doesn't seem to be working right. I get this error when I try to restart the service using sudo /etc/init.d/apache2 restart. I'm using ...
0
votes
0answers
39 views

Systemctl tampering made a mess

I started to study networking and linux in general recently. I have installed noip2, and i wanted to start it automatically on startup. I made a .service file in the systemd/system directory, and I ...
0
votes
1answer
94 views

How to tell systemd to stop restarting service? [duplicate]

Is there a possibility to tell systemd to not restart a service? Or force systemd to restart a service maximum 3 times. If after 3 restarts service still needs to be restarted then systemd stops this ...
2
votes
1answer
72 views

Is general (POSIX) shell language allowed in /etc/sysconfig/* scripts? Or are there restrictions?

In /etc/sysconfig/* scripts one can have ordinary name=value assignments, of course. But these files are interpreted by . from a shell, aren't they? Are there any restrictions upon the shell ...
1
vote
1answer
52 views

Can a system script to control a systemd user service?

I'm trying to write a "system sleep" script for systemd-suspend.service, to shutdown a user service before suspend (as it blocks suspending the kernel) and restart it after the system resumes. The ...
1
vote
0answers
19 views

Regulating user-daemons from listening on unprivileged ports (preventing server spoofing)?

If I have a port >1024 but that I want to reserve to one executable how can I ensure that no other executable can open and listen to a socket on that port? /usr/bin/foo_srv -p 8080 /usr/bin/bar_srv -...