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
1 answer

SSH over VPN displays irrelevent "Please enter password" messsage

I have an openvpn connection to my work network that I use to SSH into my work machine from home. I have this setup using ubuntu's network-manager gui. The authentication into the openvpn network uses a mix 3 things: the standard VPN crt+key a…
Naddiseo
  • 101
  • 1
  • 2
0
votes
1 answer

FreeBSD documentation: syslogd_enable and syslogd_flags in /etc/rc.conf?

I am having problems understanding FreeBSD's documentation on "Configuring System Logging": https://www.freebsd.org/doc/handbook/configtuning-syslog.html The documentation: "By default, syslogd is started when the system boots." So far so good. But…
LongHike
  • 157
  • 1
  • 6
0
votes
1 answer

Issue running Golang server binary as a service with Systemd

I am trying to run a Golang server binary as a service with Systemd on Centos 8, but I get an error. This is my script…
Daniele B
  • 367
  • 1
  • 4
  • 14
0
votes
1 answer

systemd not restarting a process that depends on another process being up

I tried the fix here: systemd not restarting my process and that didn't work for me. I have a Kafka exporter for Prometheus. I have Kafka running on the same computer. When I stop Kafka, the Kakfa exporter dies (it depends on being able to…
0
votes
1 answer

What is more effective: running a script with a loop or having systemd execute it with a timer?

I would like to have a (bash) script executed once or twice every second in the background. I see two possible solutions: Include a loop in the script (with a sleep command) and execute the script once. Include no loop and have the script executed…
Nos
  • 103
  • 3
0
votes
1 answer

How to have a systemd unit restart upon OpenVPN client connection

For general purposes it would be nice to know how to detect network changes and restart services - but my specific use case is wanting to restart sshd after my OpenVPN client connects. Without extensive reconfiguring the default services (which I…
Daniel Miller
  • 209
  • 4
  • 7
0
votes
1 answer

Control a systemd service through a web application built in python3

I have created a web app in python3 which is hosted on an apache2 web server using the WSGI module. Now one of the requirements of the web application is that it needs to restart a systemd service based on some user inputs. Now I know there is os…
DG12
  • 1
  • 1
0
votes
3 answers

What determines the user a services started

I thought, that the service files under /lib/systemd/system/ determine as what user a service is started. But apparently that's not (always) the case. Here's an example: ~# ps faux ... whoopsie 1445 0.0 0.1 388420 12604 ? Ssl 08:22 0:00…
geets
  • 35
  • 6
0
votes
1 answer

How to create files inside a systemd unit's private tmp dir?

For one service I need a couple directories available inside /tmp. But I also want to use systemd's PrivateTmp=yes. Is there something like AssertPathExists=/tmp/x that also creates the path? edit: some more clarity systemd's privateTmp creates a…
gcb
  • 344
  • 1
  • 4
  • 18
0
votes
1 answer

Can I use Ansible systemd module to halt CoreOS system?

I just need a simple playbook or ad-hoc syntax to shutdown a group of CoreOS hosts. Something tells me I may need to use the shell module, which truthfully wouldn't be awful. The proper way to shutdown a CoreOS host is 'systemctl poweroff'.
mr.zog
  • 923
  • 3
  • 20
  • 39
0
votes
1 answer

systemctl enable sidekiq: Failed to issue method call: Access denied

I am trying to implement Sidekiq using Systemd on Ubuntu 16. I am logged in as deployer. I navigated to the /lib/systemd/system directory and wanted there to create a file: nano sidekiq.service. However, I received an error message because of…
user984621
  • 135
  • 1
  • 1
  • 7
0
votes
1 answer

Increase open files limit of systemd service

I have systemd running inside a docker container and I'm trying to set Number of File Descriptors limit for the service. I set the limit on the docker container to 262k, but for some reason the /sbin/init process lowers the limit to 65k. Here's a…
Limon
  • 111
  • 2
0
votes
0 answers

Linux OS hangs at boot due to daemon systemd service fault

i have a python script that does infinite loop on functions written, and i have added this to systemd as service so i want to run python script at background and control its from systemctl. sudo vi…
Maria628
  • 101
0
votes
1 answer

can't boot to ubuntu because of 100% disk & infinite service restart

i have a ubuntu server that has system service, the system service are won't run (and always restarted) because of the disk usage are 100% (no space left on disk), is there any way to login into ubuntu in this situation ?
0
votes
1 answer

Execute a script while boot up in RHEL7, not working

I have created below script in RHEL 7.6, but unfortunately getting EXEC format error. When i execute the command from working directory it's working fine. below is the service file which was created at /etc/systemd/system/zauto.service vi…