Skip to main content

All Questions

Tagged with
1 vote
1 answer
242 views

CentOS systemd places service subprocesses started with `sudo` in `user.slice` (instead of `system.slice`)

Subprocesses that are created using sudo within a systemd service are placed in the user.slice. This behavior has been observed only on CentOS 8 (x86_64 20230606) and not on Ubuntu 20.04.5 LTS, where ...
flashy's user avatar
  • 13
1 vote
0 answers
65 views

Cause a script to execute when the default route is changed

I have 2 interfaces: the Ethernet (metrics 1) and 4G (metrics 2). When the first disappears the second is used, when the Ethernet comes back, the first one is used again. I would like to send a ...
Oleksa's user avatar
  • 151
0 votes
0 answers
102 views

Systemd with Gitlab-runner and Manual commands works differently

I have a python-based tg bot that is supposed to run as Systemd service. Service file goes as following. [Unit] Description=Telegram ImageBot After=syslog.target After=network.target [Service] Type=...
Lev Marder's user avatar
0 votes
0 answers
128 views

Restarting systemd service on path change takes a long time

I have a systemd Ubuntu service of type simple, call it foo.service, with a Python script that is being executed, in ExecStart. Then another service, of type oneshot, call it foo-restart.service that ...
Christopher's user avatar
0 votes
2 answers
191 views

Reorder of launching Systemd services

OS: Debian 11 Bullseye Context: The Zerotier application adds the zerotier-one.service system service and creates a virtual network interface (when it works). The sshd server default listens to all ...
DarekH's user avatar
  • 97
0 votes
2 answers
602 views

Forcing Systemd to Re-Isolate a Target Unit

My goal is to programmatically re-run the graphical target unit using the systemctl command. While I'm aware that I can use sudo systemctl isolate graphical.target, this approach doesn't seem to work ...
mlibre's user avatar
  • 1,321
0 votes
1 answer
474 views

how to add PID inside cgroup.procs with non-root privileges in cgroup-v2 in Ubuntu

I created cgroup in /sys/fs/cgroup. I called it testGrp and I need this cgroup to be controlled by non-root user so I changed the ownership of the whole cgroup directory /sys/fs/cgroup$ sudo chown -R ...
Belal Elkady's user avatar
1 vote
1 answer
126 views

Systemd path PathExists= doesn't work if tracked file is deleted inside Unit=?

I have simple systemd.path restart.path: [Unit] Description= [Path] PathExists=/home/ubuntu/restart Unit=restart.service [Install] WantedBy=multi-user.target And the triggered restart.service ...
Azii's user avatar
  • 11
0 votes
1 answer
150 views

Bring systemd services up/down along with specific systemd service?

I have systemd: service1.service service2.service service3.service service1.service looks like: [Unit] Wants=service2.service service3.service After=service2.service service3.service [Service] ...
ojacomarket's user avatar
0 votes
0 answers
35 views

Systemd service not running after VM reboot [duplicate]

Here is my systemd service status root@ip-10-111-11-4:/home/foolala# sudo systemctl status mycustom-service.service ● mycustom-service.service - Custom service to manage docker-comopose for foolala ...
pkaramol's user avatar
  • 2,879
3 votes
1 answer
343 views

Longest ExecStart command line

I have been reviewing a lot of systemd job files, and found a systemd unit file on Ubuntu 20.04.2 with a ExecStart command that is 4284 characters long, it occurred to me to ask - what is the maximum ...
XXX's user avatar
  • 33
0 votes
0 answers
527 views

Failed to hibernate system via logind: Not enough swap space for hibernation

I'm trying to hibernate via systemctl hibernate but get Failed to hibernate system via logind: Not enough swap space for hibernation LANG=C swapon NAME TYPE SIZE USED PRIO /swap/swapfile ...
Yaroslav Minieiev's user avatar
0 votes
1 answer
3k views

How to enable DNS over HTTPS (DoH) on Pop!_OS 22.04

I recently started using Quad9 DNS and now want to enable DoH(not DoT). I was looking to enable it without any third party software (This is already possible on Windows). All the guides I can find are ...
Theorist's user avatar
0 votes
1 answer
236 views

ethercat install on ubuntu 23.04 RPi gives modprobe invalid argument error/empty MAC address?

Installing ethercat from https://gitlab.com/etherlab.org/ethercat.git to an RPi 3B v1.2 running Ubuntu Server 23.04 (32-bit). First time working with Ubuntu; more familiar with Raspbian. Spent a long ...
rbgorbet's user avatar
0 votes
2 answers
1k views

How to mount VeraCrypt or TrueCrypt volumes with the boot password

For Windows, VeraCrypt implements a feature called "system favorite volumes".  It allows mounting additional discs with the password entered at boot to unlock the system partition. Specs: I ...
Honigmelone's user avatar

15 30 50 per page
1
2
3 4 5
20