Skip to main content

All Questions

Tagged with
0 votes
1 answer
150 views

Fake /etc/os-release for an application to make it think it runs on Ubuntu instead of Debian

I have to use a third party software which officially supports RHEL, SuSE (SLE[DS]) and a certain Ubuntu LTS release. Unfortunately, I use Debian on all my systems. If I run the installer script of ...
MrSnrub's user avatar
  • 135
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
1 vote
0 answers
425 views

"systemd-tmpfiles --clean" problem

I want to cleanup a directory with systemd-tmpfiles. On my ubuntu 22 server man tmpfiles.d shows the following example: # Files created and modified, and directories accessed more than # an hour ago ...
user333869's user avatar
0 votes
0 answers
453 views

Ubuntu systemd using 100% CPU when running manually with sudo only uses 20%

I wrote a program in Golang (it is compiled) and ran it using systemd as it needs to run long-term, auto reboot and run on startup, but it's pinning the cpu at 100%. Comparatively when running using ...
Joshua Pinti's user avatar
0 votes
0 answers
330 views

Systemd on debian and ubuntu restarting services weekly, why?

I have several Debian 10 and Ubuntu 20.04 VMs. I have zabbix alerts setup to tell me when services restart, and 2 of these VMs are restarting all their services at midnight every week. I have looked ...
user avatar
2 votes
1 answer
1k views

no alsa-sound in systemd-service (using screen)

I just set up a systemd.service in order to run cmus (a console-music-player) detached to a screen at startup. i don't get sound, when starting via remote with no user logged in to the machine. i do ...
nïkö's user avatar
  • 41
1 vote
1 answer
163 views

How is it possible to know whether a service is a user service or a system service?

Is it possible to query a service and know for example whether it was initiated from the lib/systemd/system or from /.config/systemd/user/? I'm in the middle of writing a systemd service, and ...
Hossein's user avatar
  • 263
3 votes
1 answer
3k views

Why does a systemd unit file at `/usr/lib/systemd/system/` still works for Ubuntu?

I understand that systemd stores unit files at different locations for different versions of Linux. On RHEL, it's at /usr/lib/systemd/system/, whereas on Debian-based machines it's at /lib/systemd/...
dayuloli's user avatar
  • 515
1 vote
2 answers
2k views

How can a log print to display while shutdown, reboot or startup?

As we all know, when we reboot, shutdown or startup a system, some message will be printed on the screen, here is a capture: My system is Ubuntu 16.04, I know these log messages as above come from ...
Yves's user avatar
  • 3,331
1 vote
0 answers
952 views

Systemd: start/stop service based on networking connectivity

I've been using a VPN heavily recently and would like openvpn to intuitively connect and disconnect based on whether I'm connected to Wi-Fi (or ethernet). Currently, I have a client.conf in /etc/...
user322541's user avatar
0 votes
1 answer
402 views

Trying to enable instantiated service via debian package install

I have an in-house config deb that I'm installing on a system. Among other things, I'd like to the package to enable a serial console, as described in http://0pointer.de/blog/projects/serial-console....
mikepurvis's user avatar
4 votes
1 answer
576 views

Back to "initramfs" on Debian by systemd "shutdown to initramfs" feature

I need to go back to initramfs during shutdown in order to do a clean unmount of the loopback devices which host my linux installation. To achieve that goal I have read a lot of documentation and ...
Antonio Petricca's user avatar
2 votes
1 answer
2k views

postinst maintainer script stops systemd unit file from starting automatically on install

I'm creating a small Debian package to install systemd unit files, specifically *.service files. My package looks like: myservice | |--debian |- comapat |- ...
Wimateeka's user avatar
  • 1,015
0 votes
2 answers
517 views

Systemd Timer Confusion

I have a program running via Systemd and I'm trying to figure out how to start/stop it at certain times. It's a persistent program (transmission). Currently I have a crontab with the following lines: ...
19wolf's user avatar
  • 115

15 30 50 per page