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.
681
questions with no upvoted or accepted answers
12
votes
0
answers
7k
views
"upowerd[4116]: unhandled action 'bind'" messages filling up syslog
On a laptop with Ubuntu 18.04, /var/log/syslog gets new block of the four following messages about 5 times per second:
Aug 29 19:17:17 my_hostname systemd-udevd[336]: Process 'hid2hci --method=dell --...
6
votes
0
answers
686
views
Getting dm-event.socket error during booting of the machine
Getting following systemd error while booting up. The operation system is ubuntu 20.04LTS. This error could be preexisting (I upgraded the os 3 days back):
systemd[1]: dm-event.socket: Socket ...
6
votes
0
answers
1k
views
How to automatically start a service after manually decrypting /home partition
Problem:
I have a service,seafile.service, that automatically starts a Seafile server after boot. However, this service is failing to start on my Ubuntu server that has an encrypted /home partition. ...
6
votes
1
answer
2k
views
Execute script on every start, wakeup and activation!
I want to execute a script on every start up, wake up and activation. In the current setup the script is executed in:
/etc/rc.local
/lib/systemd/system-sleep
It works so far, but if I reactivate my ...
6
votes
2
answers
5k
views
Problem with timedatectl and network time synchronisation in 16.04
I have a dual-boot machine with Windows and Xubuntu 16.04. Because of Windows, the hardware clock is set to local time, so I had to use timedatectl to make Xubuntu aware of that after the upgrade to ...
5
votes
0
answers
3k
views
ConditionPathIsDirectory=/sys/class/bluetooth was not met
The output of systemctl status bluetooth is:
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: inactive (...
5
votes
1
answer
9k
views
/sbin/init splash high CPU usage
I'm running Ubuntu 20.04 and since a week the fan of my laptop spins constantly.
There are also major performance dropouts where the system seems to halt for a few seconds.
Now I had the time to take ...
5
votes
0
answers
7k
views
"Failed to start Network Name Resolution/Time Synchronization"
My Ubuntu 20 computer shut down when I wasn't looking, and now when I try tu turn it on the following messages appear over and over
[FAILED] Failed to start Network Name Resolution.
See 'systemctl ...
5
votes
0
answers
2k
views
How to disable snaps from starting at boot?
Snaps are awesome, but they cause slow boot time, especially if you have quite a few of them. systemd-analyze blame confirms this.
I tried to disable or even mask their main systemd services (snapd....
5
votes
0
answers
2k
views
Is unmask-ing root ("-.mount") a unreasonable on Ubuntu 19.04
I have had this on problem on different machines using Ubuntu 19.04 after recent updates, and I became intensly curious after my DVD and USB drives started having trouble mounting.
During the apt ...
5
votes
0
answers
6k
views
Timed out Availability of block devices
On a fresh Ubuntu 18.04 (64 bit) Server install, the blk-availability.service always killed by timeout at shutdown.
I think the dependency of this service is bad, but I don't know what would be the ...
5
votes
0
answers
3k
views
Why is my drive not listed under /dev/disk/by-uuid and by-label?
After upgrading from Ubuntu 16.04.2 to 16.04.3 (kernel 4.4.0-64 to 4.4.0-112) one of my drives won't mount after boot.
I have tried rebooting with the old kernel, but the problem persists - so ...
5
votes
0
answers
4k
views
openvpn stuck at systemd-tty-ask-password-agent
trying to start openvpn and I keep getting this:
Broadcast message from root@Media (Thu 2017-08-03 07:28:29 EDT):
Password entry required for 'Enter Auth Password:' (PID 31285).
Please enter ...
5
votes
0
answers
3k
views
After 16.04 upgrade install systemd-sysv failed, how can I check that I fixed it?
I updated to 16.04LTS from 15.10. It has been reported as a bug that the message
'not installed systemd-sysv' appears, which it also did on my machine and the installation aborted with the suggestion ...
5
votes
1
answer
2k
views
Ubuntu server 14.04 and systemd-udevd process with high CPU usage
After upgrading from Ubuntu Server 12.04.2 to Ubuntu 14.04.2 Server version, I observed a huge usage of CPU (~ 90%) by systemd-udevd processes (3).
Running udevadm monitor display continuously ...
5
votes
1
answer
2k
views
/etc/systemd/logind.conf ignored
I'm using Ubuntu 18.04, when I'm setting /etc/systemd/logind.conf to have:
HandleLidSwitch=suspend
HandleLidSwitchExternalPower=suspend
It appears to have no effect.
Same happens if I set these to "...
4
votes
0
answers
2k
views
How to dermine why a systemd service is not stopping on shutdown? (stop job is running)
Recently every time I shut down or reboot my laptop, it is slow to shut down, and shows the following message:
A stop job is running for Session c1 of User gdm
I tried several similar questions that ...
4
votes
0
answers
390
views
Can unattended upgrade shutdown my Ubuntu Server?
My server unexpectedly powered down today. From syslog, it seems like it might have been the unattended upgrade service:
Nov 22 15:23:25 lynx systemd[1]: unattended-upgrades.service: Succeeded.
Nov 22 ...
4
votes
4
answers
6k
views
How to enable systemd-cryptenroll TPM2 support in Impish Indri
Background and Setup:
I have installed a fresh copy of Ubuntu 21.10 on my laptop.
Before install I cleared the TPM2.0 module from BIOS and during install I
enabled SecureBoot.
I selected full disk ...
4
votes
0
answers
5k
views
How to restart a systemd socket?
Problem in a nutshell: systemd creates a socket on boot, but it is not possible to restart or recreate it without a reboot.
/etc/systemd/system/gunicorn.socket
[Unit]
Description=gunicorn socket
[...
4
votes
1
answer
2k
views
18.04, grub takes about 6 minutes to boot, problem: `systemd-udevd 'SomeDevice' is taking a long time`
after a whole system update (that I try to avoid usually), I thought I was unable to boot, but this time I decided to wait more.
so after exactly 6m05s (everytime is that precise delay) it finally ...
4
votes
0
answers
5k
views
using append flag to continuously append log causes service to fail
In my systemd service I used append to keep on appending log to exisint log file:
[Service]
Type=idle
Restart=always
RestartSec=6
EnvironmentFile=/home/rock64/.config/systemd/user/photon_uploader.env
...
4
votes
1
answer
949
views
Managing systemd timers triggering conflicting oneshot services
I'm working on creating services that can do a logical MySQL backup as well as a physical MySQL backup. The logical backups would be done every 4 hours while the physical backups would be done once a ...
4
votes
0
answers
2k
views
Pulseaudio fail to start at boot
When I boot PA does not start. Syslog show this:
$ grep 'pulseaudio' /var/log/syslog
Mar 26 08:08:30 MX systemd[1171]: /usr/lib/systemd/user/pulseaudio.service:16: Failed to add dependency on ...
4
votes
0
answers
1k
views
How to move logs out of journalctl, to a file with daily rotation & archiving?
I have a particular custom service registered in systemd, which spews a lot of logs to stdout/stderr. I want to remove the logs from journalctl output (because they generate a lot of noise there, and ...
4
votes
0
answers
88
views
Debugging sporadic lightdm and network-manager hang
About 1 in 10 times I boot, I get a black screen with a blinking cursor. I then have to do Ctrl+Alt+F1, Log in and do "service lightdm restart" and my graphical desktop comes back.
Probably 1 in 5 ...
4
votes
2
answers
17k
views
Ubuntu 18.04 and systemctl service disappearing
I created and enabled a service:
$ sudo systemctl enable /path/to/imaservice.service
Created symlink /etc/systemd/system/multi-user.target.wants/imaservice.service → /path/to/imaservice.service.
...
4
votes
1
answer
6k
views
no /run/dbus/system_bus_socket
I wanted to upgrade from 17.10 to 18.04 but the upgrade failed, I think the reason was that policykit-1 was left unconfigured.
Rebooting did not help and now I am in the emergency console. I found ...
4
votes
0
answers
1k
views
systemctl --user returns "Unit was not found" on Ubuntu 18.04
I just fresh installed Ubuntu 18.04. I am having an issue with systemd, which worked fine with 17.10. My service files are located in ~/.config/systemd/user.
I tried a daemon-reload. didn't work. I ...
4
votes
0
answers
5k
views
Are there file-naming conventions for .cron and .systemd extensions?
I'm starting to rename all my existing bash scripts in /home/Me/bin and /usr/local/bin from no extension to a .sh extension. The reason is the exact same file name with drastically different contents ...
4
votes
0
answers
15k
views
Completely remove systemd service
I have an old piece of software, which however works perfectly until now. It is a service, set up with
sudo update-rc.d zcam_101 defaults
sudo service zcam_101 start
Last day I had to change a ...
4
votes
1
answer
3k
views
Renaming virtio network devices in Ubuntu 16.04 is not working
I am trying to rename some virtio ethernet devices on an Ubuntu 16.04 VM. I've done this successfully many times on non-Ubuntu systems with physical interfaces and older Ubuntu systems. Yet, despite ...
4
votes
0
answers
2k
views
systemctl enable libvirtd failed: too many levels of symbolic links on 16.04
I just installed virt-manager with APT (via $ sudo apt-get install -y virt-manager) and ran:
$ sudo gpasswd -a fusion809 libvirtd
(where fusion809 is the name of the user account I am presently ...
4
votes
0
answers
2k
views
Systemd execute a script everytime a USB-Stick is inserted
I want to launch a script everytime a USB stick is inserted. After experimenting with udev, I tried to accomplish my task with systemd (udev is supposed to run only short tasks).
Systemd works fine ...
4
votes
0
answers
5k
views
systemctl cannot disable services, displays upstart errors
On my Ubuntu 16.04 (Xenial) server, I cannot disable services from autostarting at boot. I get these error messages:
$ sudo systemctl disable puppet.service
...
initctl: Unable to connect to Upstart: ...
4
votes
0
answers
2k
views
Systemd taking a very long time to boot
This morning I turned on my PC and suddenly it took extremely long time to boot (usually less than 10s), I did systemd-analyze critical-chain and this was the result:
graphical.target @1min 39.673s
└─...
4
votes
0
answers
6k
views
Systemd service to run script at boot under a specified user account
I'm very new to systemd and I'm trying to set up a little startup script for a Teamspeak server and I'm having some trouble getting it to actually start up.
Some info:
The Teamspeak server runs ...
4
votes
2
answers
1k
views
Ubuntu 20.04 Server UFW does not activate automatically
Lately, I've noticed that UFW is inactive until I activate it manually.
I've run ufw enable multiple times, checked that ufw.service is active, but it still does not start on boot.
Output of systemctl ...
3
votes
1
answer
1k
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 ...
3
votes
1
answer
2k
views
Ubuntu 20 LTS. How to adjust [email protected] timeouts?
I am running the ARM64 build of Ubuntu 20.04 under QEMU. ~50% of the time the boot process reports this:
[ TIME ] Timed out waiting for device /dev/ttyAMA0.
[DEPEND] Dependency failed for Serial Getty ...
3
votes
0
answers
671
views
How about only one zpool in Ubuntu instead of bpool + rpool? Will zsys or anything like systemd mount generators be broken? Other concerns?
I am aware that grub does support only some of zpool features and usually this is the reason of having 2 pools.
Also 2 pools are used to encrypt only one (rpool) of them.
But that’s not a problem if I ...
3
votes
0
answers
2k
views
systemd --user fails to start while complaining about permission in ubuntu server 20.04 inside openvz 7
Info about the system.
# systemctl --version
systemd 245 (245.4-4ubuntu3.13)
+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +...
3
votes
0
answers
3k
views
Why does journald use so much space to store so little data, and how can I reduce or compress the journal logs?
I use journald with memory only logging limited to 55MB. But somehow this equates to less than a days worth of logging.
Config:
$ grep -v '^#' /etc/systemd/journald.conf
[Journal]
Storage=volatile
...
3
votes
0
answers
449
views
Slow boot. How to read systemd-analyze blame/critical chain/plot
I'm running Xubuntu 20.04 in a Virtualbox VM. The VM image is stored on a healthy SSD. It used to start fast after installing. I don't remember/didn't notice when the boot process slowed down so I ...
3
votes
0
answers
677
views
Slow boot time on Ubuntu 20.04.1 LTS
I've just installed Ubuntu on a new build PC and I'm consistently experiencing long boot times of well over 2 minutes. I saw a lot of advice to use systemd-analyze, but wasn't sure how to interpret it ...
3
votes
1
answer
2k
views
Redis doesn't automatically start after reboot in systemd even if it's enabled
I want to enable automatic start of redis database with systemd after boot. I got weird issues with x86 Ubuntu on ec2:
systemd claims that service is enabled.
ubuntu@:~$ systemctl status redis
● redis....
3
votes
0
answers
241
views
why is if statement working on terminal but not as script
I am trying to make a script that checks if a service is running (sickchill in this case) and if not start it with systemctl.
My code is working as intended if I execute it from the terminal, but when ...
3
votes
1
answer
852
views
Help with g810-led, actually g213-led and g203-led. Setting up a service
I'm synchronizing my keyboard leds to cycle color with my mouse this way: cd /home/&USER/Docuemnts/g203-led; sudo g213-led -fx cycle all 20000ms && sudo ./g203-led.py cycle 20000;
here ...
3
votes
0
answers
2k
views
Start SSH in isolated rescue.target?
I'm planning a system upgrade from Eoan to Focal on a remote machine where I only have SSH access. I've previously dealt with broken packages causing the system to boot into rescue mode, so I want to ...
3
votes
0
answers
593
views
SystemCtl Enable Seems to Depend on File Name
I have been trying to create a service file that would let me run ElasticSearch on an Ubuntu 18.04 server.
I have the following two files:
-rw-r--r-- 1 root root 114 Apr 14 13:43 /lib/systemd/system/...