Questions tagged [systemd]

Systemd is a replacement for the classic init during boot.

Filter by
Sorted by
Tagged with
0
votes
0answers
27 views

Why does networkd forget the bridge configuration then complains about invalid gateway?

I use 2 of the 4 ethernet sockets as a bridge, which I configure with netplan: network: version: 2 renderer: networkd ethernets: eno1: dhcp4: no eno2: dhcp4: no eno3: ...
0
votes
1answer
27 views

Per-link DNS settings with systemd-resolved

It doesn't make much sense to me why per-link DNS settings would be useful. Wouldn't any DNS server you want to use have to be part of a global list before you can decide which interface to send the ...
0
votes
0answers
15 views

How to stop a service using crontab?

I am trying the following code inside crontab and it works for starting the service but the stop part doesn't work! 25 10 * * * systemctl start python-script 2&1 >/dev/null 26 10 * * * ...
0
votes
0answers
12 views

Disable systemd service on `/lib/systemd/user` folder

I'm trying to disable some services like gvfs-gphoto2 and others, as I use Manjaro KDE distro and removing these packages weirdly remove Network Manager. The init files for these services are on the ...
0
votes
1answer
42 views

Journalctl shows logs from about last hour only

I have a problem with journalctl logs, which doesn't show me logs older than about one hour. First log entry is from about one hour ago, instead of 2 days as requested. $ date -u Wed May 13 08:59:21 ...
0
votes
2answers
92 views

How to start/stop a python script as a service at a specific time on CentOS?

I am trying to put a python script on a VPS running CentOS 7, that crawls some stock data online from a web service. What I want to do is to set this script as an OS service that start/stops at a ...
0
votes
1answer
50 views

Is it possible to filter journald messages before they are filed?

I have all kind of logs which are centralized with journald. A lot of them are not interesting and I could try to filter them at the source, but this not always possible. Moreover, some are ...
0
votes
0answers
22 views

RUN SCRIPT BEFORE SHUTDOWN in ubuntu 16.04

i have tried to run the script before shutdown using systemd but its not working . I have created the following service: [Unit] Description=test Before=shutdown.target [Service] Type=oneshot ...
0
votes
0answers
12 views

Systemd-homed authentication / PAM settings to use for lightdm

I am using the lightdm display manager, with the Aether Theme, on EndeavorOS / Arch Linux, with the PAM configurations laid out in the Arch Wiki, regarding nss-auth and system-auth. The service is ...
0
votes
1answer
16 views

systemd-logind is working at full speed and my computer is buzzing when I close the laptop lid

I'm using Arch Linux, which has a rolling update system. For some time (probably since the last update, but I'm not sure), when I close my laptop lid, the fan starts to make a lot of noise. I checked ...
0
votes
0answers
12 views

systemd cgroups: how to limit process to given cpu cores and protect those from others processes

I need to run some performance tests to compare two approaches, comprising different databases, different backend strategies and indeed some app firing requests. There will be a lot of processes ...
1
vote
0answers
11 views

List processes in a named nspawn container

I've been using pstree with pid of the systemd-nspawn or systemd process to get a convenient list of processes running "inside" a particular container/machine/namespace. Is there a convenient or ...
0
votes
2answers
28 views

/var/log/syslog.1 => 60GB | I seem to have stopped the cause, but don't know how to cleanly deal with the size of the logfile

So basically there is a command (gotop-cjbassi) I run continuously for monitoring purposes which started to misbehave badly apparently. After verification, every time it is run, systemd-journald ...
2
votes
1answer
27 views

How to stop a service when updating another in Debian

In Debian, how can I stop all supervisord processes before upgrading/restarting postgres and start them after postgres is finished? Background: I would like to use unattended upgrades. If the ...
0
votes
1answer
30 views

Where does systemd actually search for units?

Today I spent too many hours figuring out what is wrong with my systemd which was refusing to find units in .config/systemd/user. The symptoms were: systemd-analyze --user verify <unit> worked ...
0
votes
1answer
27 views

Systemd-Networkd BindCarrier failed with “Unknown lvalue”

Currently I'm trying to setup a bond network with vlan with systemd-networkd. Unfortunately the service gives me the error message "Unknown lvalue 'BindCarrier' in section 'Network'" for the bond1....
1
vote
0answers
38 views

What are the real world differences between bind, systemd-resolved, dnsmasq, etc.? [closed]

I'm trying to achieve three simple goals (on our CentOS8 server)... local DNS resolution/caching DNSSEC DNSoverTLS At first I went straight for dnsmasq because that was what it seemed most people ...
0
votes
0answers
37 views

Trouble setting up an asp.net core application as a systemd service on a virtual ubuntu machine

The result of $sudo systemctl status ascended.service WARNING: terminal is not fully functional ● ascended.service - Ascended Guild main site dotnet core application Loaded: loaded (/etc/systemd/...
0
votes
1answer
21 views

systemd drop-ins won't override specific values

I'm trying to extend a vendor supplied target/timer to specify which targets should be executed, but eihter way I try, it won't overried the settings. My first approach was to create a drop-in for ...
0
votes
0answers
23 views

why systemctl failed state after many restart of service + rhel services

In some cases, when performing numerous systemctl restart commands, services will enter the failed state. Is it possible in systemctl's configuration to configure the service in a way that service ...
0
votes
0answers
15 views

Sytemd graphical multi-session

On Linux with systemd it is possible to have multi-sessions on one seat, eg. I have reached the graphical target starting my display manager, login, and then my graphical user session is in place. I ...
1
vote
1answer
66 views

How systemd service run on boot until success?

I have a systemd service that upgrade linux on boot. Service works but the problem is when debian is booting, network connection is off, so service show succeeded but actualy does not update the ...
0
votes
0answers
28 views

Why not the stdout/stderr of my script as a systemd.service be redirected to journald?

I saw that systemd redirects all of stdout/stderr of a unit to journald by default, but I forget where I saw it. The output of my binary programs such as those compiled by gcc, has been redirected ...
0
votes
0answers
41 views

How to boot Centos 8 with volatile root overlay filesystem?

Generally, I am looking to boot a Linux box so that the persistent storage is immutable. Any changes made to the filesystem should be lost when the box is powered off. This is for system where the ...
0
votes
0answers
14 views

Systemd Not Running Via Cron

I have this cron.hourly script: #!/bin/sh echo "test" >> /root/test systemctl --global restart dnscrypt-proxy While the echo command runs perfectly, the systemctl ones not running at all. The ...
0
votes
0answers
36 views

systemd: Freezing execution in Yocto

We have a legacy device with following configurations: Chipset Architecture : Intel NM10 express OS : Yocto warrior CPU : Atom D2250 Dual Core Volatile Memory : 2GB DDR3 CPU core : 4 I have ...
0
votes
0answers
35 views

Is there a way to make systemd shutdown the system when a service exits with a particular code (e.g. exit code 0)?

I have few Linux boxes each running a service. This is the only important process running on these machines. However, sometimes due to some internal state-changes in the service, it will gracefully ...
0
votes
2answers
148 views

Cannot get systemd to restart a service if it crashes

I searched online and posted here to understand how to use systemd to auto start a c++ application, now I want it to automatically restart that application if it crashes. I know the correct course of ...
0
votes
1answer
132 views

Running Java process from Systemd with classpath

I have the following service: [Unit] Description=App After=network.target [Service] Type=simple User=root WorkingDirectory=/opt/app ExecStart=/usr/bin/java -server /opt/app/start.ini Restart=on-...
1
vote
0answers
28 views

Start 3 redis instances via systemd

I'd like to start 3 instances of Redis 6 via systemd. System info: root@ubnt:/home/test11# uname -a Linux ubnt 4.15.0-88-generic #88-Ubuntu SMP Tue Feb 11 20:11:34 UTC 2020 x86_64 x86_64 x86_64 GNU/...
3
votes
2answers
283 views

How to restart a systemd service upon resume

I have the following service configuration : $ systemctl cat bluetooth # /lib/systemd/system/bluetooth.service [Unit] Description=Bluetooth service Documentation=man:bluetoothd(8) ...
0
votes
1answer
69 views

Debian/Beaglebone clock changing to wrong date (possibly timezone related)

I have a three beaglebone green wireless (BBGW), all of them are having the same error. Something is reseting the systemtime. All these boards have been used before It's hapenning also on a brand new ...
0
votes
0answers
37 views

dpkg - Configuring systemd results in name regex error

One day, upon attempting to upgrade the packages on my seldom updated Raspberry Pi Zero W, systemd fails to be configured correctly due to what seems to be a bad name to addgroup. Setting up systemd (...
1
vote
1answer
102 views

sd-encrypt with keyfile on optional external partition

Context I have an encrypted /home partition, which can be unlocked with a passphrase and a keyfile. This keyfile is on a USB drive which I keep at home. This means that someone who steals my laptop ...
1
vote
0answers
27 views

Delete removed videos from playlist youtube-dl

I have a script that syncs my yt playlist to my computer. Problem is, when I remove a video from my playlist it stays on my computer. Is there a way to either have youtube-dl delete the video or to ...
0
votes
1answer
317 views

Systemd: “Session closed for user root”

I've written a C application that I would like run at boot. The software operation includes GPIO manipulation and an attached projection cape on the Beaglebone Black that I'm using. I ended up ...
1
vote
1answer
29 views

Writing a systemd script that starts 2 applications in linux

OS: Raspbian I'm failing to execute 2 applications at once with rc.local I need to find a simple example for how to start an app with systemd The problem is Im only finding specific examples for ...
1
vote
1answer
67 views

Stopping dhclient on non-existent eth0 interface

My Ubuntu 18.04.3 system takes an extra 90 seconds to boot because it is trying to run dhclient on a non-existent interface "eth0". At the same time, DHCP has already run and succeeded within 1 second ...
0
votes
0answers
30 views

Start xinit with default font?

I'm using Raspberry Pi and try to make it like kiosk. I've added my app as a service to the systemd /lib/systemd/system/app.service and it starts when system opened. Inside the app.service: [Unit] ...
1
vote
0answers
43 views

How to wait for Thunderbolt device discovery before invoking cryptsetup during startup?

I am using a Linux sytem running Kernel 5.4.12 and systemd 234 on a notebook, which is connected via Thunderbolt 3 to a docking station providing an external keyboard, mouse and monitor. The root ...
1
vote
1answer
141 views

systemd service not executing script?

I'm using a Debian 9.11 system. I ran into a problem where systemd service runs my script but does not produce the desired result. I created a script named my_autossh.sh and put it under /usr/bin. ...
0
votes
0answers
26 views

Creating systemd service for passive tshark capture without root

I am creating a systemd service to capture SIP/RTP/RTCP traffic sent over GRE to a capture box. The service calls a script, tshark_wrapper, which handles the capture/filter and the directory/file ...
0
votes
0answers
38 views

How to map specific mouse wheel to keyboard button on Linux with Xorg?

I would like to remap wheel up and wheel down from a specific mouse to keyboard buttons, hwdb files doesn't seem to affect mouse wheel, which tool could I use for this task ? If possible, with an ...
0
votes
1answer
25 views

Systemd service fails to write file, but only on Cold Boot

On Manjaro Linux (kernel 5.5) I created a script for overclocking my GPU, and a systemd service to start it at boot: /usr/local/bin/amdoverclock #!/bin/bash echo 'manual' > ...
1
vote
1answer
323 views

Executable path is not absolute

I am trying to apply DRY by utilizing env vars as below: Environment='SHARED=/var/www/backend/shared/' Environment='QUEUE=critical' Environment='BUNDLE_PATH=/home/ubuntu/.rvm/gems/ruby-2.3.0/bin/...
0
votes
0answers
398 views

systemd service enabled doesnt start on boot

Im having troubleshooting configuring systemd with rtorrent and screen in my raspberry pi. I have the service unit file configured and when i start it manually with systemctl start rtorrent it starts ...
0
votes
0answers
31 views

cgroup_root is not mounted at boot, thus making systemd unable to start

I'm porting SailfishOS to Sony Xperia Z1 Compact (amami), running arm architecture and a linux version 3.4. So, hybris porting seemed to be somewhat successful (probably still a lot of bugs, but we'll ...
2
votes
1answer
575 views

How to get a systemd timer out of n/a status?

I'm trying to setup a systemd timer to run twice a day during a working week. Once is at 7:00 AM, and once at 1:00 PM. The *.timer and *.service files are below. I install and enable them, and ...
0
votes
0answers
15 views

systemd-resolve doesn't seem to work correctly

According to man systemd-resolve Example 2. Retrieve the domain of the "85.214.157.71" IP address $ systemd-resolve 85.214.157.71 85.214.157.71: gardel.0pointer.net So, let's ...
1
vote
1answer
65 views

How can I give a grace period to CTRL-ALT-DEL in systemd

With init one could point the ctrlaltdel action in inittab to any command, such as doing a delayed shutdown command. How can this be done with Systemd? I sometimes work form the console and being ...

1
2 3 4 5
12