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.
1,639
questions
1
vote
0
answers
1k
views
Mouse movement wakes system up from sleep if the USB adapter is not reconnected
I have /etc/udev/rules.d/99-wakeup.rules to disable wakeup from sleep when using a keyboard or mouse connected to the device:
ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb&...
1
vote
0
answers
197
views
How to get rid of ubuntu-advantage-tools without destroying system [duplicate]
How can I remove package ubuntu-advantage-tools in lubuntu focal or disable its services? I do not need it
sudo apt remove ubuntu-advantage-tools
[sudo] password for alex:
Reading package lists... ...
2
votes
0
answers
604
views
How to make service A stop if service B crashes or stops
Using system-d:
I have 2 services (Service A and Service B). Service B needs Service A to always be running. If service A ever crashes or is stopped, Service B should also be immediately stopped ...
2
votes
2
answers
857
views
No network from minimum net install
I did a minimum net install, but my new system is not starting the network automatically -- No IP address with my eth0 device.
I installed dhclient package myself but that doesn't help. I thought it ...
1
vote
1
answer
449
views
high cpu usage from systemd-udev, tracker and modprobe after 21.10 upgrade
I see high cpu usage after upgrading to 21.10
top indicates that tracker, systemd-udev and modprobe are running continuously
I also see mouse problems. I my mouse moves jerkily and I get spurious ...
2
votes
1
answer
1k
views
How to start my own script at the END of boot
I am trying to run my own python script at startup. Or more specifically at the END of the boot sequence
The python code does
a) writes to the I2C LCD screen
b) announces via sound that its 'Ready'
...
4
votes
1
answer
23k
views
Running Systemd Service as User Rather Than Root
systemd noob, here.
I have inotifywait watching a folder and running a script when conditions are met. I set up a systemd service file to run this script as a daemon on startup, but it runs the script ...
0
votes
4
answers
2k
views
Unlock root disk with TPM2 on Impish Indri
Background:
Using the information in the manpages:
http://manpages.ubuntu.com/manpages/impish/man1/systemd-cryptenroll.1.html
I have successfully added a TPM2.0 key to the LUKS disk with the command: ...
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 ...
3
votes
0
answers
676
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 ...
0
votes
0
answers
100
views
Something keeps asking my laptop to shut down
I use Ubuntu 20.04 with i3wm. My laptop keeps shutting down randomly. To check if it was a problem with i3 or some program I was starting with i3, I switched to the default gnome environment. But ...
0
votes
1
answer
2k
views
Pmie_logger and pmlogger daily both fail to start
I've tried enabling and restarting both services but they continually fail, even on reboot.
The job identifier is 110800.
Oct 12 19:14:36 [server] pcp[2555877]: pmie_daily failed - see /var/log/pcp/...
2
votes
0
answers
2k
views
How to make plymouth show message during shutdown, switch mode and make pkcon work
I'm trying to write a script that makes a) the system update before shutting down (not at reboot) and shows the progress to the user on plymouth.
So far I, well, managed to make it start the script (...
1
vote
0
answers
427
views
Fail to execute command on startup
I want to run a simple command after my ubuntu starts up and network services are established (it should do so no matter wheater I'm logged in or not)
If I run the command manually, it start's up the ...
3
votes
0
answers
3k
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 +...
1
vote
1
answer
441
views
What is enabling mariadb on first boot
A bit of background on what I'm trying to do: We are building an Ubuntu image that we deploy to thousands of workstations. We need to have MariaDB available on the workstations, but we only want it ...
0
votes
0
answers
165
views
Htop shows a mysqld that isn't in filesystem?
Upon cleaning up my filesystem and uninstalling services I don't use, I noticed that 'htop' shows what appears to be a MySQL daemon running at
/usr/sbin/mysqld
The thing is I don't have any MySQL ...
0
votes
0
answers
375
views
Ubuntu - force killing a service
I've seen a few topics on this before on AskUbuntu and bits and pieces from other forums but no answer actually solved my query. I'm trying to kill a service on my Ubuntu machine via SSH (Terminal), ...
0
votes
0
answers
397
views
Randomly getting stuck on boot after enabling UFW
I tried to diagnose this problem for a few weeks from now, tried everything I could do (except disabling ufw) but to no avail.
System: Kubuntu 21.04 with kubuntu-ppa/backports
What I tried to do: ...
1
vote
0
answers
2k
views
mysql debian-start[190181]: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
I am trying to set up MariaDB server under xubuntu 20.04 and import all the db's I had previously on another machine under xubuntu 18 (following the notes I took when doing it there coming from ...
2
votes
1
answer
170
views
How can a reverse-SSH connection be launched and maintained on Ubuntu boot with systemd?
My mum has a wee laptop that needs, when it boots up, to reverse-SSH connect itself to a server (so I can help out when needed).
I'm struggling to get the connection to persist when it is started by ...
1
vote
1
answer
2k
views
systemd - only run service after internet is up
[Unit]
Description=Twitter notifier daemon
# https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/#cutthecraphowdoimakenetwork.targetworkforme
After=network-online.target systemd-networkd-...
3
votes
1
answer
3k
views
Ubuntu 20.04.3 LTS systemd-udevd high CPU with CD/DVD rom drive
I know this question seems to be asked a lot in respect to wifi or bluetooth or nvidia but I'm struggling with an issue related to the cd-rom/dvd-rom.
I'm running Ubuntu on a Parallels VM and there is ...
2
votes
1
answer
2k
views
Is there a reason sysctl is broken into so many configuration files?
Is there a good reason that sysctl is broken into so many configuration files across multiple directories?
Is there a reason I can't delete all the sysctl.d configuration files and put everything in /...
2
votes
1
answer
860
views
Gnome Imageviewer 3.36.3 cannot open svg file
Using Ubuntu 20.04 to analyse start-up performance, I ran the following systemd command:
sudo systemd-analyze plot > systemd-analyze-plot.svg
However the default native Gnome image viewer/Eye of ...
2
votes
0
answers
923
views
Docker installation fails due to docker.service attempting to start before docker.socket
I am trying to install docker on a machine via:
apt-get --allow-downgrades -yq install docker-ce=18.06.3*
This causes an error during the post-installation script:
● docker.service - Docker ...
0
votes
0
answers
159
views
Published .Net Core website not working with Systemd
I'm deploying a ASP .Net core app to my webserver. When I run the systemd service it binds to port 5000 and I get a nginx 502 error. When I run the service manually using "dotnet Activecalls.dll&...
1
vote
0
answers
295
views
Use Docker on a systemd disabled VM
I am provided by a VM running Ubuntu 18.04.5 LTS which has systemd disabled.
I have root access on it.
I am trying to run docker on it which is installed but I get error
Cannot connect to the Docker ...
0
votes
1
answer
793
views
Unknown files in /tmp folder
I am using Ubuntu 18.04 LTE. I have recently found that there are some files that are auto created in the /tmp folder.
config-err-b3hxSF
ssh-gZzvdo1vMa0c
systemd-private-...
0
votes
1
answer
138
views
Stuck on dell logo after systemctl set-default multiuser.target
I ran systemctl set-default multiuser.target so that I can use i3 without loading gnome. However, after rebooting, I never get to a terminal where I can login, start my session, etc. I am running 20....
1
vote
1
answer
360
views
I ran timeshift to fix an error, Now I can run `systemctl` and `systemd` without `sudo` - My attempts to undo this have been unsuccessful
I have a Dell Inspiron 3501 running Ubuntu 20.04. I recently had an issue with bluetooth and I ran Timeshift restore to fix it. Eventually I was able to fix the bluetooth. However, I found out ...
0
votes
0
answers
472
views
What's the purpose of systemd's exim4-base.timer?
The content of /usr/lib/systemd/system/exim4-base.timer is
[Unit]
Description=Daily exim4-base housekeeping
Documentation=man:exim4(8)
Before=logrotate.timer
[Timer]
OnCalendar=daily
AccuracySec=12h
...
0
votes
1
answer
1k
views
How can I find out when systemd schedules apt to auto-upgrade my packages?
The other day I found out that my Docker container had been killed as the docker daemon had been automatically upgraded on an AWS box I was running.
journald showed these messages in the relevant time ...
2
votes
1
answer
714
views
Mount external disk via curlftps as a service
If I have an external drive I access via FTPS, how can I add a systemctl service to mount it and unmount it and have it mount it upon start-up? I already saw some examples with scripts and crontab but ...
0
votes
1
answer
475
views
Does Default Ubuntu use ntpd or timesyncd?
In the question linked, I ask how I can get time syncing to work. Why is the time not syncing?
The answer given was to check my NTP configuration. Why would I do that? I thought Ubuntu switched from ...
2
votes
0
answers
318
views
Systemd timer with WakeSystem=true waiting for twice the specified time
I wanted to understand systemd timers, so I've been fiddling. I've found an odd behavior which is not what I wanted. When I start a systemd timer using WakeSystem=true and OnActiveSec setting the ...
1
vote
0
answers
85
views
Stopping services from being restarted as a result of dist-upgrade replacing a dependency
Running Ubuntu Server 18.04
I believe I've encountered the following situation, and would like to stop it from occurring again.
The situation:
1/ I've put docker on hold with apt mark. This is ...
0
votes
1
answer
789
views
rsyslog.service not found by Ansible during preseed late_command
I continually find that certain things "just don't work" when run as preseed/late_command in an Ubuntu Bionic preseed file. (The same applies to autoinstall for Ubuntu Focal.) In this ...
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
...
1
vote
0
answers
209
views
Systemd dbus interfaces for suspend and resume notification
Could anyone let me know the interfaces that can be used to get notification of "resume" once device is resumed from suspend state.
I did have a look at the systemd documentation of logind, ...
1
vote
0
answers
524
views
Why is systemctl showing memory current as [Not Set]?
I have been trying to limit the memory usage of firefox, by following this tutorial: https://dev.to/msugakov/taking-firefox-memory-usage-under-control-on-linux-4b02
In there, we limit the memory usage ...
8
votes
1
answer
22k
views
enabled systemd service not starting
I have two systemd services, one is a flask app meant to proxy calls to a C backend.
While the flask app works the C program does not start at boot.
My service file looks like this:
[Unit]
Description=...
0
votes
1
answer
837
views
Ubuntu 20.04.2 removable media (cd/dvd) and usb drives no longer auto mounting
Worked fine until about a month ago when noticed inserting a CD or DVD wouldn't bring up the default player application. Start the player manually and the (internal sata) drive has no problem ...
0
votes
0
answers
47
views
Upgraded Ubuntu to 20.04, now external HDD won't mount
I upgraded my PC to 20.04 and am finding that I can't mount my external HDD (ext4 formatted) anymore. It doesn't matter if I choose any of the directories created under /dev/disk/by-*/*part1 or /dev/...
0
votes
1
answer
3k
views
What is the right way to automount an external drive in a docker container?
I want to create a personal cloud service in a docker container on a Raspberry Pi. Due to the limited storage and longevity of SD cards, I want to create the database one an external drive of ...
1
vote
0
answers
1k
views
systemctl chrome-remote-desktop without superuser
Some time ago to enable chrome remote desktop it was necessary to insert the user in the chrome-remote-desktop group to prevent the user from having to be a super user to enable the service
Now the ...
0
votes
0
answers
57
views
Save and restore backlight on hot shutdown
I have a system on which we regularly perform a "hot" shutdown - plug out the power without issuing a shutdown command. The problem is that the backlight doesn't get saved and restored ...
2
votes
0
answers
3k
views
List services start with specific name
I have multiple services which start with a specific name. How can I list them in Linux.
For example some thing like that, sudo systemctl --name='*NAME.'
The main reason is that I am planning to write ...
1
vote
1
answer
316
views
Ubuntu 20.04 LTS takes a lot of time long to boot
This is the log from systemd-analyze
Startup finished in 6.677s (firmware) + 5.010s (loader) + 5.180s (kernel) + 2min 13.817s (userspace) = 2min 30.686s
graphical.target reached after 2min 12.124s in ...
1
vote
1
answer
2k
views
Unable to run systemctl commands on the host from the container which was working till Ubuntu 16.04
When the host OS is Ubuntu 16.04 or RHEL 7.x, the following command is working, helping us to run systemctl commands on the host from within the docker container:
# nsenter --mount=/hostroot/proc/1/ns/...