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

Postfix: newaliases fails at postfix service startup due to aliases.db permission problems

I recently started migrating my mail server to systemd. I have an alias hash map: alias_database = hash:/etc/postfix/aliases alias_maps = hash:/etc/postfix/aliases When starting the service: systemctl restart postfix newalias and postalias…
0
votes
1 answer

Why "--nodetach" option is needed for xsel when it is started from systemd unit?

I'm trying to adopt Alexey Samoshkin's approach to copy text from remote tmux session into local clipboard. I'm using xsel instead of xclip, and systemd user service instead of system one. Here is my working…
0
votes
0 answers

Add DNS options to systemd-resolved /etc/resolv.conf

I am using systemd-networkd and systemd-resolved. I have /etc/resolv.conf being a symlink to /run/systemd/resolve/stub-resolv.conf as recommended. I guess that /run/systemd/resolve/stub-resolv.conf must be auto-generated, so I would like to know if…
0
votes
1 answer

Add IP addresses to systemd-network besides netplan

On an Ubuntu 20.04 server, netplan is used to configure the network. It can configure ordinary static IP addresses but I need additional IPv6 addresses with preferred_lft=0. Netplan can't do that (there's an open bug for that). So I found out that…
ygoe
  • 123
  • 1
  • 11
0
votes
1 answer

Hide systemd units from non-root users

I've set up a number of custom systemd service units that may contain sensitive data in their environment variables. While it's not possible for non-root users to systemctl cat that service, anybody can see all the data through systemctl show. This…
ygoe
  • 123
  • 1
  • 11
0
votes
1 answer

Systemd: Unit-file timeout after start

I have written a bashscript with the following content: #!/bin/bash cd /opt/ut_server/System ./ucc-bin-linux-amd64 server DM-Rankin?game=XGame.xDeathMatch?mutator=AntiTCC2009r6.MutAntiTCCFinal,utcompv17a.MutUTComp?AdminName=admin?AdminPassword=1111…
mncache
  • 3
  • 1
  • 4
0
votes
1 answer

Is it possible to query systemd services not having Restart=always?

I would like to make sure all our services have Restart=always. A list of services with the Restart value would be fine too, I could use grep on that.
bbigras
  • 276
  • 1
  • 7
0
votes
1 answer

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 echo "Starting $UNIT_NAME" > $MYTTY Where the…
Ani
  • 32
  • 2
  • 13
0
votes
0 answers

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 current Elastic sources. vi…
Leos Literak
  • 305
  • 4
  • 13
0
votes
1 answer

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 issue. I dug out a keyboard and a display and could…
codeDr
  • 206
  • 1
  • 2
0
votes
1 answer

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 using the default systemd version that comes with…
tuk
  • 333
  • 5
  • 18
0
votes
1 answer

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 | egrep 'XHC.*enabled'; then echo "XHC" >…
caduceus
  • 305
  • 2
  • 7
0
votes
1 answer

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 cluster with: $ sudo pg_ctlcluster 12 main…
thibautg
  • 99
  • 1
  • 3
0
votes
0 answers

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=notify PrivateTmp=true ExecStart=/usr/sbin/openvpn…
George Y
  • 528
  • 6
  • 16
0
votes
1 answer

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 # # # chkconfig: 2345 20 80 # description: Start up the…
Badashi
  • 103
  • 2