Questions tagged [systemd]

Systemd is a system management daemon designed for Linux. Use this tag for *programming questions* using systemd or its libraries. Questions about *configuring the daemon* (including writing unit files) are better directed to Unix & Linux: https://unix.stackexchange.com.

Systemd is a system management daemon designed for Linux and programmed exclusively for the Linux API. For systems using it, it is the first process which is executed in user space during the Linux startup process. Therefore, systemd serves as the root of the user space's process tree.

2384 questions
0
votes
1 answer

What is the limit of the RestartSec time in systemd?

I am trying to find what is the limitation of the RestartSec time in systemd. I know that the default time is 100ms, and I have changed this time in system.config to 60ms and it works but is there limit for how much I can go down in time? Does…
0
votes
1 answer

What difference does specifying the user root make in a systemd service?

Which user is a systemd service run as by default in a centos if no user is explicitly specified? My assumption was that the service would then run as root. However, there seem to be differences in terms of permissions if you explicitly specify…
user5580578
  • 1,134
  • 1
  • 12
  • 28
0
votes
1 answer

Create a systemd service script for multiple module app

I'm currently writing a python app forking with Pyro4 and flask. In order to start up the app I to need : Start pyro4 name server Register my object in the pyro4 name server Start a flask web app to access pyro4 objects I would like to do this…
0
votes
1 answer

How to Start and Stop systemd services through dbus package in nodejs?

I want to control systemd services and daemons through dbus in nodejs each time I want to connect to the system bus and run a command the program hangs in an infinite loop I used node-dbus const dbus = require("dbus"); const someBus =…
Ali Sawari
  • 33
  • 7
0
votes
0 answers

This site can’t be reached - dotnet app - Ubuntu

I am hosting a net6 web app on Ubuntu (Port 80 is opened). My service file: [Unit] Description= companydir .NET Core Web Application [Service] WorkingDirectory=/var/www/companydir ExecStart=/home/ubuntu/.dotnet/dotnet…
DavidJS
  • 417
  • 2
  • 5
  • 16
0
votes
1 answer

How to convert systemv startup scripts to systemd services?

Advice on converting SysVinit file to Systemd services will be helpful. Currently, I am using a systemv init script which will be executed after every boot on my STM32MP1 based Avenger96 board. Now I have to switch to Systemd from SysVinit. But I am…
Preeti
  • 535
  • 1
  • 6
  • 30
0
votes
1 answer

Systemd stucked into ExecStartPre step

I've made a very simple python program which extract the latests news popped in some website and send them to me via Telegram. The program is working perfectly when I am launching the command below in the console : /usr/bin/python3.9…
Maxence Hermand
  • 105
  • 1
  • 3
  • 12
0
votes
1 answer

jupyterhub fails to spawn server with systemdspawner

I am trying to run jupyterhub on an Ubuntu 20.04 LTS server. My idea is to run python/jupyterhub in a conda virtual environment as a system service. As I want to be able to limit the resources available to individual users I installed the…
hcr
  • 1
  • 2
0
votes
0 answers

Systemd is not working it changed to init

My VM debian 10, on google cloud simply changed, after a reboot, from systemd to init. None of systemctl command is working with the error message: System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to…
argdenis
  • 21
  • 4
0
votes
1 answer

AWS Linux 2 systemd vulnerability

A recent security scan of our systems has shown that our AWS Linux 2 instances are vulnerable to an issue with systemd https://nvd.nist.gov/vuln/detail/CVE-2021-33910 I've had a look through the AWS Linux 2 security bulletin board…
0
votes
1 answer

Custom port in Systemd scrip

I'm trying to set a custom port in my Systemd script, here is my .service file: [Unit] Description=discord-stock-ticker Wants=basic.target After=basic.target…
s1ckoleg
  • 13
  • 4
0
votes
2 answers

Yocto Systemd Configuration

I am trying to start a service on boot, however I am having issues building. This is my tree structure in my custom layer michael@michael-VirtualBox:~/Documents/simple_daemon/sources/meta-simpledaemon$ tree . ├── conf │   └── layer.conf ├──…
Michael
  • 399
  • 2
  • 17
0
votes
1 answer

Start a service at startup with Ansible

I'm coming from the Docker side of things. Managing "services" is rather simple. 1 "service" = 1 container. Ensuring that a service is running at startup is easy with Ansible. But when it comes to managing services on a Debian/Ubuntu based Linux…
shellwhale
  • 820
  • 1
  • 10
  • 34
0
votes
0 answers

How to run a service using SystemD with a specific user's environment variables?

I have a udpater.service script meant to start a service application. The problem is that when I run the update job as a regular user, it works just fine. The minute that I try to do the same as a service... it fails to work. This is the…
gp443
  • 231
  • 2
  • 11
0
votes
1 answer

python ModuleNotFoundError when using systemctl command

I have API server using loopback4 framework with nodejs and python file that is called by api. When I tested in local using just terminal, it works well. So, I tried to make it as a systemd service, the API server works well but the python file has…
BigJ
  • 21
  • 1
  • 5
1 2 3
99
100