Questions tagged [systemd]

systemd is a modern replacement for the traditional Linux init. Its main features include the ability to express dependencies between services and aggressive parallelization of service startup.

systemd, created by Lennart Poettering and Kay Sievers, is a modern replacement for the traditional Linux init, whether System-V or BSD-style initscripts. Its main features include the ability to express dependencies between services and aggressive parallelization of service startup.

1471 questions
0
votes
0 answers

Systemd service sits in continuous reboot on start but works fine on manual start

We have an application that at one point worked on one of our ubuntu VMs. Recently, it has shut down. I noticed that the application, when i execute systemctl start application, it starts normally, begins the application boot stage properly, then…
0
votes
1 answer

How to pass variables for a systemd unit file that calls a php script?

I am needing to create multiple instances of a systemd service. Is it possible to pass the parameters when starting the service, which would be the params for a php script? For example, let's say I have a script, test_systemd.php, with two…
DevOpsSauce
  • 348
  • 1
  • 5
  • 22
0
votes
1 answer

After= option not working in systemd service file

I have two shell scripts name first.sh and second.sh. The contents of first.sh and second.sh are given below: >>first.sh #!/bin/bash while true do echo The current time is $(date) sleep(1) done …
0
votes
1 answer

How to stop annoying systemd log message: Starting Poll for Ubuntu Pro licenses

How to stop this annoying message? Nov 23 08:44:48 hostname systemd[1]: Started Poll for Ubuntu Pro licenses (Only enabled on GCP LTS non-pro). Nov 23 08:47:48 hostname systemd[1]: Starting Poll for Ubuntu Pro licenses (Only enabled on GCP LTS…
0
votes
2 answers

systemd, journal receiving raw log

one common paradigm on all other syslog implementations (rsyslog, syslog-ng, readlog, etc) is to exchange log entries via UDP514 in plain text format. How do I enable systemd-journal-remote to receive logs in such format? (I know there are plugins…
gcb
  • 344
  • 1
  • 4
  • 18
0
votes
1 answer

Is compiling/testing/using a systemd-resolved not aligned with the version of the rest of systemd present on the system supported?

Is it possible to compile only systemd-resolved from the large systemd sources (without all the rest of systemd) to attempt identify a fix to backport? Can a new systemd-resolved coexist with the rest of a system that is based on an oldish systemd?
callegar
  • 123
  • 3
0
votes
2 answers

How can I find out which program is executed through a PID which is ended

I found there is a program that killed my Apache regularly, according to the log information, I understand there is a program using "/etc/init.d/apache2 stop" to stop apache, since this process is gone, how can I find out this PID belongs to which…
leo
  • 1
  • 2
0
votes
1 answer

systemd script do not set correct file permissions at boot time

I have written a simple service that calls a bash script that should change file permissions at boot time. The issue is that it seems that the service is not working as the permissions are not changed by the time the user logs in. However, when I…
0
votes
1 answer

Systemd: How to automatically start instantiated services after reboot?

I have a systemd service file my_service@.service like the…
Joel
  • 101
  • 1
0
votes
0 answers

How to ensure output from "tee" is shown when used in a script run under systemd

I have a script that I'm running under systemd which has some debug logs that I'd like to send to both stdout (which should end up in the system journal, viewable with journalctl) as well as to a log file on my filesystem. Typically I'd reach for…
mgalgs
  • 345
  • 2
  • 9
0
votes
0 answers

`findmnt` and `ls` still see a physically disconnected external storage drive

Here is an /etc/fstab record example of one of the mounts as per x-systemd.automount and other goodies: UUID=XXXX-XXXX /media/XXXX-XXXX auto…
0
votes
1 answer

RemainAfterExit in Upstart

Is there an Upstart equivalent to systemd's RemainAfterExit? I have an upstart task that exec's a script that completes quickly when the task is started. However, I would still like that task to report as active so that I can subsequently 'stop' the…
0
votes
1 answer

strange messages in the systemd journal

I'm running systemd version: systemd 245 (245.4-4ubuntu3.2) +PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid on…
ilya1725
  • 201
  • 2
  • 7
0
votes
2 answers

systemd service reports "unknown port"

On a CentOS 7 server,I'm creating a new systemd service from scratch for a new service, prometheus-slurm-exporter. (It's an application that exports data from the SLURM scheduler on an HPC cluster.) By default it uses Port 8080, but since that port…
Dave_G
  • 1
  • 1
0
votes
2 answers

How to run service after kernel module is loaded

I have been breaking my head over this the last few hours. On one of my machines the intel-rapl-msr driver is buggy and reloading it fixes the issue. I thought I could trivially create a service that does this on boot. But I can't get the service to…
John Smith
  • 101
  • 3