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 parallelisation of service startup.

learn more… | top users | synonyms

0
votes
0answers
14 views

spamassassin fails start due to no rules, sa-update does nothing?

After upgrading my server to Debian Jessie, spamassassin no longer starts. Logs and such below: Invoke spamassassin using systemctl $ sudo systemctl status spamassassin ● spamassassin.service - ...
0
votes
0answers
12 views

auto restart php-fpm on segfault

I want restart php-fpm after segfaults. I run php-fpm on ubuntu 14.04 trusty. It uses upstart for checking services. I try to set automatic restart with respawn options, but after SIGSEGV php-fpm did ...
3
votes
1answer
29 views

How do I determine the Linux user/group which executes systemd manager jobs?

I am trying to determine which Linux user/group runs systemd jobs so that I can set D-Bus permissions accordingly. When I do this: sudo systemctl start myservice That ultimately calls an ...
0
votes
0answers
24 views

Failed to issue method call: Unit … failed to load: No such file or directory

I have a systemd definition file installed, but systemd fails to use it. What might the trouble be, or how can I debug it? ettin:~# ls -l /etc/systemd/system/efl_test_daemon.service -rwxr-xr-x 1 ...
0
votes
0answers
23 views

systemd difference between start and restart

In /etc/sysctl.d folder we have config files are going to be applied at boot time. I use debian 8 with systemd. And now procps is managed by systemd. Please, help me understand, why service procps ...
0
votes
0answers
46 views

Systemd - run script/unit after system crash

Short version: Is there any simple way how to set up systemd so it runs a script or a unit when system boots after a crash ? And possibly have other units wait on its completion? I suppose I could ...
1
vote
2answers
41 views

How does this variable escaping work in a systemd unit file?

I have a fairly simple unit file for a discovery sidekick service for a server instance I'm running on CoreOS. The unit file looks like this: [Unit] Description=Discovery for frontend server ...
0
votes
0answers
27 views

Can I send a command to stdin of a systemd monitored process

I use systemd to monitor a few gameservers. Some of them accept commands at runtime via stdin. Does systemd somehow allow sending input to processes? Pretty much like journalctl, but the other way ...
1
vote
0answers
13 views

How to group / compose systemd services?

I have three systemd services (Docker containers, but that is not important). All three of these services has to be running for the application to be fully functional. In order to simplify ...
1
vote
1answer
45 views

Is there a way to make systemctl start synchronous

I'm developing/have developed a unit file for the FreeRADIUS project to integrate with systemd. [Unit] Description=FreeRADIUS multi-protocol policy server After=syslog.target network.target ...
0
votes
0answers
18 views

http server for journal events is empty, invalid time stamp?

I'm trying to get going systemd-journal-gatewayd in my environment: $ cat /etc/redhat-release CentOS Linux release 7.1.1503 (Core) $ sudo systemctl status systemd-journal-gatewayd.socket ...
0
votes
1answer
54 views

Systemctl commands timeout when ran as root

Since today when I try to execute systemctl using the root account they fail with a Connection timed out error: >sudo systemctl >Failed to list units: Connection timed out The same thing ...
0
votes
1answer
51 views

Enable coredump centos 7 with systemd

I went through couple of articles after some googling but nothing seems to work. I am using Centos 7. Let me explain what have I done so far. I followed step by step ...
0
votes
0answers
12 views

PostgreSQL install from source on a systemd distro

On my current server I have 2 versions of postgresql installed, postgresql-9.1 and postgresql-9.2 I installed them from source from the postgresql website. The tar.gz folder supplies the install ...
0
votes
0answers
15 views

How to define a systemd.service activated via d-bus

Does anyone have an example, or a link to an example of how to define a systemd .service which is activated by d-bus? My understanding is that if I create a test.service file here: ...
0
votes
2answers
80 views

How can I start named in IPv4 mode using systemd?

How can I configure my Ubuntu 15.04 bind9 to stop resolving queries with IPv6? TL;DR I'm using bind9 on my Ubuntu 15.04 machine. It seems like my named server is trying to resolve alot of queries ...
0
votes
1answer
90 views

Debian Jessie UpStart / Systemd / SysV no more reboot

I have make some test on a Jessie server with Upstart installation and replace it by SysV and the reverse. After this I'm not anymore able to reboot. root@amoo-001:~# reboot Failed to talk to init ...
0
votes
1answer
64 views

iptables not starting upon reboot

I've enabled iptables in systemd with: systemctl enable iptables but after restart when I try service iptables status, it shows: # service iptables status Redirecting to /bin/systemctl status ...
1
vote
0answers
133 views

Slow ssh login - Activation of org.freedesktop.login1 timed out

On one of my servers I've noticed really delay on SSH logins. Connecting using the ssh -vvv options the delay occurs at debug1: Entering interactive session. extract of connection: debug1: ...
0
votes
3answers
123 views

SSH sessions hang on shutdown/reboot

I have a server that runs Debian and sshd on it, and in case I need to reboot the server my SSH session hangs at client side until TCP timeout. I assume this is because when sshd is being terminated ...
0
votes
1answer
46 views

Getting can't resolve host when curling dependencies in systemd

I'm using CoreOS with cloud-init and I'm trying to curl for flannel. I have a unit file as such: [Unit] Description=Run flannel Documentation=https://github.com/coreos/flannel Requires=etcd2.service ...
1
vote
1answer
57 views

Source script before httpd service starts

Back in the good old days I was able to patch /etc/rc.d/init.d/httpd with some additional lines of code that executed on every apache start: start() { echo "Setting variables..." source ...
3
votes
1answer
64 views

Unable to read events from systemd journal gateway

I'm trying to forward systemd logs to the remote host and can't get systemd-journal-gateway working. I can connect to http://localhost:19531/entries?follow but there aren't any entries. In the same ...
0
votes
0answers
52 views

Can I set a multi-line environment variable in systemd's EnvironmentFile?

I need an environment variable like this defined for my application's mail features to work: RUBY_MAIL_SMTP_SETTINGS=' :address: "smtp.example.com" :port: "25" :authentication: :plain :encryption: ...
0
votes
0answers
78 views

Haproxy service fails in centos 7 with certificate in a mounted directory

I am having an issue getting haproxy to load my certificate from a mounted directory when it is started with systemd. I can start haproxy directly as root without issue. Everything works fine if the ...
0
votes
1answer
42 views

Do systemd unit files have to be reloaded when modified?

Let's say I write a mine.service file. Then I use systemctl enable mine.service. If I later decide to edit mine.service, do I have to tell systemd that mine.service was changed? If so, how do I do ...
-1
votes
1answer
41 views

systemd startup script not working

I created a systemd startup script that simply calls a python script with start or stop args .The script works if run manually from the shell but when I run systemctl start foo or systemctl stop foo ...
1
vote
3answers
72 views

How to disable SELINUX for systemd script?

I have a systemd script in CentOS 7 which doesn't run properly unless I disable SELINUX. Is it possible to somehow have SELINUX enabled on the system but disable it only for this systemd script? The ...
0
votes
2answers
67 views

How to grant access to /var/run to postgres on CentOS?

After installing postgres-9.3 via yum in my CentOS 7, its default configuration puts socket in /tmp directory. I have httpd (installed via yum as well) which is by default managed by system.d with ...
1
vote
0answers
99 views

Can I restart dependent service with systemd?

I have created two services, one for a rails app and another for its delayed_job process, I want to restart the delayed_job service everytime the rails service is restarted, can I do this with ...
3
votes
2answers
312 views

Debian Jessie : dhclient always active

On fresh installs of Debian Jessie, after I set a static ip address, the DHCP client is still active. It even revert back to the dhcp ip address when the lease is renewed. step 1: I modify ...
0
votes
1answer
82 views

Services remain in failed state after stopped with systemctl

we have a simple systemd script to start a MineCraft server in a service fashion. The SO is CentOS 7. Here the script: [Unit] Description=Minecraft Server After=syslog.target network.target ...
0
votes
1answer
101 views

Is there a more convenient way to stop (or restart) a detached celery beat process?

Just to clarify things - I am working on a systemd service file celerybeat.service which should take care of the Celery beat. What I am doing at the moment is calling a script which reads ...
1
vote
1answer
167 views

Change systemd unit tag send to journalctl/syslog

Is it possible to change what tag systemd managed service uses for logging? For example, my custom service report-daemon.service defined as # ... [Service] ExecStart=/usr/bin/php # ... # ... shows ...
3
votes
1answer
104 views

get notification when systemd-monitored service enters failed state

I need to have network messages sent when a systemd service I have crashes or is hung (i.e., enters failed state; I monitor for hung by using WatchdogSec=). I noticed that newer systemd have ...
0
votes
2answers
99 views

How to escape spaces in systemd unit files?

My unit file looks like this (already attempted to escape spaces as \x20 like the docs say): [Unit] Description=My Service [Service] Type=simple WorkingDirectory=/home/cobra/my\x20service/ ...
2
votes
1answer
104 views

Issues getting systemd service to start (Jessie)

I've got a systemd service which I need to have run prior to networking having started and I'm struggling with it a little. According to this: Running Services After the Network is up I need to use ...
1
vote
1answer
345 views

CentOS 7 disable predictable network interface names during install

I know I can use net.ifnames=0 biosdevname=0, with grub, to disable predictable network interface names. This names the first interface as eth0 instead of enp0s3, or whatever. How do I specify this at ...
0
votes
1answer
42 views

Find the location of a systemd service

There are many different places where systemd unit files may be placed. Is there a quick and easy way to ask systemd where it read a service’s declaration from, given just the service name?
-5
votes
1answer
50 views

init system vs configuration management [closed]

Best practice: What tasks would you give to an init system like systemd vs a configuration management system like ansible? What I like about starting up services with a CM is portability across ...
1
vote
1answer
103 views

Spamassassin Systemd Error

I am getting an error when trying to start spamassassin (for my postfix server). I think this error might be related to systemd as it worked before I installed the patch (I think). I followed the ...
5
votes
1answer
85 views

How to ensure sshd is the last service to be stopped during shutdown?

I have noticed that when I issue a reboot command, my SSH connection is immediately closed on CentOS 7. It does not mean the server has rebooted, as I can still ping it. It seems systemd is killing ...
1
vote
0answers
96 views

dovecot, postfix, systemctl start never completes, mystery dependency

I've installed Xubuntu 15.04 and right away I was forced to dive right into the gritty details of systemd, systemctl, systemd-analyze. Right out of the box, postfix hangs on apt-get on the configuring ...
6
votes
2answers
1k views

What's the easiest way to make my old init script work in systemd?

I don't want to do the right thing by creating a new systemd script, I just want my old init script to work again now that I've upgraded my system to an OS that's using systemd. I've briefly ...
1
vote
0answers
28 views

How can I get systemd to wait for Avahi to completely stop at shutdown/reboot time?

Specifically, I've got some code that consumes the output of avahi-browse on another machine and occasionally it doesn't see all of the services stopping when a server powers down or reboots. ...
0
votes
0answers
158 views

failed ssh logins DOS: pam_systemd Failed to connect to system bus

After a couple of weeks of script kiddies attempting to login via SSH to my CentOS 7 box on EC2, it eventually stops responding on that port (and to http on port 80), and I have to reboot it. The ...
2
votes
1answer
167 views

How to set the hostname with a script at boot for Debian Jessie?

I have a Debian Jessie installation that I boot with PXE and I need to set the hostname at boot using a script. I used /etc/init.d/hostname.sh with the previous Debian version, but it doesn't seems ...
3
votes
1answer
1k views

How to set the hostname for a Debian Jessie system?

Debian Jessie comes with systemd. The recommendation to set the hostname is using hostnamectl for systemd. However, this command does not work (even to display the current hostname) on the Debian ...
1
vote
0answers
11 views

libexecdir in systemd .service file?

I'm deploying something to machines (internally, not for public consumption) using RPMs. Now, in RPM .spec files there's the %_libexecdir variable. The package deploys a service binary in that ...
3
votes
0answers
102 views

Centos 7 & Hard CPU Limits

OS Version Information: [root@localhost system]# cat /etc/redhat-release CentOS Linux release 7.1.1503 (Core) Configuration for the test.slice is as follows: [root@localhost system]# cat ...