Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [systemd]

systemd is a collection of daemons, libraries and tools for system management. Ubuntu's Upstart system was replaced with systemd starting with Ubuntu 15.04.

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

Service-Daemon Question

i need help with a service that has to run on my default user for a bar script on dwm (im on arch linux) [Unit] Description=bar service [Service] ExecStart=/bin/barfolder/bardaemon.sh Restart=always ...
user avatar
0 votes
0 answers
8 views

Ubuntu 22.04: running interactive (systemd) script before graphical login (to mount a decrypted /home)

I have the following problem: my home partition is decrypted with veracrypt. For that reason, I have to mount it to /home, before the graphical login. In previous times, I have solved that by ...
user avatar
  • 1
3 votes
2 answers
72 views

Disabling fprintd.service prevents boot; How to restore boot?

I've discovered that disabling fprintd.service prevents Ubuntu Desktop 22.04 from booting. Specifically, a number of [DEPEND] dependency failures scroll rapidly past the screen in tty1, too fast to ...
user avatar
  • 197
0 votes
0 answers
18 views

Which service spams the console with [OK] Finished ServiceName Messages? And how to turn it off?

[OK] Reached target Late Shutdown Services [OK] Finished System Power Off [OK] Reached target System Power off These messages are not affected by kernel boot parameters like loglevel=3 or rd....
user avatar
0 votes
1 answer
22 views
+50

Unable to get service rate limiting to work with systemd 237

I have read the systemd man pages and also some Q&A here related to StartLimit* I tried what is recommended for newer versions: [Unit] StartLimitBurst=5 StartLimitIntervalSec=90 [Service] ...
user avatar
  • 49
0 votes
0 answers
19 views

how to systemd mount nfs share

I mounted a nfs share using systemd and it all works but only for the root user. How can I mount using systemd that the mountpoint can be accessed by all users and is also usable by a docker container?...
user avatar
  • 101
2 votes
3 answers
79 views
+500

How to disable journald for vlc player

My system is constantly crashing because of systemd-journald going into overdrive and bogging down the CPU (and probably the disk as well) when I watch videos with VLC. I notice this behavior getting ...
user avatar
  • 164
0 votes
1 answer
37 views

upgrading to 22.04: earlyoomd, it is upgraded, what about systemdoomd

I habitually installed earlyoomd on ubuntu systems. When upgrading to 22.04, the earlyoomd package is cheerfully updated. But now there is systemdoomd. I'm a bit surprised by the fact that the upgrade ...
user avatar
1 vote
0 answers
18 views

change date format for timedatectl ubuntu

How to change date format for the command timedatectl I'm getting results like YYYY-MM-DD I need DD-MM-YYYY Local time: Mon 2022-05-16 14:41:06 IST Universal time: Mon 2022-05-16 09:11:06 UTC ...
user avatar
  • 121
0 votes
0 answers
26 views

apt-daily.service timer-activated. Still need to "enable" apt-update in 20auto-upgrades?

Question summary: Why do I have to configure 20auto-upgrades to do an update of the package lists, although I am already running apt-daily.service systemd-timer-based? If I don't, then unattended-...
user avatar
  • 3
0 votes
0 answers
32 views

Installing nfs package under oraclelinux:8-slim in docker container running on Ubuntu 20.04 fails

Installing: net-tools;2.0-0.52.20160912git.el8;x86_64;ol8_baseos_latest Installing: rpcbind;1.2.5-8.el8;x86_64;ol8_baseos_latest Installing: nfs-utils;1:2.3.3-46.el8;x86_64;ol8_baseos_latest System ...
user avatar
0 votes
0 answers
26 views

Cardreader daemon failure

service pcscd status × pcscd.service - PC/SC Smart Card Daemon Loaded: loaded (/lib/systemd/system/pcscd.service; indirect; vendor preset: enabled) Active: failed (Result: exit-code) since Fri 2022-04-...
user avatar
0 votes
0 answers
15 views

systemd_path permission problems

I have this script: cat /etc/systemd/system/calculate.path [Path] PathModified=/home/users/foo/calculate/input/ Unit=calculate.service It calls this service: cat /etc/systemd/system/calculate.path [...
user avatar
  • 1
6 votes
2 answers
818 views

How do I disable the systemd OOM process killer in Ubuntu 22.04?

Ubuntu 22.04 comes with the systemd-oomd service enabled by default, which has been "helpfully" killing my IDE and / or terminals whenever I try to compile an application using an abundance ...
user avatar
0 votes
0 answers
9 views

systemd: ShowStatus in system.conf vs kernel command line

I am not seeing any messages on bootup/shutdown on Bionic (18.04). Do I have to add systemd.show_status=yes on the kernel command line or just the config file /etc/systemd/system.conf's ShowStatus=yes ...
user avatar
  • 49
2 votes
1 answer
94 views

How to find out which "unit" is logging to journalctl

I am working with usbmount and have finally got it working. One of the reasons it took me so long to get it working is that I thought the newest version of it (built from source) was not correctly ...
user avatar
  • 211
0 votes
1 answer
96 views

How to disable logging to /var/log/syslog and use only systemd logs

My last question What are the options to manage the size of /var/log/syslog of an embedded system was not answered so I am asking this question to see if it is possible to stop using /var/log/syslog ...
user avatar
  • 103
0 votes
0 answers
26 views

cannot enable display-manager

for some reason, the systemctl enable display-manager command fails: Failed to enable unit: Refusing to operate on alias name or linked unit file: display-manager.service my DE is xfce + lightdm ...
user avatar
0 votes
1 answer
26 views

Log coredump file from systemd service?

I'm running a mosquitto broker (2.0.14 from the dev ppa) on Ubuntu 20.04.4. Periodically, I'm seeing messages like the following: Apr 18 07:44:19 mittServer systemd[1]: mosquitto.service: Main process ...
user avatar
1 vote
2 answers
133 views

How to stop a service when a CIFS share becomes unavailable?

I have a service that is started by a script /etc/init.d/foo. When a certain CIFS share (//fileserver/multimedia on /home/username/multimedia type cifs) becomes unavailable for any reason (unmounted, ...
user avatar
0 votes
1 answer
27 views

What are the options to manage the size of /var/log/syslog of an embedded system

I have an embedded system (i.MX6) running a modified version of Ubuntu 18.04 LTS bionic stored on its SD card and I want to know how to manage /var/log/syslog file size. I noticed that systemd journal ...
user avatar
  • 103
2 votes
2 answers
101 views

What will `systemctl is-active ...` return if failed?

If I execute systemctl is-active <service-name>, what will be the value of result code when service was active but it failed? 0 (success) or another?
user avatar
  • 31
1 vote
0 answers
41 views

Crazy boot time in Ubuntu LTS 20.04 [duplicate]

Recently, my Ubuntu LTS 20.04 booting is crazy slow on Crucial MX500 1TB SSD. Here is the the output of systemd-analyze. (base) hell@Dell-Precision-T1600:~$ systemd-analyze Startup finished in 4.554s (...
user avatar
0 votes
0 answers
15 views

Impish 21.10 system does not start fully after patching - systemd queued jobs

I have an Impish (21.10) system which was patched and rebooted recently (via "unattended-upgrade"), but it will not fully boot up; systemd is stuck with 6 jobs in the "queued" ...
user avatar
  • 1
0 votes
1 answer
163 views

Netplan DNS nameserver setting not being applied

I'm renting a VPS from Linode with Ubuntu 20.04 LTS (Focal Fossa) installed on it. But the default DNS server from Linode doesn't resolve a domain name which I really need it to resolve. Therefore, I ...
user avatar
0 votes
1 answer
80 views

How can I identify detailed DNS behavior with systemd?

I am trying to diagnose issues with a DNS server, in an environment with multiple DNS servers set by DHCP. In Ubuntu Server 20.04.2 (with no changes to DNS behavior) I need to find which DNS server(s) ...
user avatar
  • 21
0 votes
0 answers
43 views

Multiple systemd broken links, system won't boot

On a reboot today, the system (Ubuntu Desktop 20.04.4) hung upon reaching the graphical target. Conspicuously, several services failed to start ahead of this, including snapd. Booting the machine to ...
user avatar
  • 197
0 votes
1 answer
16 views

Error starting a tmuxinator session via systemd service on Ubuntu 18.04

I have a tmuxinator (note not tmux, tmuxinator) project running on Ubuntu 18.04 (running in headless/server mode). My tmuxinator project file is located in the default directory of /home/karsh/....
user avatar
  • 1
0 votes
1 answer
86 views

Trying to run a systemd service but it cannot find directory

I am trying to run a Lavalink server on startup using systemd. Here is my .service file [Unit] Description=Lavalink Server After=network.target StartLimitIntervalSec=0 [Service] Type=simple Restart=...
user avatar
0 votes
0 answers
33 views

Run a sh file when starting a service (with PM2 or systemd)

I need help please to finish something. (I use Debian 11). I'm looking for a solution so that an sh file I created, automatically runs when a service (which I also created myself) has finished ...
user avatar
0 votes
0 answers
28 views

Systemd service to create a symlink

I would like to have Systemd manage the existence of a symlink. The symlink should exist in /var/run/mysqld/mysqld.sock and point to /var/run/proxysql/mysqld.sock. The reason for which is obvious/...
user avatar
  • 21
1 vote
0 answers
38 views

Boot speed up recommendations

I'm looking for recommendations to find out why it takes more than 1 minute to boot. And how to make it go faster. nuc:~$ systemd-analyze Startup finished in 7.887s (firmware) + 6.265s (loader) + 7....
user avatar
0 votes
0 answers
9 views

Can updating snap cause a daemon-reexec? Or a restart of the networking service

Machine is running Ubuntu Server 18.04 I recently upgraded snap and then noticed a while later I lost some ip addresses I had added to an interface. Checking syslog, I see this around the time of the ...
user avatar
  • 287
0 votes
0 answers
32 views

Using systemd notify on behalf of another process

I am implementing a watchdog feature to one of my services using the systemd.I have a situation wherein I need to send a notification to systemd on behalf of another process. So, I used NotifyAccess=...
user avatar
0 votes
1 answer
28 views

Create a systemd service for starting LAMP &c

I have a Linux-box with Ubuntu that I use for development. I have disabled Apache, MySQL (well, MariaDB) and PostgreSQL (and a couple of other services), and would like to write a systemd service ...
user avatar
2 votes
0 answers
62 views

Move a service out of the critical boot chain?

I'm tired of services such as snapd and blueman-mechanism delaying my boot by upwards of 10, 20 seconds each on Ubuntu 20.04.4. While the solution for snapd was simply to apt purge it, I don't like ...
user avatar
1 vote
1 answer
54 views

Docker Ubuntu how to install systemd-binfmtd.service

I'm trying to work out how I install systemd-binfmtd.service into docker Ubuntu official image on ARM, I know it works on arm because it works on my Raspberry Pi, So I have installed the default ...
user avatar
0 votes
0 answers
25 views

How to install unit file on Ubuntu 20.04 based on git cloned *.service file?

I am trying to deploy a Python service on Ubuntu 20.04 (AWS EC2). As part of this, I use git clone https://github.com/.../project.git to clone the project onto my instance into the folder project/. In ...
user avatar
  • 1
1 vote
1 answer
66 views

configure unattended-upgrades with override.conf

Can I configure reboot for unattended-upgrades with override.conf? Instead of /etc/apt/apt.conf.d/50unattended-upgrades I put Unattended-Upgrade::Automatic-Reboot "true"; in /etc/systemd/...
user avatar
0 votes
0 answers
21 views

How to (or can I) resume from suspend by a command?

I want to do suspend and resume via KDE Connect's command function. It's possible, and I've done to do suspend, but I cannot find a way to resume via command. How to (or Can I) do so?
user avatar
  • 485
0 votes
0 answers
59 views

Securing Apache With Systemd

I am trying to secure Apache in a webhosting environment on ubuntu 20.04 server using systemd. My question is: How do i set a variable in path for usernames: For a single user this works: ...
user avatar
0 votes
0 answers
61 views

How to create a script which runs on startup only by the first boot?

I need a solutions for creating a configuration script which should be executed only by the first boot of the machine. I want to configure new network interfaces through the script with parameters ...
user avatar
  • 1
1 vote
1 answer
62 views

Ubuntu 20.04 Hangs when Unlocking

The problem manifests as follows: I walk away from my computer, come back about 15 minutes later to find that the screen has gone black and the computer has locked (as expected). I tap the space bar ...
user avatar
0 votes
0 answers
23 views

Does systemd-fsck check all of the disk, or just the boot disk?

My system has 5 internal drives (1 NVME SSD (boot), 2 SATA SSD, & 3 SATA HDD). Does fsck.mode boot option check all of the drives, or just the boot drive?
user avatar
0 votes
1 answer
161 views

Multiple redis ubuntu 20.04 LTS

Can who explain, what's wrong with redis?) # systemctl status m1-redis ● m1-redis-server.service - Advanced key-value store Loaded: loaded (/lib/systemd/system/m1-redis-server.service; enabled; ...
user avatar
0 votes
1 answer
173 views

systemd drop-in unit, ExecStartPre as root user, ExecStart as custom user

I have a web service running using systemd, this service runs by its own user, and I would like to execute some ExecStartPre commands but running as root user. So more in detail: i.e /lib/systemd/...
user avatar
  • 101
2 votes
0 answers
68 views

How to set timeout for waiting missing HDD while system boots?

System: Ubuntu 20.04 with EFI boot. Clarification why I need this I configured two swap partitions: One primary swap on the second HDD. It is used for hibernation. (Hibernation function is better to ...
user avatar
0 votes
0 answers
125 views

Can't start mongod from systemctl

I've tried to install MongoDB 5.0 Community edition on Ubuntu 18.04 from the Official doc: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ Everything went fine until I tried to run ...
user avatar
0 votes
0 answers
17 views

Run a Command at specific CPU Frequency

I am using liquidctl to control the fans in my PC and I wanted to sync them to my current CPU Frequency so the Fan Speed changes when I change the Frequency using a Gnome Extension. But I dont know ...
user avatar
  • 11
0 votes
0 answers
60 views

Why can cronjob and systemd not work together?

I want to auto renew the certbot certificate. I came across the following auto generated file but it says: This cronjob will NOT be executed if you are running systemd as your init system. I am ...
user avatar
  • 109

1
2 3 4 5
30