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
-1 votes
0 answers
31 views

How to Execute Flatpak Command Using systemd at Suspend? [closed]

I've created the following script, named it pre-sleep, and saved it to /lib/systemd/system-sleep: #!/bin/sh case "$1" in pre) /home/XXXXX/OpenRGBCommand.sh ;; esac ...
UnrulyCarrot's user avatar
0 votes
0 answers
31 views

Ubuntu Linux segfault when transferring files over SFTP

I am trying to transfer movie files over SFTP to my Ubuntu server in order to load them to my Jellyfin Docker instance, but every time I try to transfer a file I get a segfault error. I am running ...
Brandon Pyle's user avatar
0 votes
1 answer
26 views

Issues launching SpiderOakONE on Ubuntu 22.04 LTS using Cron

I have an instance of Ubuntu 22.04 LTS running on a server. I need SpiderOakONE to launch automatically on reboot without the user having to log in. I decided this would be best suited to cron. I ...
Joe Moore's user avatar
  • 119
0 votes
0 answers
15 views

journalctl doesn't show logs of a snap

When I run a snap application in the terminal like this: /usr/bin/snap run shadowsocks-rust.ssserver -c /etc/shadowsocks-rust/config.json I see the logs: 2023-05-14T18:55:11.714373725+03:00 INFO ...
Kirill Fertikov's user avatar
0 votes
0 answers
24 views

Minecraft servers running on single host, Issues with Systemd

I have a minecraft server running off a VM & I cannot get systemd to start and run them. I did, but it stopped working after I was messing with the config and I've not been able to restore it. Its ...
Tom TK's user avatar
  • 1
1 vote
1 answer
46 views

user created disable-touchscreen script not working when run as systemd service on ubuntu unity 23.04

My Laptop is Dell Latitude XT3 Memory : 4 GB Processor : Intel® Core™ i5-2520M CPU @ 2.50GHz × 4 Graphics : Mesa Intel® HD Graphics 3000 (SNB GT2) I usually disable my faulty touch screen on my laptop ...
shankar's user avatar
  • 21
1 vote
0 answers
54 views

fstab and systemd

On a fresh installation of Ubuntu 23.04, I have an entry in my /etc/fstab: yyy.yyy.yyy.yyy:/storage /storage nfs auto,nofail,noatime,nolock,intr,tcp,actimeo=1800 0 0 If I want to mount the NFS ...
TomZ's user avatar
  • 11
0 votes
1 answer
44 views

Trouble setting up persistent SSH tunnel via Systemd

I'm trying to get a persistent SSH tunnel running on Ubuntu 22.04. My command works fine from the command line, but fails when run via a systemctl service? Here is my (redacted) rtunnel.service... [...
Coopdis's user avatar
0 votes
1 answer
23 views

how to change location of journalctl data?

I would like to change the place the systemd data is stored. It seems like they are being written to /var/log/journal I guess I could stop systemd-journald.service and then symlink the directory - but ...
guesty's user avatar
  • 31
0 votes
0 answers
22 views

Docker Desktop: How to make it exit completely?

Question: How do I make Docker Desktop and all of its associated processes exit on command? Context: I'm running Kubuntu 22.04 and using Docker Desktop for some local development. When I close Docker ...
Russ Bain's user avatar
  • 111
0 votes
0 answers
21 views

Is there a way to have snapd start while I'm logging in

systemd-analyze critical-chain suggests that snap-related services are the main cause of startup latency on my system: graphical.target @3.300s └─multi-user.target @3.299s └─snapd.seeded.service @3....
0x539's user avatar
  • 267
0 votes
1 answer
53 views

Start a GUI app automatically each 10 days

My idea is to define a systemd user unit and start it with a timer unit. But I even fail to start the application manually with the unit in: ~/.config/systemd/user/signal-desktop.service : [Unit] ...
CoSoCo's user avatar
  • 11
3 votes
1 answer
177 views

How to 'strace' a systemd service on startup?

I'm working on an embedded system running a stripped down version of Ubuntu 22.04. We've recently updated some hardware in the embedded system and I'm working on getting our Ubuntu image working on ...
Gogeta70's user avatar
  • 257
0 votes
0 answers
64 views

Setting global environment variables dynamically on startup

I have an Ubuntu 18.04 vm which executes a script via /etc/profile.d. The script reaches out to an external data source (azure, in this case), pulls down some json, and converts it into environment ...
Switch386's user avatar
  • 111
0 votes
1 answer
333 views

How to setup static IP with wireless interface and netplan on ubuntu 22.04?

I am trying to setup a static ip for a ubuntu server 22.04 instance on a laptop. I though I am going to do that by modifying netplan configuration. IP of router is 192.168.80.32 netplan config file is ...
llesh's user avatar
  • 109
0 votes
0 answers
24 views

Restart systemd service when GPU memory limit is reached

I'm using the following systemd service on Ubuntu 22.04 LTS. The service is saved in /lib/systemd/system/myService.service [Unit] Description=myService RequiresMountsFor=/mnt/Data [Service] ExecStart=...
BlackHawk's user avatar
  • 101
0 votes
1 answer
77 views

Preventing Ubuntu from asking for password for encrypted data partition at startup (Ubuntu 20.04)

I'm using Ubuntu 20.04. I have a (LUKS) encrypted partition that I do not want to be prompted to mount on startup (at minimum, not providing a password for it on startup should not block the system ...
davidgo's user avatar
  • 97
0 votes
0 answers
35 views

Ubuntu22.04 - fail to run script using systemd

I need to run a script at every boot. For that, I've create a .sh file, which runs as needed using a terminal. To make it run during boot, I followed this tutorial. .sh file: #! /bin/bash sub1="...
guyd's user avatar
  • 953
0 votes
0 answers
63 views

Upgrade to 20.04 broke from 18.04

Although some diag tool (boot-repair: report here) run from 22.04 live USB (probably EFI) states the system is 20.04 and maybe missing an EFS partition, it never had (upgrade was run from 18.04 just ...
useful's user avatar
  • 1,724
7 votes
1 answer
339 views

journalctl -u sshd.service command returns 'no entries'

I am currently working on Ubuntu 20.04 machine. When I am running the command journalctl -u sshd.service, I am getting the below response. -- Logs begin at Wed 2022-12-21 13:01:52 UTC, end at Fri 2023-...
Alakananda S's user avatar
0 votes
1 answer
166 views

Cannot use systemctl as a user after a "sudo su - media" : Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined

I'm trying to create a service as a user but it does not work : admin $ sudo su - media $ systemctl --user edit fmgr-copro.service --full --force Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS ...
SebMa's user avatar
  • 1,939
1 vote
0 answers
38 views

How to move already running processes to different `cgroup` with systemd?

I'm using Ubuntu 20.04 LTS with MATE desktop which doesn't natively support launching desktop UI and window manager in a separate cgroup from the other applications. Is it possible to run some systemd ...
Mikko Rantalainen's user avatar
0 votes
0 answers
114 views

systemd service fails to start script in home directory

I would like to start a python script (i.e. a Flask server) at boot of Ubuntu 22.04. I have created a file /lib/systemd/system/myService.service with following content: [Unit] Description=The service ...
BlackHawk's user avatar
  • 101
0 votes
0 answers
43 views

Trying to get timing of systemd script right

I have this script that I'm trying to get the system to execute on shutdown and only on shutdown (or restart for that matter). This script doesn't start or stop a server; it merely unmounts some file ...
Opux's user avatar
  • 207
0 votes
1 answer
47 views

CPUAffinity in /etc/systemd/system.conf getting messed up when docker/snap is installed

For some benchmarking purpose I need to set CPUAffinity for the entire system to limit all process to some cores lets say first 10 cores. This way I can do taskset to override the CPUAffinity and ...
Abhiram Shibu's user avatar
0 votes
0 answers
55 views

Problem mounting /boot and swap

After reboot of Ubuntu-2110 on my Hetzner VPS I found myself in a no boot situation. Based on journalctl I had an issue starting a target for swap and boot partitions. It takes 1.5min and fails ...
user3676407's user avatar
2 votes
0 answers
37 views

How to configure cgroup resource limits for desktop applications using official systemd features?

I've previously used cgmanager to group processes in separate cgroups and adjust memory and CPU limits as needed for each group. However, modern systemd doesn't want that other processes mess with ...
Mikko Rantalainen's user avatar
0 votes
0 answers
24 views

systemd service doesnt start

i have a problem with a systemd service and i cant find the problem. I have script in the directory /home/username/test/ called battery.sh: #!/bin/sh max=99999 for i in `seq 1 $max` do clear ...
Demophobie's user avatar
3 votes
0 answers
280 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 ...
user000001's user avatar
0 votes
0 answers
43 views

How can I pass the FQDN hostname to systemd?

I have an Ubuntu 20.04 system in AWS. The %H flag in systemd is replaced with the hostname as expected, but I need a way to capture the output of hostname --fqdn. %H outputs ip-10-0-0-188 on my ...
Josh Correia's user avatar
0 votes
1 answer
390 views

How to run a docker-compose as a systemd service?

I found this question, but that one uses cron - I'd like to use a systemd service instead. My docker-compose.yml is in /home/me, and I run it with sudo docker compose up (and just keep it running in ...
cocomac's user avatar
  • 2,917
1 vote
0 answers
28 views

Why would a user created systemd service stop forwarding to syslog?

TLDR: I have a centralized syslog server that suddenly stopped receiving syslog message from applications servers. Messages only resumed when I restarted each individual service running on every app ...
edmz's user avatar
  • 123
2 votes
1 answer
85 views

How increase the "loaded units" systemd

we use chrome remote desktop to perform remote access to ubuntu, but I am not able to enable more than 32 users (each user is a systemctl unit and after reaching 32 unit loaed, I cannot start others). ...
Rafael's user avatar
  • 105
0 votes
0 answers
109 views

Don`t wake up after second suspend

My system does not wake up after the second suspend after boot. The problem occurs with any action which lead to call systemd suspend (lid close, power button press, gnome autosuspend and et al). At ...
marvinav's user avatar
  • 141
0 votes
0 answers
68 views

Why is rootless docker still running as root inside container?

From a non-root testuser which is a non sudo account, I have installed a rootless docker following the instruction here (Ubuntu without package). When I start a container and go inside it by running ...
Newskooler's user avatar
0 votes
1 answer
87 views

Systemctl cannot start service which uses ttyACM0 port after reboot

I need to start my own service (SignalR client) written in C# (.NET6) after ttyACM0 port is available. This service should be started after other service (SignalR server). The server service starts ...
Chebona's user avatar
0 votes
1 answer
755 views

How to debug: Failed to connect to bus: No such file or directory (systemctl --user status)?

I am trying to run systemctl --user status from a user account in order to not run services from root. The way I do it is as follows: loginctl enable-linger $USER export XDG_RUNTIME_DIR="/run/...
Newskooler's user avatar
2 votes
1 answer
180 views

Network related part of a script will not run in /lib/systemd/system-sleep

The purpose of the script is to re-enable a hidden SSID upon resume from sleep. Somehow the ability to restart a hidden SSID automatically was lost when I upgraded from 18.04 LTS to 20.04 LTS. You ...
toddk63's user avatar
  • 141
0 votes
1 answer
411 views

stopping Networkmanager and wpa_supplicant : FAIL on shutdown or on restart

Ubuntu 22.04 Jammy Jellyfish reboot or shutdown fail because NetworkManager and wpa_supplicant can't stop. If I stop NetworkManager and wpa_supplicant by hand before shutdown, shutdown works fine, ...
Olivier's user avatar
  • 49
0 votes
0 answers
17 views

System randomly freezes; unable to access terminal; restart fixes for a couple days

I'm having this weird issue where after a while, my system just locks up. None of the CTRL+ALT+F* keys bring up the terminal or login, and only after a restart do things work again. During the time ...
numerous's user avatar
1 vote
0 answers
81 views

Custom systemd service won't start automatically

I wrote a script and a service to power down my external Seagate drive on shutdown. It worked the first time but when I restart my computer it won't activate. I always have to start it manually before ...
Alfred's user avatar
  • 11
1 vote
0 answers
20 views

How to configure systemd to put all my browsers in a single cgroup

Long time ago I used cgmanager to put all my browsers (Opera, Firefox, Chrome) in a single cgroup and set max RAM usage limit for that group. However, modern systemd really doesn't want other programs ...
Mikko Rantalainen's user avatar
0 votes
0 answers
117 views

Problem in tang/clevis (NBDE) Setup

I am trying to have NBDE on Ubunutu LTS 22.04.1 . basically i want my compute-1 node to auto decrypt on boot when it's able to ping controller (tang server) node. the problem is i encrypted every ...
Hoodad Tabibi's user avatar
0 votes
0 answers
88 views

Ubuntu 22.04 reboot take to long

I have Ubuntu 22.04 running on my machine. When I reboot or shutdown this message appears on the screen "systemd-shutdown[1] : waiting for process: java, wrapper-linux-x" And it takes more ...
Ali Akbarpour's user avatar
0 votes
0 answers
107 views

How to run docker container as service if docker installed using snap

I have faced with the issue that when I create the following service: Description=Start Service Code After=snap.docker.dockerd.service Wants=network-online.target Requires=snap.docker.dockerd.service ...
Denis Kotov's user avatar
3 votes
1 answer
483 views

Who/what is creating /dev/loop0, /dev/loop1, ... /dev/loop7?

I've recently been working on a project requiring encrypted files mounted via a connection to a loop device. While the project will run on an Ubuntu system, I was experimenting with setting it up on ...
pgoetz's user avatar
  • 1,213
1 vote
3 answers
162 views

Ubuntu 20.04 mounting swap even if disabled

TLDR: A fully updated ubuntu 22.04 server is still mounting swap even after removing it from /etc/fstab I am about to pull my hair over this issue. I've been reading the ubuntu documentation about ...
proxx's user avatar
  • 19
0 votes
0 answers
284 views

Mount not working with systemd (working with /etc/fstab)

I have a working line in /etc/fstab for mounting a remote samba server //192.168.1.11/wind /media/fixe/wind cifs noauto,user,username=XXX,password=YYY,rw 0 0 But I would now use automount ...
Oli's user avatar
  • 162
0 votes
0 answers
63 views

PipeWire hangs on logout Gnome

As the title suggest, PipeWire Multimedia Service is significantly slowing down the logout process on Gnome 43, Ubuntu 22.10. It seems to start shutting down roughly 10 seconds after all the other ...
Nicola's user avatar
  • 81
0 votes
1 answer
156 views

Service restarted at every apt upgrade

Everytime I run apt upgrade and there is an actual upgrade, a service that I have created gets restarted. Typically, I get this message ┌────┤ Daemons using outdated libraries ├─────┐ │ ...
assylias's user avatar
  • 160

1
2 3 4 5
32