Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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.

0
votes
1answer
18 views

mariadb service script doesn't create /var/run/mysqld

I have issues starting a MariaDB service on a Centos 7 server, because the directory /var/run/mysqld/ is not created by default, as well as the /var/log/mysqld.log file. Creating this directory and ...
1
vote
0answers
17 views

Why is systemd's default target is graphical on AWS stock image

I noticed that on stock AWS Debian image (both Stretch and Jessie), the default target as reported by systemctl get-default is graphical.target. AFAIK, systemd's graphical.target is equivalent to ...
0
votes
1answer
12 views

upgrading systemd from backpor 215-230 [on hold]

Hi i have been tasked with little resarch so apart of testing via VM i also ask: I need to upgrade systemd 215 to 230 on live server on which services are running, its per say streaming server. One of ...
0
votes
0answers
12 views

Using systemd instead of pm2 [on hold]

I am maintaining a server which runs node applications. These applications are managed with pm2. I am thinking of cleaning up the script-chaos that comes with the grown ecosystem of these apps. So I ...
0
votes
0answers
10 views

systemd-networkd fails to run DHCPServer on trunk port with multiple VLAN interfaces

I'm trying to configure a Linux host running systemd-networkd on a switch trunk port. The host has a single interface, enp4s0. There are only a couple VLAN ports in the switch, others are untagged. I ...
0
votes
2answers
13 views

Can I alter the After= of an active systemd unit?

I have an NFS filesystem that contains ext4 filesystem images. A Linux box mounts one of those, via an implicit /dev/loop<n>. But when systemd reboots, it apparently shuts down NFS before ...
0
votes
0answers
12 views

How do I start an ssh server on a remote machine even if some (other) service failed to start during boot?

I have a personal server running Ubuntu in a location where I don't have physical access for long periods of time. I start the server on demand via a magic WOL packet from another computer on the ...
2
votes
2answers
45 views

Systemd: Tell if script was run by systemd or by user

How can I tell if a script was called from systemd or from a user? I created a service for an old school daemon. We just switched to systemd and some of my admin like to call the rc-script directly. ...
0
votes
0answers
9 views

How can I stop systemd from setting VirtualBox's host only network as the default route? [migrated]

I set up a VirtualBox instance running ArchLinux with two network adapters. Adapter 1 is attached to a NAT (10.0.2.0/24) and Adapter 2 is on the host only network (192.168.56.0/24). I use udev rules ...
0
votes
0answers
14 views

systemd[1]: Failed to reset devices.list on /system.slice: Invalid argument

I get this strange failed-message every night after systemd stops and starts certain services: Aug 13 03:36:04 systemd[1]: Stopping Zabbix Agent... Aug 13 03:36:04 systemd[1]: Starting Zabbix Agent......
0
votes
1answer
11 views

Do I need a dovecot.socket?

My email server with dovecot works fine. I turned off IPv6 and encountered the following error in syslog: systemd[1]: [/lib/systemd/system/dovecot.socket:8] \ Failed to parse address value, ...
1
vote
0answers
10 views

One Dbus message triggers multiple systemd services

How can I trigger multiple systemd services when a dbus signal is lauched. I'm trying to do so for org.freedesktop.hostname1 by creating a service like: [Unit] Description=Set host name [Service] ...
0
votes
1answer
12 views

Starting Redis in systemd with Auth

Does anyone know how to pass the auth to redis "when it is started in systemd." You have to use a custom init script here. Mine is the following: [Unit] Description = Redis In-Memory Store After = ...
0
votes
1answer
51 views

Get systemd actual state

How can we know if systemd has finished to boot the system ? I don't want to execute on cron job if the system is actually on boot process because of missing network connectivity. My script launched ...
0
votes
1answer
40 views

How to set umask for Apache on Amazon Linux 2 AMI

I want to set umask 0002 for Apache httpd so that certain files that it creates will be writable by other users. The traditional solutions don't seem to work on Amazon Linux 2 AMI.
0
votes
1answer
44 views

systemd trying to start MariaDB twice (mariadb@multi-user.service vs mariadb.service)

systemd on my system seems to be trying to start MariaDB twice. This first try succeeds, so my system has no real problems, but the second try creates spurious error messages since all the relevant ...
2
votes
1answer
174 views

OpenVPN on Debian is rejecting connections and systemd just runs /bin/true?

I'm extremely confused by this, and it seems completely wrong but I have no idea how so I'll start from the beginning. I configured openvpn on my Debian server using this guide. After I copied the ...
0
votes
1answer
13 views

How to restart ntopng systemd?

There used to be a file in the /etc/init.d/ folder to restart ntopng. The command that I used to use is: sudo /etc/init.d/ntopng restart But now with Ubuntu 18.04, that file is gone. How do ...
0
votes
0answers
19 views

Staggered services with StopWhenUnneeded

I am using a combination of WantedBy and StopWhenUnneeded to control a number of services via a target. I've drawn up a parallel example using iperf: iperf-copy01.service [Unit] Description=iPerf3 ...
0
votes
0answers
18 views

managing a process with supervisord instead of sytemctl

I have a VPN service that I would like to manage through supervisord. When the VPN service installs itself, it makes an entry in /etc/systemd/system/pgateway.service. Contents below: [Unit] ...
0
votes
1answer
28 views

reverse ssh using systemd-cron is not connecting [closed]

I have a script that checks my home rpi2 for a file using ssh, pk auth, if the file exists it deletes it (again ssh pk auth) and opens a reverse ssh with: ssh -fN -R xxxx:localhost:22 user@...
0
votes
1answer
25 views

What's the difference between poweroff.target, halt.target, reboot.target, shutdown.target and a bunch of others?

Systemd defines a bunch of special targets that all relate to shutting down a system, like the ones listed in the title of this post. There seem to be more. man systemd.special gives definitions for ...
0
votes
0answers
11 views

Error compiling script /etc/polkit-1/rules.d/40-allow-passwordless-printer-admin.rules

I have a workstation (running Arch Linux) which shows the following messages in the journal. Jul 30 14:33:59 workstation polkitd[571]: Acquired the name org.freedesktop.PolicyKit1 on the system bus ...
0
votes
2answers
56 views

systemd, override, slapd daemon fails

I've tried to override the standard slapd (OpenLDAP) daemon start parameters with systemd, but as soon as I override the ExecStart, the daemon fails to start. My questions is why it fails and how I ...
0
votes
1answer
19 views

A systemd service won't run for an app

I want to create systemd for "RAILS_ENV=staging bundle exec rake jobs:work" I have this: $ sudo cat /etc/systemd/system/my_bg_jobs.service [Unit] Description=bg jobs After=syslog.target [Service] ...
0
votes
1answer
13 views

Django deployment with gunicorn socket set up with systemd, gunicorn not honoring gunicorn.conf file settings on Debian 9.4

I followed the systemd deployment instructions here at http://docs.gunicorn.org/en/stable/deploy.html /etc/systemd/system/gunicorn3.service: [Unit] Description=gunicorn3 daemon Requires=gunicorn3....
1
vote
1answer
28 views

Is there a way to automatically add network interfaces to systemd-networkd and/or netplan?

I'm currently building pre-configured disk images for Ubuntu 18.04 servers. While the hardware is mostly the same, there are a few different network interfaces between the devices (and some are ...
0
votes
0answers
27 views

How to prevent Icinga's disk check from interupting idle NFS mounts?

I have a mount and automount unit pair for systemd, that mounts a NFS share from another host when needed. It is unmounted automatically after 60 seconds of idle time. Works fine so far. But if I ...
1
vote
0answers
25 views

`systemctl show` outputs incorrect MemoryCurrent value

on one box, systemctl show get an incorrect value for unit memory usage: $ systemctl show crond | grep MemoryCurrent MemoryCurrent=18446744073709551615 18446744073709551615 == UINT64_MAX, this must ...
0
votes
0answers
42 views

Why is the gunicorn.socket file not being created in the /run directory?

Full disclosure I originally had a gunicorn.socket file in the run directory, but I stupidly deleted it because I thought it might solve another issue. Now I can't seem to get it back. Am I out of ...
0
votes
1answer
21 views

How can I start a systemd service after one of its dependencies starts?

I'm on a Debian jessie system. I have configured the cron service to depend on the slapd and the nscd services. I have done this by creating a systemd "drop-in" config file here: /etc/systemd/system/...
0
votes
2answers
44 views

systemd : get status of target's sub jobs

TLDR How do I get a view of the status of all services on a target ? something like : # obviously, 'systemctl status' does not have this output : $ systemctl --user status service.target service....
0
votes
1answer
8 views

How to get all running default values of systemd system.conf?

We could list all running default values of kernel parameters with sysctl -a. Is there a way to list all running default values of systemd system.conf as well?
0
votes
0answers
11 views

Linux systemd Link-Local maximum retries

I have question about Linux systemd network settings. When I connect the cable, then connman starts DHCP, after DHCP fail, than it starts IPv4LL (Link-Local). When the Link-local IP address was ...
0
votes
0answers
82 views

Clamav detecting false positive

I've just runned a clamscan on the entire disk and it logged the following: /usr/bin/systemd-mount: Unix.Trojan.Vali-6606621-0 FOUND ----------- SCAN SUMMARY ----------- Known viruses: 6578095 ...
0
votes
1answer
85 views

Postgresql wont start anymore

Debian 9.5 - postgresql cluster 9.4. It's not a fresh installation - it was a perfectly decently running system, until I tried restarting the service all commands: /etc/init.d/postgresql start and ...
1
vote
1answer
88 views

unkown cause for systemd failure state - systemd-logind cannot start org.freedesktop.systemd1 after server reboot

Basic information Red Hat Enterprise Linux Server release 7.4 (Maipo) component: systemd Hardware: x86_64 Linux [root@scvberpat01 log]# uname -r 3.10.0-693.21.1.el7.x86_64 General description ...
0
votes
1answer
60 views

How to run clamd by systemd as daemon on Centos 7

# rpm -q centos-release centos-release-7-5.1804.el7.centos.2.x86_64 # rpm -qa clam clamav-filesystem-0.100.0-2.el7.noarch clamav-data-0.100.0-2.el7.noarch clamav-lib-0.100.0-2.el7.x86_64 clamav-...
0
votes
1answer
51 views

Redis not starting on boot with systemd but works with manual start

I have installed redis on Ubuntu 16.04 according to the digialtocean guide. It uses systemd and should start on boot. I can start redis from cli sudo systemctl start redis and it works with no ...
0
votes
1answer
120 views

Apache won't start with systemd

I've run into an issue where enabling the PHP driver for MS SQL Server [1] causes Apache httpd to timeout after three minutes when started with systemd (systemctl start httpd). Apache functions fine ...
0
votes
1answer
27 views

Is systemd right for this task?

Currently, there's a fairly complex Python script that manages several dozen processes across a few servers. Each individual process has the same setup/requirements: Main process must come up and be ...
0
votes
0answers
39 views

systemd timer OnCalendar is not restarting

I have a problem with systemd timers. I want to run a bash-script every minute. This is my runmyscript.service file: [Unit] Description=RunMyScript [Service] User=myuser Type=simple ExecStart=/bin/...
0
votes
1answer
53 views

systemd cannot restart service file

I have written a bash script which I want to run every 60s (don't worry, I have tried the Script out, it runs perfectly). Now I wanted to implement it in systemd .service file, but so far it doesn't ...
0
votes
1answer
43 views

systemd unit alias (symlink) missing for syslog-ng / syslog

I am having issues with an Ubuntu 16.04.4 machine running systemd and syslog-ng (3.5.6-2.1), where messages logged to syslog by a process (let's call it X) were not received by syslog-ng. Digging into ...
2
votes
1answer
41 views

systemd not restarting my process

I have the following service configured: [Unit] Description=HB service started [Service] Restart=always # or always, on-abort, etc RestartSec=3 WorkingDirectory=/home/debian/hb/program ExecStart=/...
0
votes
2answers
15 views

systemd deletes sub-cgroups started by other services

I have a service (HTCondor batch system), which is started as service unit within cpu,cpuacct and memory cgroup slices (CentOS 7 @ 3.10.0-*). The service starts sub-processes (~~> batch jobs) for ...
0
votes
0answers
56 views

Systemctl doesn't see a service running

I’m having a strange issue with systemd and sshd. I have an OpenVZ container. When I login into it from hardware node as root, systemctl shows that sshd service is up and running, but when I ssh from ...
1
vote
1answer
21 views

systemd unit processes are ignoring sticky bits (sgid) on dirrectories

I have a user vopi under which a systemd service is started (user-mode). The service is a python script that should write a file to a shared directory under path /usr/local/myfolder The group set to ...
1
vote
0answers
150 views

Allow non root user to run certain systemd services (not *), without a password by using a polkit rule

I have a non root user that I need to have able to start/stop/restart a subset of services on my system without prompting for an authorization password. Ideally I would like this done via polkit but ...
2
votes
1answer
78 views

Net bind capability with systemd

I am deploying Goldfish, an interface for Vault, in production on a server dedicated to secrets management. So security is of prime concern here. I am trying to deploy the service with systemd on an ...