Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [systemd]

systemd is an alternative approach to SystemV and Upstart init daemons for Linux. It is intended to provide a better framework for expressing services' dependencies, allow more work to be done in parallel at system startup, and to reduce shell overhead.

0
votes
0answers
20 views

Report memory usage (systemd)

We have several running cronjobs on our linux system (systemd). When I issue the command: systemctl status .service then I see correctly the usage (in this case only the CPU usage (I still need to ...
0
votes
1answer
15 views

Tor service not working, says active (exited)

I am trying to run the tor service on a Debian Stretch machine, and it works intermittently. However, after every successful start, upon the time I try to start it again, it doesn't work. By this I ...
0
votes
1answer
29 views

Is there an application to watch changes in auto starting apps and services?

I'm thinking of developing an application to watch changes for auto starting applications and service that would notify when: A service state change (enabled/disabled/added/removed) An application ...
2
votes
1answer
28 views

Why are my desktop applications children of PID1

I'm launching my graphical applications with i3bar. When I look at my system's process tree with pstree,I can see my graphical applications (Firefox, Chromium, Termite etc) are all children of systemd ...
0
votes
0answers
22 views

How to run python pygame script as systemd service?

I want to run python PyGame script on the Raspberry Pi at startup as early as it's possible. The script itself depends on PyGame and PySerial modules. To achieve desired result I decided to wrap ...
0
votes
1answer
22 views

How can I solve this ordering cycle in a mount unit?

Systemd-analyze is giving me different result depending on how much times I execute it, I'm doing Systemd-analyze verify mnt-HDDs.mount and getting: local-fs.target: Found ordering cycle on HDDs-...
1
vote
1answer
32 views

“systemctl start” does not start a reverse dependent unit while “systemctl restart” does

I have a systemd fw.service unit file which is a requirement for networking.service: # systemctl show networking -p Requires Requires=system.slice fw.service # When the networking.service is in the ...
2
votes
0answers
9 views

filter coredumps collected by systemd

Is is possible to filter the coredumps collected by systemd-coredump? I do not want /var/lib/systemd/coredump/ to be filled up from executables in user writable locations coredumps of software from /...
0
votes
1answer
21 views

libsystemd contains no symbols

I'm trying to compile the following foo.c: #include <systemd/sd-journal.h> int main(int argc, char *argv[]) { sd_journal_print(LOG_NOTICE, "Hello World"); return 0; } with gcc ...
2
votes
1answer
50 views

Can a systemd service depend on a remote systemd service?

I'm trying to write a systemd service that depends on a remote systemd service. Is there any "standard" way of accomplishing something as weird as this? Use case for this is some legacy software that ...
-1
votes
0answers
46 views

How to make systemctl service status aware if we start actual service manually?

I have created a systemd service for starting and stopping service on reboot(usual stuff). I tested it successfully too which is working fine. Now during this testing 1 scenario came where I started; ...
1
vote
1answer
14 views

Is it needed to specify a systemd unit both on “Wants=” and “After=” lines or is “After=” enough?

Let's say, that I have a systemd service type of unit which contains both following Wants= and After= statements: Wants=foo.service After=foo.service Do I really need to specify the foo.service on ...
2
votes
1answer
42 views

auto mount by service + service not mount the folder automatically

we create the following service on redhat version 7.2 more nfsshare.mount [Unit] Description=nfs mount script Requires=network-online.target After=network-online.service [Mount] What=...
3
votes
2answers
138 views

systemd way to disable wlan if wired network is available?

I would like to DOWN wlan0 if the Ethernet cable is plugged in. I am using an Ubuntu system - which uses systemd. Thus I would like a systemd-friendly way to do this. I also want to do the opposite. ...
0
votes
0answers
32 views

Maven application runs alone but not with systemd

I am trying to run Sphinx4-Http-server on RHEL. If I am in the directory /home/alex/Sphinx4-HTTP-server and run the command /home/alex/apache-maven-3.6.1/bin/mvn exec:java -Dexec.mainClass="org.jitsi....
1
vote
2answers
70 views

systemctl list all possible (including disabled) services

I have a "service" that originates from an /etc/init.d/XX script, and a systemd wrapper is generated for it. It doesn't autostart in any runlevel, and when I run systemctl --all or systemctl list-...
0
votes
1answer
41 views

How to fix “.service: Start request repeated too quickly.” on custom service?

I'm learning how to create services with systemd. I get this error: .service: Start request repeated too quickly. I can't start the service any more; it was working yesterday. What am I doing wrong? ...
1
vote
0answers
32 views

Systemd - A Stop Job Is Running

I am on Arch Linux Raspberry Pi. I have a Ruby script that blinks LED light connected to GPIO pin 7 (https://github.com/Souravgoswami/others/blob/master/ActivityBlink/activity_blink.rb). There's no ...
0
votes
0answers
7 views

“failed to insert 'vboxpci' invalid argument”

What cause this issue? systemd-modules-load.service failed "failed to insert 'vboxpci' invalid argument"
0
votes
0answers
18 views

nginx fails to start at boot, but start well afterward

On Archlinux, I'm running a nginx server managed by systemd. The nginx unit is enabled in systemd so it should start at boot. But after each reboot, it fails to start with the following error: ➜ ~ ...
1
vote
1answer
41 views

Is there a systemd alternative to user specified crontabs?

I notice that on Debian related systems, system level crontab scripts in /etc/cron.hourly, /etc/cron.daily... are being gradually decommissioned in favour of systemd timers. Eg: $ cat logrotate #!/...
4
votes
1answer
34 views

Systemd: How do I make sure one unit doesn't run if another is?

I have "serviceA" and "serviceB". "serviceA" is run every 12 hours with a timer and "serviceB" is every 15 minutes. I want to ensure that "serviceA" is never ran if "serviceB" is currently running, ...
0
votes
0answers
38 views

Systemd playing sound (service Linux)

I have this service, running on Xubuntu. [Unit] Description= Controller After=graphical.target [Service] ExecStart=/usr/bin/controller StandardInput=tty-force StandardOutput=journal Restart=always ...
0
votes
0answers
15 views

Running under systemd changes networking how?

For obscure reasons, I started a docker container from systemd. This container has a DHCP server in it. I ran nmap -e eth0 --script=broadcast-dhcp-discover.nse from the command line outside of any ...
0
votes
1answer
23 views

Systemd socket: listendatagram vs listenstream

In this very nice presentation of systemd the first speaker presents two cases of socket-based service activation. The first unit file corresponds to a tftp socket and it is the following tftp....
3
votes
2answers
85 views

Systemd hangs when attempting shutdown

Distro: Gentoo systemd: 242 For a while, on both of the systems I have here, I've been unable to do a proper shutdown (halt, poweroff, reboot). It gets most of the way through shutting down services ...
5
votes
1answer
601 views

How to ask systemd to not start a system service on boot?

I don't want to remove the service, I just want to avoid its start on boot. I still need the option to start it manually later (with the systemctl start <service> command). I tried to use ...
1
vote
1answer
29 views

How to include date+time when directing systemd StandardOutput to a file

I have a systemd service that outputs to a log file with StandardOutput=file:/path/to/log/file StandardError=file:/path/to/error/file How can I prepend these outputs and errors with data+time so ...
1
vote
2answers
33 views

How best to start my systemd service to run multiple apps

I have a one-shot service that calls a script in /usr/ Here my .service file: [Unit] Description = Start apps After = network.target [Service] Type=simple ExecStart=/usr/start_apps.sh [Install] ...
0
votes
2answers
21 views

If e2fsck says output from a mounted file system isnt to be trusted, then how does systemd generate log messages from fs errors?

man e2fsck says; Note that in general it is not safe to run e2fsck on mounted filesystems. The only exception is if the -n option is specified, and -c, -l, or -L options are not ...
2
votes
1answer
49 views

DNS: a “short” query (UDP) does not return an address, but a “long” (ANY, TCP) query does

This is a companion to an AskUbuntu question I posted before I had learned enough to ask this question. (This is for Ubuntu 18.04) By watching the debug output from systemd-resolved, I can do ...
0
votes
1answer
20 views

`systemctl status atop` shows it has failed, but there is no error message

I installed atop, and then immediately upgraded from Fedora 29 to Fedora 30. Now atop failed to start during boot. But there is no error message. It only shows that atop exited with code 7. Why ...
0
votes
0answers
9 views

Does enabling one of the `Accounting=` options in a systemd unit, cause it to be enabled for *all* units?

CPUAccounting= Turn on CPU usage accounting for this unit. Takes a boolean argument. Note that turning on CPU accounting for one unit will also implicitly turn it on for ...
1
vote
0answers
16 views

Correct way to enable a custom target

(I've cross posted this question on the systemd github) I have two daemons, one is a.service, which depends on an instance of b@.service. I will not necessarily know what the name of the b@.service ...
0
votes
0answers
27 views

Why does systemd update trigger to build initramfs?

Today I got a systemd-242.0-3 update (plus some related). After installing that package, terminal shows initramfs is build from scratch. The output is like this: :: Running post-transaction hooks... (...
0
votes
0answers
26 views

Raspbian: Can't see newly created file in /boot on sd card

I am trying to copy a file from the boot directory for a rasbian image in it's boot directory. I would like to write once to the sd card and not have to run rasbian for the file to be in the /home/pi ...
0
votes
0answers
38 views

How to delay starting a systemd service until a path exists

In my case, a service requires a configuration file which is derived from DHCP options; the file gets written by a dhclient hook script. It's not as simple as specifying the service via the Unit= ...
0
votes
1answer
43 views

systemctl check service status with reasonable semantics? [closed]

I'm trying to write code which programmatically check service status, but is also robust to typos in service names. In my opinion a reasonable program to use would have the following behavior and ...
0
votes
2answers
49 views

How to run systemctl command inside ExecStart?

I am trying to restart all the stale sqlrelay connection services using systemd.timer. Systemd service looks like this: [Unit] Description=sqlrelay-state-connection-restart [Service] Type=oneshot ...
1
vote
0answers
20 views

systemd: Retrying a timer

I'm using borgbackup to back up a few systems. They all use the same borgbackup repository. I have written a systemd timer that starts a backup job using borgmatic. I have an Ansible playbook that ...
0
votes
0answers
33 views

How to mount a partition's subdirectory for /var/log/journal?

Our server (Ubuntu 18) has a large partition mounted as /publish/data (its a VM, provided as IaaS so that is how it is mounted when extra disk space is requested), it is defined in fstab as follows: /...
0
votes
0answers
125 views

How to fix `start-limit-hit` trying to start gunicorn on ubuntu 18?

I am trying to start gunicorn on bootup of my machine but when I check the status of my service after enabling and starting it I get an error starting start-limit-hit. I have tried using sudo ...
1
vote
0answers
21 views

Systemd service - custom operation

I have a LSB script launching a daemon with commands like start, stop, restart, but also with custom commands, like start-dump. Is it possible to achieve the same result with only a Systemd service ...
0
votes
1answer
42 views

Ejabberd Victim of Systemd Security Enhancements?

I can't get ejabberd to start on a Ubuntu 18.01 Server that's installed inside a Proxmox linux container. During install I get this error: I read a bug report that suggests that the problem has to ...
0
votes
1answer
22 views

systemd Restart is not working?

I have the following service. /etc/systemd/system/detectwifi.service [Unit] Description=wifi detect automation Requires=wpa_supplicant.service After=wpa_supplicant.service [Service] Type=simple ...
4
votes
1answer
320 views

systemd and copy (/bin/cp): no such file or directory

While manually copying the file the following works, as below: userx@x:~$ cp -rv /opt/test-bak/* /opt/test/ '/opt/test-bak/file1' -> '/opt/test/file1' '/opt/test-bak/file2' -> '/opt/test/file2' ...
1
vote
1answer
69 views

Modern way to configure dummy0 in /etc/network/interfaces or similar?

I am looking for a clean, "modern" way to configure, start, and stop the dummy0 network interface (from the dummy kernel module). My /etc/network/interfaces used to work on an older system but now ...
1
vote
2answers
57 views

NetworkManager interferes with hostname configuration

I'm running an arch system with KDE4/Plasma, wpa_supplicant, networkmanager, systemd ... # cat /proc/version Linux version 5.0.0-arch1-1-ARCH (builduser@heftig-18825) (gcc version 8.2.1 20181127 (...
1
vote
1answer
41 views

Journald Storage=persistent - Just disk or RAM & disk

I am trying to understand what journald does in relation to persistent storage of log entries. I have an SDCard setup so I am looking to keep disk writes to a minimum, but would like some persistence ...
1
vote
2answers
35 views

What's an example use of the “Final component of the prefix” in a systemd unit name?

Systemd allows you to create template units, as documented in systemd.unit. There are a number of variables you can use in your template unit. I'm interested in "%j": This is the string between ...