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.

Filter by
Sorted by
Tagged with
0
votes
1answer
24 views

Ignore file not found error in a environmentFile missing in a systemd

I have a service file that runs off Red Hat 7 and I'm reading values from a conf file with EnvironmentFile. I need to how "catch" (and ignore) the error that the file may not exist, and ...
1
vote
4answers
30 views

What user have I to use to enable this service on a CentOS7 machine using systemctl enable command?

I am not a sysadministrator (I am a software developer), this time I have to install some agents on some CentOS machines in order to be monitored by Wazuh (a SIEM software). I have the following doubt....
0
votes
0answers
10 views

Run scripts before and after sleep

I need to run some scripts before and after my system (Fedora 33) goes into sleep mode. So far I tried two different approaches and they both have failed. First was to place the commands and script ...
4
votes
1answer
59 views

python script fails to start in screen, in systemd. no error

I wrote a python script that I would like to launch inside of screen screen -d -m /usr/bin/python3 /home/kermit/active-climateMngr.py which works just fine at the command line but when I try to begin ...
1
vote
0answers
18 views

temporarily stop some service while other service is starting

I have two services, one core service and one service that essentially overwatches the core service. Their lifetimes are specified as follows: the overwatch service should be started when the core ...
0
votes
1answer
22 views

Failure to restart the Tor service without entering password [closed]

I need to be able to restart the Tor service without password prompt. So, I added the following line into /etc/sudoers: <my_username> ALL = NOPASSWD: /etc/init.d/tor But it fails. Upon ...
1
vote
2answers
32 views

Start a systemd service after specific check returns RC 0

On a boot of a system with systemd there is a service which starts successfully. After a while that service applies a certain configuration to the system. Once that configuration is applied, I'd like ...
0
votes
1answer
38 views

Execute a linux command in a a Enviroment sentence in a service file

I have this .service file. In ExecStart I need to pass some parameters which I figured I could set in the Environment as variables, but first I must obtain them from a .conf file with a grep and a cut....
1
vote
0answers
21 views

How to access a variable in a file from a Linux Service file

I have a Red hat 7 Service file(.service) and i need to access some data in a file, i used to access data from a pom file but now i have to access a conf file, a file that's key and value. Example: ...
2
votes
1answer
14 views

Run a bash shell script on iMac on startup

I have a bash shell script /var/tmp/test.sh that runs on iMac in an infinite while loop. I wish this script to run 24X7 and even when the iMac is rebooted the script should autorun. I want to run the ...
0
votes
0answers
16 views

Systemd service depending on another from a different server

We're dealing with a (vendor-provided) distributed application, that runs on multiple servers. The servers aren't "equal" -- the main one has to be up and running before the secondary ones ...
0
votes
1answer
27 views

Multiple services (dns, dhcp, ldap, nfs, etc) on the same VM or multiple VMs? [closed]

We're migrating our internal network and services and we will be installing new servers (Centos 7 and so). And I wonder if we should install the services in different VMs (we use KVM) or group them (...
-1
votes
1answer
32 views

How to run a continuous python service in Linux? [closed]

Recently I've created a service using python. It contains a while True: that does a service. Given that it is the first time that I offer something like a service and I charge the client I have some ...
0
votes
1answer
27 views

Why does “apachectl restart” work but “apachectl start” does not?

I'm using Ubuntu 18.04. I seem to be unable to restart Apache2 using "sudo apachectl start". I see this ~$ sudo apachectl start Invoking 'systemctl start apache2'. Use 'systemctl status ...
1
vote
0answers
68 views

How to prevent upowerd from being launched

Running DM-Less KDE-Plasma-5.19.5 Under a non-systemd Linux-5.4.80 and dbus-1.12.20 I try to get rid of the upowerd daemon. I understand that upowerd is launched by dbus upon request from whatever ...
2
votes
0answers
40 views

Cannot open file with absolute path in Systemd Service

I have a .service which running my C++ application. My path is absolute path. It works when it is launch via command line but fails to open file when lauch via a systemd service. Output in service is ...
0
votes
0answers
26 views

Run services as user without X (systemctl)

I have a small server running a minimal centos8. I need to create services as a user and would like to use systemctl to do so. I found I can use systemctl --user to create services without root ...
0
votes
0answers
39 views

HAProxy service doesn't fail if restarted with a wrong configuration file

If I restart HAProxy with a wrong configuration file it doesn't fail. [root@myself ~]# service haproxy restart Redirecting to /bin/systemctl restart haproxy.service [root@myself ~]# service haproxy ...
1
vote
1answer
15 views

Pending shutdown stops my ssh login

I have an Ubuntu server in AWS EC2, and created a service to shut down automatically after three hours, in case I forgot to. I added a shutdown -h 180 command to a service that is started on boot. ...
1
vote
1answer
59 views

systemctl status with failed about Failed to parse usec_t value

I get very strange failed errors from systemctl status as - Failed to parse usec_t value example systemctl status loij12.service . . . . Jan 05 16:44:59 master_linux.loij12.com systemd[1]: [/etc/...
2
votes
0answers
23 views

How to configure to stop network-pre.target if my service fails?

I have a service "a.service" that starts on boot before network-pre.target. a.service works fine. I want if a.service fails to start on boot that stop to start network-pre.target. How can I ...
1
vote
2answers
46 views

Why does the systemd service running successfully on CentOS 7 is not working on CentOS 8?

I updated one of my servers from CentOS 7 to CentOS 8. I have a stream server that works with UDP and TCP protocols. I allowed ports. In short, everything is great except systemctl. service name: ...
0
votes
1answer
11 views

dotnet run --ulrs on a systemctl service

I need to run dotnet run --urls https://0.0.0.0:443 to run a dotnet core API, but I want to turn that into a service, right now I have this: sudo nano /etc/systemd/system/mdvAPI.service [Unit] ...
1
vote
1answer
44 views

Run a binary file via systemctl

I have a file named MFBot_Konsole_x86_64 that I downloaded from a website, to run it I just type ./MFBot_Konsole_x86_64. The file location is: /home/rafael/botShakes/ The file is a binary file, for ...
2
votes
1answer
194 views

How can I get distcc compilation to work in a distributed way via a systemd service?

I have two machines, both running Ubuntu 20.04, and I'm trying to compile some C++ code in a distributed way via distcc (version 3.3.3). When I launch the distcc daemon manually on one machine and ...
0
votes
0answers
16 views

jupyterhub permission denied for privkey.pem

I want to setup a jupyterhub on my raspbery pi I followed some tutorial to install it and to use ssl. I also wanted to run the jupyter hub as non-root to add extra security, so I followed this ...
0
votes
2answers
22 views

Apache not showing in /etc/services

I've installed apache2 on a server running Ubuntu 20.04.1 LTS and it's current status is running. Shouldn't I be able to see that service also in the /etc/services file?
4
votes
4answers
2k views

How many services are listening on the target system on all interfaces? (Not on localhost and IPv4 only)

I need to find out how many services are listening to my interfaces (ipv4 only, not localhost) $ ifconfig ens192: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.129.56.137 ...
0
votes
1answer
30 views

Ubuntu “service” command stuck, can't reload services

Using Ubuntu 16.04.6 LTS, it is not possible to call the service command to modify the status of any /etc/init/ services. The command starts but is stuck in execution. The services themselves are ...
0
votes
1answer
20 views

Is there a way I can define my env vars in one place instaed of two?

I'm using Ubuntu 18.04. I would like to define some env vars in a single place that are both accessible system-wide (via a shell) and in my Apache-Python application. In /etc/profile, I have defined ...
0
votes
1answer
23 views

Problem with service created to change network parameter at system start

I have created a script to put the network card to 1G when the system starts. I have created a new service for this but it doesn't works. I execute the start and I get this error and the speed of ...
0
votes
0answers
14 views

Checking if specified jar is running .. if it is running then sending mail from linux machine

I have some jar services running in my machine .. i ran below command there ps aux| grep java this command gave me results .. but now what i want is if any of jar is not running then it should send ...
0
votes
1answer
28 views

Creating a service that runs a python

I'm trying to start a service on a Pi4 by creating a .service file. Here is my contents so far: Unit] Description=NZBHydra2 Daemon Documentation=https://github.com/theotherp/nzbhydra2 After=network....
0
votes
1answer
45 views

enabled systemd service won't start on boot

I have 7 services enabled, 6 of them depend 1 the first one starting and it runs fine. 3 start fine and the other 3 won't start on boot but if I run sudo systemctl start service it runs fine. Can you ...
1
vote
1answer
115 views

run nginx on nixos

What I'm trying to do I've recently set up NixOS on a computer which i want to use as a server for localnet. I want to use nginx as http server. What I've already tried I've put nginx in my /etc/nixos/...
0
votes
1answer
29 views

How to kill the PID of service that configured as Restart=always

Dear friends and colleges , We have service under /etc/systemd/system Service name is calc_live_servers.service Since Restart=always is configured in calc_live_servers.service Then when we kill ...
0
votes
0answers
41 views

How to write in /sys after boot

for my F- and fn-keys to work I need to run this command echo 0 | tee /sys/module/hid_apple/parameters/fnmode after every boot. So i wanted to start it with a crontab, but this somehow does not work ...
0
votes
0answers
24 views

Create systemd service unit in Linux

I want to create a systemd service module in Linux so that I don't have to enter commands at system startup: cd /etc/mautrix-facebook/venv source bin/activate python3 -m mautrix_facebook mautrix-...
1
vote
1answer
31 views

How do I setup an Ubuntu package to start a user service and only start it when the user logs in?

I am trying to setup a service which requires access to X-Windows and DBus. First I tried it as a background application, but that just doesn't work. I use the "auto-log user" feature. Now I ...
0
votes
0answers
8 views

Use a specific port range for regular users

I would like to know if there is any way to set or force certain users to only use one port range, for example user A: from 20000 to 20010 both TCP/UDP, to launch containers or services ( podman/...
0
votes
0answers
29 views

command is not getting executed, if started by service

I have a java programm with an update function. This function simply starts the jar and then stops itself. If i start the programm manually to test the update function, it works just fine. But if i ...
0
votes
1answer
100 views

How can I define the output directory a bundled .NET Core SingleFile published app will be deployed to?

I am deploying a .NET Core Worker Service app in linux, as a systemd daemon/service, as recommended. The .NET Core app is published using the SingleFile property, which generates an all-in-one exe ...
1
vote
1answer
1k views

Systemd service fails with exit-code 2: Start request repeated too quickly

I created a ClamAV on-access scanning systemd service, to be permanent so that I can enable, start and then leave it, without having to touch it again. I can manually start the service, and it works ...
0
votes
0answers
59 views

systemctl service + how to set no limit on service restart

we configured the following service [Unit] Description=air flow Requires=network.target remote-fs.target After=network.target remote-fs.target [Service] Restart=on-failure RestartSec=30 ...
1
vote
1answer
50 views

From where does the service ID come from when using PrivateTmp=true in services?

Configuring a systemd service with PrivateTmp=true leads to the fact that the service uses a private tmp directory. Instead of /tmp such a service will use a directory like that: /tmp/systemd-private-...
0
votes
1answer
60 views

service won't autostart on boot

So I have been trying to autostart a service and I'm getting no where. I've tried autobooting on both Mint 19.3 and 20 and Ubuntu 18.04 for the service lizardfs-chunkserver.service and autostarting ...
12
votes
1answer
878 views

Does Debian actually have a written policy to start services on installation?

Debian packages usually start services right after installing them. This is a well-known phenomenon, given tens of webpages explaining how to disable this behavior. As far as I remember, this has been ...
0
votes
1answer
60 views

Unable to start a service on boot (Linux Mint 19.3)

I'm trying to setup a service to run on startup. I've searched for hours and tried multiple methods but none have been fruitful. My machine is running on linux mint 19.3 The service I'm trying to ...
0
votes
0answers
92 views

Using a watchdog timer to prevent hang on reboot

I have a Raspberry Pi running Raspbian GNU/Linux 10 (buster), which has an onboard watchdog timer. I have configured this with a test script that looks for /tmp/force-reboot.txt, and if that file ...
0
votes
1answer
26 views

Service not starting jar via SH script

I'm trying to run a shell script via a service. This seems to be working fine and the service is able to call the shell script. The issue is when the wiremock_process.sh is called via the service, it ...

1
2 3 4 5
17