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
0answers
10 views

How I can start my Java server & Discord bot when reboot?

I'm running a discord music bot, using a Lavalink.jar, and the bot itself. I'd like to make a systemd rule that send this commands: cd /usr/java java -jar Lavalink.jar cd /home python3 launcher.py ...
0
votes
2answers
58 views

systemd: how to make sure a service is started only after another service is up and running

On a Ubuntu 20.04.2 TLS server, I have a need to start a service after another one has fully started up. Specifically, the openvpn-server service creates a tun0 interface with the IP address 10.87.0.1 ...
0
votes
1answer
31 views

systemd-resolved: ResolveUnicastSingleLabel= missing in 20.04?

I am trying to get systemd-resolved to resolve single-label querries/hostnames. As far as I understand systemd-resolved, it just drops request like dig randomhostname because no fqdn is provided. if I ...
0
votes
1answer
26 views

SystemD service for running deamon in chroot

I have set up my raspberry pi running ubuntu 20.04 server so it can run teamspeak with box86. To do that I set up a chroot in ls /srv/chroot/focal-armhf/ with debootstrap. In that directory I compiled ...
0
votes
1answer
25 views

What is the difference betweem daemon-reload and reload?

daemon-reload - Load the unit configuration file of the running designated unit(s) to make unit file configuration changes without stopping the service. Note that this is different from the reload ...
0
votes
0answers
38 views

20.04 Server Hangs on Reboot

I'm running into an issue when trying to reboot or shutdown my primary storage server at home. The shutdown process unmounts and stops most of the system until it hits systemd-udevd, then it hangs. ...
0
votes
0answers
31 views

Using systemd services to launch programs at boot, can view topics/nodes but can't subscribe

I have a master(Ubuntu18.04+Melodic on Jetson Nano) and slave(Ubuntu 16.04+Kinetic on PC) conected properly. I am able to run ros nodes and have full duplex without any issues when these nodes are ...
0
votes
0answers
32 views

how to run non root user command as a service?

I wrote a command to take sql server back in ubuntu 18.04 and put that command in the .sh file. It is working fine either i run the command directly in terminal or run by .sh file, in both cases ...
3
votes
2answers
99 views

systemd-boot-messages are shortened on small display and thus unreadable

I'm using a small display with a resolution of 480x800 pixel. When I boot my raspberry-pi-system, using Ubuntu server 20.04.2 LTS, the systemd-boot-messages are shortened and thus unreadable on my ...
0
votes
0answers
157 views

Failed to activate service 'org.freedesktop.systemd1': timed out after apt upgrade

When I run my regular $ sudo apt update && sudo apt full-upgrade -y && sudo apt autoremove I get ... After this operation, 0 B of additional disk space will be used. Setting up clamav-...
0
votes
0answers
25 views

In ubuntustudio, why is there a sleep infinity process?

There's a service called user/session-monitor.service whose execstart is /bin/sleep infinity. What is this used for? sleep is used by bash scipts to slow processes in a while loop, giving a chance to ...
1
vote
0answers
61 views

How to launch tty automatically after start up?

I am using Ubuntu 20.04 and have done the following setup: sudo systemctl set-default multi-user.target sudo systemctl add-wants multi-user getty@tty1 and /etc/securetty has been created. However, ...
2
votes
0answers
30 views

Run an SSH command at shutdown using systemd

I need to run an ssh command at shutdown/reboot in my Ubuntu 18.04 PC I struggled reading infinite posts pretending to solve this issue but no way. I wrote this service in /etc/systemd/system/mydown....
1
vote
0answers
59 views

Could not initialize SDL(x11 not available) error while I'm trying to start automatically a bash script which configures a qemu virtual machine

I would like to run a shell script automatically every time my ubuntu 18.04 installation has landed and I see the desktop manager fully loaded. The script should be executed regarless of the desktop ...
0
votes
0answers
29 views

Systemd activates constantly heats up and slows down my computer

In both Kubuntu 18.04 and Kubuntu 20.04, systemd constantly activates, heats up my computer and slows it down. I have an Intel Core i7-9750H and it is not for systemd to consume so much CPU resources. ...
1
vote
0answers
56 views

accidentally modified /etc/resolv.conf and now cannot acces the Internet

I'm using ubuntu 18.04 on my dell inspiron 5402.I was annoyed about frequently getting a question mark on that wifi icon,so I followed some method on the Internet and unfortunately got this problem. ...
0
votes
0answers
20 views

systemd target regex

I have this service file: test@.service [Unit] Description=test PartOf=test.target [Service] Environment=PORT="$((100 + %i))" ExecStart=/bin/bash -c '/bin/echo ${PORT} > /tmp/test-%i.log'...
0
votes
0answers
40 views

Systemd user service not starting automatically

This has been asked many times in some form or another but none of the advice seems to have helped. I want to run syndaemon after I login to the GUI, but I always have to start it manually $ systemctl ...
0
votes
1answer
29 views

Cannot stop screen started with systemctl start

On ubuntu server 20.04 I created a service definition for a Minecraft server within a screen session like that [Unit] Description=Minecraft Server After=network.target [Service] User=minecraft Nice=...
0
votes
0answers
24 views

limit maximum concurrent systemd “start jobs” at boot time (ubuntu 20.10)

At boot time I am getting 18 start jobs all trying to start which causes failures. I want to limit the maximum concurrent start jobs to either 1 or 2. How do I do this. I have increased all the timers ...
0
votes
2answers
80 views

How to disable onedrive service from autostarting

I installed "onedrive" from repo. Works great but I don't want it to start automatically. I'm tired of turning it off after each reboot - how to fix it? I'm turning it off using systemctl --...
0
votes
0answers
21 views

Allow no root user to control a service [duplicate]

I am trying to restart a service without being root. Here is the code snippet where the command being used template { source = "{{vault_template_dir}}/agent.crt.tpl" destination = &...
1
vote
1answer
26 views

Does Ligntdm require specific configuration or clean-up of SDDM files after install on Lubutu 20.04?

I'm evaluating Lubuntu 20.04 for a custom application. Customisations include a static IP address, vnc service, an auto-login for a non-admin user and halting of all non-essential services to ...
0
votes
0answers
51 views

How to fix systemctl status not working as non-root user in 20.04 upgrade?

I saw this discussion indicating others have seen this as well. I also recently upgraded from 18.04 to 20.04. The symptom is this: $ systemctl status networking Failed to parse bus message: No such ...
2
votes
0answers
23 views

Load hardware specific keyboard config automatically

I have a special keyboard, with which I want to write with a configuration that is not the same as when writing with another keyboard (e.g. the laptop's keyboard). I want to keep both configurations ...
1
vote
1answer
65 views

Shutdown messages from encrypted volume, serious or not?

I've been using Ubuntu 20.04 for a couple of months now on my computer. Installed it using the default installer with Full Disk Encryption enabled. Now, when I shutdown my computer systemd-shutdown ...
0
votes
0answers
34 views

Failed to read pids.max attribute of cgroup root, ignoring: No such file or directory

Sometimes (not always) when I boot my pc to GNU/Linux Ubuntu an error appears for every mounted application. (/var/log/syslog content) Mar 27 11:40:53 jakub-B85M-D2V systemd[1]: Failed to read pids....
0
votes
0answers
21 views

systemd doesn't seem to invoke the ExecStartPre script(s)

I have a unit file like: [Unit] PartOf=my-main.service StartLimitBurst=5 StartLimitIntervalSec=30 [Service] KillMode=process LimitCORE=infinity LimitNOFILE=16384 Environment='UNIT=my-daemon' ...
1
vote
0answers
55 views

Why does Ubuntu boot so slowly? Conflicting messages

I have been going through these forums trying to figure out exactly what is going on. First: pc@my_pc: uname -a Linux my_pc 5.8.0-45-generic #51-Ubuntu SMP Fri Feb 19 13:24:51 UTC 2021 x86_64 x86_64 ...
2
votes
1answer
28 views

Why some terminals return 4294967295 istead of 1000 for `cat /proc/self/loginuid`?

This question is first arise when I tried to launch great xsession-manager application on my fresh default Ubuntu MATE 20.04.2 LTS system. Surprisingly it does not start using default MATE Terminal. ...
0
votes
1answer
154 views

Unable to install systemd-container ubuntu 20.04 [duplicate]

I tried to install systemd-container on brand new ubuntu 20.04 but I have following message: sudo apt-get install systemd-container Reading package lists... Done Building dependency tree ...
0
votes
0answers
31 views

apt-daily.timer and apt-daily-upgrade.timer not triggering unattended-upgrades

Using Ubuntu server 20.04 LTS. I’m trying to get unattended-upgrades to run at a specific time. It is my understanding that as of Ubuntu 18.04 either the apt-daily.timer or the apt-daily-upgrade....
1
vote
0answers
28 views

How to clean up files in a systemd privatetmp tmp folder

I am supporting a Web App that writes files to /tmp. This runs in Nginx via systemd with the default nginx systemd config file that has PrivateTmp=yes set. That makes a private systemd-private-* ...
0
votes
2answers
48 views

What is the Minimum Setup Needed for Setting-up XDG Directories ($XDG_RUNTIME_DIR etc.)?

I'm in a setup (20.04) that is basically headless (a solaris zone, but we could probably consider it analogous to any server sort of setup), and as such, I don't have any graphical environment ...
2
votes
1answer
127 views

Ubuntu 20.04 on VirtualBox is slow after updating from 19.10

I've been running Ubuntu 19.10 for awhile with no problem. Very snappy, quick, and easy to use. I just got updated to Ubuntu 20.04 and it takes ages to boot (15-20 minutes). Even once its booted, the ...
0
votes
1answer
22 views

Is there a command to show aggregate/merge results of all systemd conf.d drop-in files?

I think I have basically understood how those systemd drop-in files work, like /etc/httpd/conf.d/ or /etc/sudoers.d/ My question: is there some helper command to show the current aggregate result? i.e....
2
votes
0answers
46 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 ...
0
votes
1answer
42 views

dev-sda2.device takes longer during boot in Ubuntu 20.04 and 20.10 than other distros. How to fix this?

/dev/sda2 is my root partition. I'm using an SSD and it's not worn out. dev-sda2.device doesn't take more than a second in pop os or archlinux. This is my # systemd-analyze blame: 7.558s dev-sda2....
0
votes
1answer
63 views

How to print in current terminal new logs arriving in a logfile?

I can't find the answer to my question, and I don't know how to proceed... I would like to print in my current terminal (possibly only for a specific user) new logs added to a logfile, without running ...
0
votes
0answers
15 views

How do I enable a service in recovery mode using systemd?

I have this custom service and I need it to run in recovery mode as well as the multi-user mode of ubuntu. I've added a .service file for this in the /etc/systemd/system/ folder with the following ...
0
votes
0answers
27 views

Bash script not executing when choosing option run instead of 'run in terminel' in ubuntu 20.04

I am running on Ubuntu 20.04, I have a simple file named hi.sh which contains #!/bin/bash echo "Hi" read -p "Enter:" now when I double click on this file, it gives these options: ...
0
votes
0answers
14 views

Delay Showing GUI before python script has finished

I currently have a service using systemd that runs a pythonscript after the user is automatically logged in. The script opens a webrowser. Is there a way that a can run the script before the user ...
1
vote
0answers
40 views

systemctl returns no output, always exits 0. No units or unit files listed

I just did an apt upgrade on my Ubuntu 20.10 installation, which I mention only because I can't think of anything else that could have possibly caused this. Now I can't get any output or non-zero exit ...
2
votes
0answers
35 views

systemd --user unit, mapp .img as loop device

I want to use a systemd --user .service to map an image file to a loop device at user login. The the service resides in /etc/systemd/user. The image in question resides in /home/$USER/my.img [Unit] ...
0
votes
1answer
41 views

Start the gui program as non-root in systemd

Run ps -ef to find that the process number of upstart is 1566. When the parent process id of my gui program is 1566, it can be displayed normally. Now there are several problems that cause my gui ...
0
votes
1answer
32 views

How can we make connecting to openvpn access server not prompt password?

My Ubuntu 20.04 connect to remote openvpn access server using systemd unit. ubuntu@worker-0-node1:~$ sudo systemctl start openvpn@client 🔐 Enter Auth Username: ovpnserve 🔐 Enter Auth Password: ******...
0
votes
1answer
33 views

Ubuntu 18.04 service not executing on startup even when its enabled

I have a service I want to run right after my computer start. The steps I've followed for it are as follows: Create cv Create cv-init.service in /usr/lib/systemd/system Format the file as shown below ...
0
votes
1answer
66 views

Executing a .py on the startup to trigger a GPIO button

I am quite a n00b, and this task is not easy as I thought at a first glance. I am on a raspberryPi4 with Raspberry Pi OS Desktop with recommended software installed (really similar to every ubuntu, ...
0
votes
1answer
97 views

Systemd stuck looping through sssd daemon

I recently applied this fix to my fairly recent install of Ubuntu 20.4 on my Raspberry PI 4 in an attempt to correct this sssd bug. I ran the following commands: sudo cp /usr/lib/aarch64-linux-gnu/...
0
votes
1answer
66 views

Ubuntu v20 does not detect systemd-boot as installed

[Running Ubuntu v20.04 in VMware VM) All of my systems run systemd-boot, with all related grub packages/files purged. When I ran today's update, there was a new kernel (v5.4.0-66). However, I canceled ...

1
2 3 4 5
27