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.

Filter by
Sorted by
Tagged with
0
votes
1answer
10 views

How ot list systemd services by memory usage

I'd like to see which systemd services consume the most amount of memory. Is there a way to list all running (and/or enabled) systemd services by memory usage?
2
votes
1answer
39 views

Finding out why service being terminated

Using journalctl -u docker I noticed May 30 10:01:43 xxx systemd[1]: Stopping Docker Application Container Engine... ... docker specific error log in between ... May 30 10:01:51 xxx systemd[1]: ...
0
votes
2answers
24 views

Can you upgrade package while it is still running?

We have a Debian package which we want to upgrade. It installs a set of java jars, which run as a systemd service. Can the package be upgraded while it is still running? My understanding is, yes, ...
0
votes
0answers
20 views

systemctl restart ntp failing with error: unable to bind to wildcard address

We're running ntpd Ver. 4.2.8p4 on Ubuntu 16.04.6 LTS on ~100 physical servers distributed worldwide, with the configuration file /etc/ntp.conf managed centrally via puppet. If the configuration is ...
0
votes
0answers
40 views
+50

Can many script instances write to tty (parallel)?

I have recently migrated my upstart scripts to systemd, unlike upstart, I don't see any output on the tty for services being started/stopped. To get that visual feedback, I added something like ...
0
votes
0answers
23 views

Tomcat 9 Service on Centos 7 won't start up at system boot

I'm not very experienced with Linux generally, so please forgive me if this is obvious to you. I have done a large number of searches on various combinations of keywords, but can't find a solution to ...
0
votes
0answers
22 views

Systemd starts unknown openvpn instances - how could I disable this?

this is my output by tail -f /var/log/syslog/. May 26 08:02:29 ovpn-server systemd[1]: openvpn-server@ovpn-42.service: Main process exited, code=exited, status=1/FAILURE May 26 08:02:29 ovpn-server ...
0
votes
0answers
62 views

How to configure Systemd service unit to start Node app with “npm start” instead of “app.js”

Environment: CentOS 8, Node.js, Digital Ocean Droplet My Systemd setup starts a node app with the following command. It works as expected. $ sudo systemctl start myapp File 1: /etc/systemd/system/...
0
votes
0answers
20 views

How do I disable systemd-networkd.service so that connman.service can enable DNS?

I have Automotive Grade Linux (Halibut 8.0.0) installed on a Qualcomm board. This is an embedded system with no package manager, no build tools and no working DNS, but I can bring up ethernet okay. ...
1
vote
0answers
45 views

View systemctl service process

I have a minecraft server running as a system service and wish to check up on it. I know I can do systemctl status minecraft.service but that doesn't let me see the java process's output and/or input ...
0
votes
0answers
9 views

Elasticsearch systemd setup

I am configuring Elasticsearch 2.3.3 (yes, outdated) on CentOS 7.7. We were running it on CentOS 6 with InitV script. I followed this specification to create systemd script and get inspired with the ...
0
votes
0answers
7 views

Debian Stretch systemd timer timezone

On Debian Buster I can specify a timezone in my timer override unit: [Timer] OnCalendar= OnCalendar=02:00 CET RandomizedDelaySec=300 On Debian Stretch this gives me following Error: systemd[1]: [/...
0
votes
1answer
16 views

sshd fails to login user

I could not ssh into one of my servers this morning after successfully doing so most recently yesterday. ssh hostname Connection closed by hostname port 22 I rebooted system and it did not fix the ...
0
votes
1answer
44 views

Failed to activate service 'org.freedesktop.systemd1': timed out in Ubuntu 16.04.6

On ubuntu 16.04.6 on trying to mask a systemd service. I am seeing errors like below. systemctl mask hadoop-hdfs-zkfc.service Failed to activate service 'org.freedesktop.systemd1': timed out I am ...
0
votes
1answer
30 views

profile.d script permission denied

I'm trying to disable ACPI wake on usb in Ubuntu 20.04 So I created a script in /etc/profile.d -rwxr-xr-x 1 root root 110 May 18 00:23 disable-usb-wake.sh #!/bin/sh -e if cat /proc/acpi/wakeup | ...
0
votes
1answer
20 views

How to start PostgreSQL on boot on Debian Buster

I have upgraded PostgreSQL from version 9.6 to 12 in Debian 10 Buster. I'm currently running the 12 cluster, and I'm keeping the 9.6 cluster installed, but not running (down). I can start the 12 main ...
0
votes
0answers
17 views

Systemctl cannot run Script command on openvpn

It is weird that the /usr/lib/systemd/system/openvpn@.service is a simple task: [Unit] Description=OpenVPN Robust And Highly Flexible Tunneling Application On %I After=network.target [Service] Type=...
0
votes
1answer
19 views

RHEL 7.8 - Different behaviors between `service X start` and `systemctl start X`

I'm currently setting up a RHEL 7.8 tomcat service and I'm having trouble with the service and systemctl commands. Context: the following file was set up on /etc/init.d/tomcat: #!/bin/bash # # # ...
0
votes
0answers
10 views

Issuing reload through systemd causes nginx to stop in case of a bad config

According to all the docs online (and my own memory), doing systemctl reload nginx should be a safe operation, that performs a config syntax check before reloading the server. Yet, it seems on my ...
1
vote
1answer
65 views

Diagnosing high CPU usage by systemd on Ubuntu 18.04

Not sure exactly when this started, but in the last few days I think. I have Ubuntu 18.04 installed on a server, and noticed its load was incredibly high. It's almost doing nothing (I've installed 2 ...
0
votes
0answers
21 views

Systemd refuses to start a service when StandardInput is defuned in the service file

I need to make a service running under TTY. Tried million combinations and configurations and whatever I try resulted into a service not starting at all if a StandardInput=tty/force-tty/or-anything-I-...
0
votes
0answers
60 views

Could not set DHCPv4 route: Nexthop has invalid gateway. Network is unreachable

/etc/netplan/00-installer-config.yaml # This is the network config written by 'subiquity' network: ethernets: ens192: dhcp4: true version: 2 /run/systemd/network/10-netplan-ens192....
1
vote
1answer
32 views

Prevent a systemd service from starting if another systemd service is running

In systemd (v237 on UbuntuLinux 18.04 bionic), I can create a service file (for A.service), and specify another service Requisite=B.service. Meaning if I try to start A.service and B.service isn't ...
0
votes
1answer
24 views

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 ...
0
votes
0answers
42 views

PHP binaries are deleted every hour for no apparent reason and other issues

Since yesterday I am fighting with very strange issues on one of our servers. Environment: We use proxmox to run few LXC containers based Debian virtual machines. Yesterday night something happened ...
1
vote
2answers
42 views

Letting systemd service to stop later without blocking on `systemctl stop`

I have bunch of services responsible for running action consumed from the queue. I want to be able to restart services gently (without interrupting action which're already running) It can be solved ...
0
votes
1answer
30 views

Systemd Reload caused MySql restart

This morning MySQL crashed on my server, and after further investigation, it looks like systemd reloaded which caused MySQL to go down. I found these lines in the syslog at the moment everything went ...
0
votes
1answer
159 views

Docker-ce suddenly broke - cannot reinstall, hangs in systemd service enable

I know my question may be too generic but please bear with me for a moment: I use ubuntu 18.04 LTS, and had docker-ce installed (using the official install procedure described in https://docs.docker....
0
votes
1answer
15 views

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 ...
0
votes
1answer
38 views

How does KillSignal interact with TimeoutStopSec in systemd?

Can someone let me know the following about systemd service shutdown sequence If I have specified KillSignal=SIGTERM then how does this interact this TimeoutStopSec ? Does this mean that during ...
0
votes
0answers
13 views

Start-Stop service from systray (systemd, maybe Win Service)

Assume I have a package (e.g. *deb) which I install with the package manager. Is it possible to install with a tool which installs an icon on the systray, which allows to just start and stop the ...
1
vote
1answer
46 views

NFS server daemon fails to start at boot

I´m trying to export an external disk, so, I configured my nfs-server service to wait for disk1 to mount, however it fails. This is the situation after boot: $ systemctl status nfs-server.service ● ...
0
votes
1answer
111 views

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 /etc/systemd/system/myserverapp.service [Unit] Description=MyServerApp [...
0
votes
1answer
69 views

Wireguard VPN + OpenVPN VPN leads to DNS resolution failure for the OpenVPN tunnel

I have two VPNs - one via wireguard for my general internet traffic, one via openvpn (for work). DNS resolution over openvpn is only partly working. With both tunnels up: A) systemd-resolve needs to ...
1
vote
0answers
32 views

PostgreSQL 9.5 not listening; cluster is down; “too many levels of symbolic links”

I'm working on a remote VPS running Ubuntu 16.04 LTS. After a software update (apt upgrade) in which postgresql-common was updated, my PostgreSQL 9.5 server stopped listening on any port. # All ...
0
votes
0answers
22 views

systemd: Requires vs BindsTo?

I have two services running on the same machine, A and B. A is server, B is client A can running alone, but B must have A running before it can start if A crashes, stops, or restarts, B must stop or ...
0
votes
0answers
9 views

Is there a place to track the package versions included in distribution releases?

I'm specifically looking for Fedora/RHEL/CentOS, but a general solution would be fine... I'm looking for a place to track what package versions of applications are / will be included in certain ...
1
vote
0answers
20 views

Running backup script at shutdown (using rclone utility)

General: I want to run a back-up script during shutdown (not reboot). I've tried tons of systemd's service configuration, but no one is working. Aim: When PC is shutting down I want to perform a ...
0
votes
1answer
16 views

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 ...
1
vote
1answer
155 views

NodeJS React Systemd Service not working

I am trying to set up a systemd service for a simple react application. This application is hosted in /home/myuser/test. Both npm and node are in the PATH and hard linked to /usr/bin. All the files ...
0
votes
2answers
110 views

systemd service file always does start and stop

have created a new systemd service for botpress If I do systemctl start botpress.service it Starts all the botpress stuff then immeaditly runs the ExecStop stuff. Systemctl starts fine if I ...
0
votes
1answer
33 views

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 ...
0
votes
1answer
37 views

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 ...
1
vote
0answers
23 views

pre launching systemd user processes

I've configs in place to start resque-first.target, then resque-metro.target and finally resque-prisma.target, but for some reason they all start at the same time systemctl --user cat resque-worker....
0
votes
0answers
63 views

Tomcat 9 not starting on Debian 10

I installed Tomcat 9 using APT on Debian 10, it was correctly installed but unfortunately it is not starting because of this error: root@wiki:/ (16:41:51)# systemctl start tomcat9 root@wiki:/ (16:41:...
0
votes
1answer
78 views

a stop job is running for /nfs - server will not shut down

I have an nfs mount on my base system, which, is targeted at a VM on that host. When shutting down the system, the VM went down first and and my base system was stuck trying to unmount the disk: [ ***...
0
votes
1answer
23 views

Control a systemd service through a web application built in python3

I have created a web app in python3 which is hosted on a 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 ...
0
votes
0answers
34 views

systemd not taking changes and reload

I created and override for mariadb [root@ip-10-0-0-50 mysqld.service.d]# cat /etc/systemd/system/mysqld.service.d/override.conf [Service] LimitNOFILE=65535 [root@ip-10-0-0-50 mysqld.service.d]# I ...
0
votes
0answers
6 views

Systemd restarts bound service when parent service is restarted

I have configured a systemd unit child.service with a BindsTo option: # child.service [Unit] BindsTo=parent.service so that child is stopped whenever parent is stopped/fails/... and it does the job. ...
0
votes
0answers
30 views

How to make `needrestart` not defer restarting some services

With unattended-upgrades duly set up to automatically do upgrades, reboots and all, I'm stumped to find output like this in its daily report sometimes: ... Restarting services... /etc/needrestart/...

1
2 3 4 5
22