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
1 vote
1 answer
26 views

Understanding memory limits in a systemd service: Are they per-process or combined?

I have a systemd service named vcoagent.service running on my Linux system, and I'm trying to understand how memory limits specified for the service (Memory: 300.3M (limit: 500.0M)) apply to the ...
Ackerman Shadow's user avatar
0 votes
0 answers
10 views

Monitorix disable subgraphs

I have a Monitorix service running on my system. By changing y/n values in the graph_enable section I can enable and disable certain graphs, however, there are subgraphs for almost every main graph e....
Maksim's user avatar
  • 91
0 votes
2 answers
17 views

systemd service terminates with error because the script (expectedly) returned

Searched extensively, many questions related but none that I found actually worked. So I have a shell script which I want to automate via a systemd service. The script: #!/usr/bin/env bash SESSION=&...
unsafe_where_true's user avatar
0 votes
1 answer
17 views

When should a service that runs a localhost-binding program be started?

I have a service that runs a program that binds to a localhost port. Right now I'm setting it up this way: [Unit] Wants=network-online.target After=network-online.target [Install] WantedBy=multi-user....
Kyle Richards's user avatar
0 votes
0 answers
46 views

systemd mysteriously shutting down service at midnight

I run OwnTone service as a media server on my headless Ubuntu, and I noticed every other time I want to use the service, it is down and has to be relaunched. Upon more inspection I have found out that ...
retrography's user avatar
0 votes
1 answer
36 views

RHEL service works when starting manually, but won't start automatically when enabled for reboot. (main process exited, code=exited, status=126/n/a)

I created a linux service to start a shell script when the server (re)starts. While testing my server I saw that the service is able to start when I do it manually but won't start when I enable it ...
ansible_usah's user avatar
1 vote
2 answers
39 views

systemd service won't run from network drive

Apologies in advance for any mangling of terminology, syntax, conventions, etc. I'm still a fairly novice Linux user. I am working on Steam Deck running the latest SteamOS (3.5.17). I managed to ...
imfm's user avatar
  • 11
0 votes
1 answer
36 views

systemctl --type=service and systemctl list-unit-files do not show all services

I have wireguard installed on a Manjaro host, and Debian Server host The following commands show wireguard in the results on Manjaro, but nothing on the Debian server, yet the wireguard is definitely ...
Rachel1983's user avatar
0 votes
0 answers
55 views

Launch custom service without sudo on RHEL 8.8

We have created a custom application using .net core 6.0 and the binaries of this application are kept at /usr/bin/IMIC. It is running as a service on RHEL 8.8. The service file IMIC.service is ...
kiran's user avatar
  • 1
1 vote
0 answers
56 views

Ubuntu service - pq: password authentication failed for user "root"

I have an application running on Ubuntu server that's using PostgreSQL. I can run the application's executable (as a non-root user) from the project's directory. I have created a service for this ...
Saurabh's user avatar
  • 111
0 votes
1 answer
86 views

Enabling php-fpm service on FreeBSD

I am in the middle of setting up a FreeBSD system1 with nginx (v1.24.0) and php (v5.6 2), that uses php-fpm to communicate between nginx and php. Because of the age of php v5.6, I had to build it from ...
Peter M's user avatar
  • 227
0 votes
1 answer
115 views

What exactly does it mean for a systemd service to be "activating"?

According to various clauses in the docs, the "activating" state is the transition between inactive states and an active state. So far so obvious. But how exactly is it defined? What ...
Atemu's user avatar
  • 689
0 votes
1 answer
42 views

Does my office/lab server need to be providing these services?

I'm trying to figure out what services my university Ubuntu 22.04 computer needs to provide to other machines. I often ssh into this machine and other computers in my lab use it as an NFS server. I ...
mikemtnbikes's user avatar
1 vote
1 answer
40 views

Ubuntu systemd service with timer is slow

I've set up a systemd timer to trigger a service every minute on Ubuntu 22.04, but I'm encountering an issue where the execution time of the service significantly increases after the first run. The ...
Tihomir Dimov's user avatar
1 vote
1 answer
59 views

Wait for systemd oneshot service before shutdown

I'm trying to setup automatic execution of a process using a systemd timer and service. The problem is that my oneshot service gets immediately killed on shutdown. How can I tell systemd to not kill ...
Schorschii's user avatar
0 votes
1 answer
53 views

Run BeEF as a service in ubuntu 20.04 LTS

I've been learning how to use BeEF recently for pentesting tasks and I was trying to set up a server in the cloud with BeEF installed in it running on the background, like a service, but I couldn't ...
Az JRC's user avatar
  • 1
1 vote
1 answer
57 views

Assign capability to systemd service and specific user

I am working on an embedded system device which basically has root user. I have a systemd service call.service which works fine with root access. The service basically creates a few sockets and then ...
gst's user avatar
  • 141
1 vote
1 answer
59 views

Searching for tool to remotely monitor systemd services

I'm searching for a tool to remotely monitor systemd services. This would be used to monitor an embedded device running Linux 5.15. Access to device would be through network interface. There is access ...
Kalle's user avatar
  • 71
-1 votes
1 answer
48 views

How do I get out of this Loop on Ubunto boot up?

I haven't been able to boot into Ubuntu properly since I installed Da Vinci Resolve. It made me install a bunch of libraries and since then I haven't been able to get in.
Kunal Sharma's user avatar
0 votes
1 answer
44 views

Linux Ubuntu - use .service file to ExecStart with same exact path as with systemctl start

I'm fresh to Linux, so maybe my question will not seem clear. Hope I'll learn enough of Linux in the future, to be more concise. The problem is, we have service (Thingsboard 3.6.1PE) running on our ...
Sernik's user avatar
  • 1
0 votes
0 answers
21 views

Python script automation with systemD - Issues using with nmcli command ( Network Manager)

I am an embedded Electronics Engineer and for 2 two months, I have been developing using a Debian based distribution for one of my clients. I am actually developing a project that handles ...
Gronjus's user avatar
1 vote
1 answer
73 views

su : connect to another user with D-BUS activated [duplicate]

I created a user that run timers and service with systemctl --user. When I try to login via ssh, I have no issue with systemctl --user. But when I connect to this user with su, I have a bus error: me@...
Ricain's user avatar
  • 141
0 votes
0 answers
35 views

Scope of environment variables

I had thought previously, that environment variables are defined at process scope, and if exported, are propagated to child processes as well. So, I wanted to find a single place to define my ...
Eugene Shtoka's user avatar
0 votes
0 answers
83 views

How can i run a ros2 launch file on startup?

I have a python file running the ros2 launch file process = subprocess.Popen(["/opt/ros/humble/bin/ros2", "launch", "blaunch_pkg", "on_startup.launch.py"]) ...
Danana's user avatar
  • 11
0 votes
1 answer
25 views

Service file and Minicom

I have made a service script which runs a script file after reboot and starts after the service [email protected]. The problem is my script file requires some user inputs to be given but the ...
ROSHAN RAJAGOPAL's user avatar
0 votes
0 answers
32 views

systemd service startup order, but only on bootup

My use case is pretty similar to what is described in this question: Lots of custom services, not dependent on each other. On boot, they all start simultaneously and cause a peak in CPU and RAM load. ...
Attila Csipak's user avatar
0 votes
1 answer
85 views

disable wpa_supplicant service

I'am new user in base-void-linux and I need to enable NetworkManager. For that I need to disable dhcpcd and wpa_supplicant services. I need help for how to disable wpa_supplicant service.
linux-user's user avatar
1 vote
0 answers
52 views

Cant get Python program to work as service

I am trying to run a rather simple python program on startup and making it restart by itself. Python program working fine from terminal. Service just gives me a failed Message. sudo systemctl status ...
Sebastian Bätz's user avatar
0 votes
0 answers
71 views

How to change the default notification daemon to xfce4-notifyd in Ubuntu with KDE Plasma Desktop Environment

I wanted to use xfce-like notification so I tried to get rid of Plasma-like notification I have tried renaming, deleting /usr/share/dbus-1/services/org.kde.plasma.Notifications.service file but it ...
Marksonthehost's user avatar
0 votes
1 answer
146 views

Stop service using SSH causes "Control master terminated unexpectedly"

I have two servers running Centos 7 that communicate with each other. In a shell script, I need to stop my custom services running on the other node via ssh. The problem is that occasionally the ...
Amir Hossein Sadati's user avatar
1 vote
1 answer
1k views

Systemd killed my vetcore service: "Deactivated succesfully"

So I created a systemd file for my netcore bash script on Linux. But when I start the service file, systemd keep killing it with the result "service: Deactivated successfully." I tried to ...
RBR's user avatar
  • 11
0 votes
0 answers
50 views

Systemd service not restarting after VM reboot

I have a systemd service with the following unit file [Unit] Description=Custom service After=network.target [Service] ExecStart=/usr/local/bin/my-script Restart=always Environment=FOO=BAR ...
pkaramol's user avatar
  • 2,799
0 votes
0 answers
121 views

Delay restart on failure for systemd service

My systemd service file correctly restarts my executable if it fails with a non-success exit code. My service file contains: SuccessExitStatus=0 129 200 Restart=on-failure Since my executable ...
TSG's user avatar
  • 1,708
0 votes
0 answers
8 views

Allowed and opened port stopped working on GCP compute engine instance

So, I had two instances of the same django application running on ports 8000 and 10001 (both opened on the linux instance and in the gcp firewall). 8000 hosted a testing environment and 10001 hosted a ...
Emil Filipov's user avatar
0 votes
1 answer
39 views

Stay on a port listening to understand why it closes with which error

I should listen (I don't know) on a certain port, in this case the 8080, to understand why it closes and if so with what error. I have a nodejs server running on the 8080, but I can't figure out why ...
Paul's user avatar
  • 101
0 votes
1 answer
25 views

Service setgui running as nobody

I am having a weird issue with one of my services that I’ve setup to run as an AD user and user group using parameters in the conf file, setuid and setgui. When I run the service with setuid only ...
Casper Netherlands's user avatar
0 votes
1 answer
1k views

Error: could not open `user_jvm_args.txt`

This is my first time making a bash script into a service and I'm running into an error where the service fails because it can't open a text file that is used for java arguments (user_jvm_args.txt). I ...
EChumley1310's user avatar
0 votes
1 answer
24 views

How to check running output for a process which is not being explicitly logged?

One of our machines is running geth ( ethereum blockchain client ) ideally, to check the program output, we will have something like this; geth --datadir ./myDataDir --networkid 1114 console 2>> ...
Muhammad Yasir's user avatar
0 votes
1 answer
183 views

Restart=no is not working in systemd for Oneshot type

I have one service which is Type=oneshot. Some services depend on this service using Wants and Require. As per the systemd man page, Restart=no is the default and the service won't be restarted even ...
ragnar_viking's user avatar
0 votes
0 answers
327 views

Why podman stats and systemd status show different memory usage?

Initially, I tried to avoid memory leaks of lxml with spawning multiprocesses and terminate it but I failed. So before I try a new idea, I set OOMPolicy=stop, MemoryMax=2G in the service file. My ...
Constantin Hong's user avatar
0 votes
0 answers
253 views

How do I correctly set up systemd-time-wait-sync.service

I have to set up a a timer with onCalendar=*:30 on a Raspberry Pi with no internet connection but using instead a battery powered RTC. To sync my RTC I followed this post. On the manual page of ...
Pa Dalton's user avatar
0 votes
1 answer
44 views

Is it possible to tell if a file is associated with a service, or alternatively what config files are associated with a service?

Suppose I have a file, /etc/foo.conf and I'd like to know what service actually uses /etc/foo.conf. Or, alternatively, assume I have a service named foo.service and I would like to know what ...
Franz Kafka's user avatar
0 votes
0 answers
96 views

Podman Integration

As I am trying to integrate podman in yocto build system as already done in docker. For docker i haven't faced any issues just followed these steps: https://elinux.org/images/b/b4/03_integrating-...
Deepika's user avatar
0 votes
1 answer
87 views

Systemd service timer not working

I've made a systemd service with a timer that should run the script every hour, but it's not running every hour. % cat /etc/systemd/system/myservice.service [Unit] Description=Run script after network ...
paradroid's user avatar
  • 1,203
0 votes
0 answers
612 views

Why did my service become masked?

I've provisioned a bunch of RPis with a systemd service that runs an instance of chromium-browser in kiosk mode, but on a few seemingly random devices it doesn't run. I checked the status just by ...
A__'s user avatar
  • 101
1 vote
0 answers
31 views

udev: renaming nic name may occur even after multi-user.target begin?

I am investigating a Linux server(CentOS7.9 kernel 5.4.179-1.el7.elrepo.x86_64) for a weird issue: There is a pretty normal service: # /etc/systemd/system/test.service [Unit] Description=tet Before=...
osexp2000's user avatar
  • 522
1 vote
2 answers
614 views

Running a systemd service at boot with ALSA

I am trying to launch a python systemd service that uses ALSA sound when the Raspberry Pi boots. Here is the Talkie.service file in /etc/systemd/system: Description=bondz-client # Requires=sys-devices-...
16ar's user avatar
  • 13
0 votes
0 answers
67 views

Script for connecting to bluetooth device not working properly

I "copied" a bash script from a video that turns on my Bluetooth and connects to my Bluetooth headphones #!/bin/bash systemctl enable bluetooth.service systemctl start bluetooth.service ...
hmm-m-m's user avatar
1 vote
2 answers
169 views

How to avoid systemd periodic realtime timer running at boot

I have a realtime timer with Persistent=false running immediately after boot although my objective is to run it periodically! I saw it is a rather common question but none of the answers I found in ...
Pa Dalton's user avatar
0 votes
2 answers
72 views

Create automatically file.service in /etc/systemd/system directory

I what to run jar as service in linux, All the guides showed that you need to create a file.service in the /etc/systemd/system folder, I want to write a script with a command that will create the file ...
user14490920's user avatar

1
2 3 4 5
22