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

On RedHat 8, is using SUDO to perform tasks as privileged (like starting a systemd service) user deprecated in favor of using PolicyKit?

Just a bit of context... I got some legacy System V Init script that were converted to Systemd unit configuration files for RedHat 7. Problems with abrupt termination of user processes running in the user.slice led me to the discovery that…
Francozen
  • 163
  • 5
0
votes
0 answers

Does something remember network state at Linux reboot?

I have two systems using keepalived with scripts which run at all state transitions (backup, fault, master). At bootup these scripts document the network configuration (ip addr, ip ro) when they are launched (master state is assumed thus running…
0
votes
1 answer

How to set cpumask at boot with systemd?

I have the following service: [Unit] Description=foo [Service] Type=oneshot RemainAfterExit=true ExecStop=/opt/script/bar.sh [Install] WantedBy=multi-user.target And bar.sh: #!/bin/bash echo 1 > /sys/bus/workqueue/devices/writeback/cpumask cat…
HCSF
  • 245
  • 3
  • 14
0
votes
1 answer

How to run openVPN from a subdirectory

I am trying to setup a network using openVPN When my file structure looks like this it works fine: /etc/openvpn /client client-01.conf client-01.key client-01.crt ca.crt systemctl start…
HubertNNN
  • 111
  • 1
0
votes
1 answer

How can I have systemd auto-start a service after a manual service is started?

I have a server with an encrypted filesystem which must be manually brought online after a reboot. Some services require that encrypted filesystem to be mounted in order to read configuration/data files, etc. Is there a way to tell systemd that…
Christopher Schultz
  • 1,105
  • 2
  • 12
  • 22
0
votes
1 answer

Using $PWD in a systemd unit

I would like to use the variable $PWD in a systemd service file but it appears that it is always empty even though I have set an explicit…
Leonard Ehrenfried
  • 371
  • 1
  • 3
  • 8
0
votes
3 answers

delete folder /usr/lib/systemd/system which consequence now

last time i delete the folder system in /usr/lib/systemd/system.I don't know how, but how important is the folder system for the ubuntu server 18.04 ? What consequences should I expect? kind regards, blackbeard
beard black
  • 67
  • 2
  • 14
0
votes
2 answers

Where's my `stub-resolve.conf`?

I'd like to start using systemd-resolved on Oracle Linux 7.6. I'd like to use it in the mode where /etc/resolv.conf is just a symlink to /run/systemd/resolve/stub-resolv.conf having just nameserver 127.0.0.53 as a content. I've installed…
Bernard Halas
  • 135
  • 1
  • 9
0
votes
0 answers

can't access my tomcat service for high port like 8443,8080 as non-root user

im running on my ubuntu server tomcat. I can start the service as root and can access my localhost:8443server.If i started the service as non-root like tomcat,the service will be started as tomcat ,but can't access my localhost:8443 webserver or…
beard black
  • 67
  • 2
  • 14
0
votes
1 answer

Docker failed to start

Today I have an issue with docker, It stopped and I cannot start it systemctl status docker ● docker.service - Docker Application Container Engine Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled) …
WebMaster
  • 113
  • 5
0
votes
1 answer

Struggling to get openvpn client to start at bootup CentOS 7

I'm attempting to configure an openvpn client on a raspberry pi 3 b+. The raspberry pi is running CentOS 7 armhfp. I installed openvpn from the EPEL repository for armhfp platforms. I've placed my config and associated keys and auth file in…
dutsnekcirf
  • 249
  • 2
  • 4
  • 16
0
votes
1 answer

start service over systemd as non-root to bind port 80, 443

im running tomcat on my ubuntu 18.04 headless server as root. Like in apache or nginx you can start a service as non-root with systemd and only root will start the master process to bind the ports 80 & 443. So i will using the same start process…
beard black
  • 67
  • 2
  • 14
-1
votes
1 answer

SSH always fails to start and status is activating

I am running open-ssh 7.8p1 on Redhat 7.0. I downloaded the package and executed the commands in order to install the package: ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-privsep-path=/var/lib/sshd --with-pam…
-1
votes
1 answer

systemd-resolvd seems to make up a non-existing AAAA entry?

One of my worker servers is experiencing problems connecting to a central server. This happened suddenly, it worked earlier, and it still works on an identical other worker. After some inspection the problem turns out to be this: root@svc1:~#…
Bart van Heukelom
  • 1,199
  • 6
  • 21
  • 41
-1
votes
1 answer

How to create failure log file owned by syslog while running systemd service?

I am running Go binary as a service on ubuntu 16.04,and not able to create log file which is owned by syslog. I have created a services for myapp.service and it looks like as…