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
1answer
16 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
0answers
38 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
44 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
22 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
31 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
28 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 ...
4
votes
0answers
39 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
25 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 ...
4
votes
1answer
61 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
13 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. ...
-1
votes
0answers
20 views

“Environment” not working in systemd unit file [duplicate]

I'm trying yo make Unit file for some software. I can't create variable for later use. Example: [Service] Environment="FOO=default_foo_value" ExecStart=/bin/service $FOO Seems legit. I saw many ...
0
votes
0answers
25 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 ...
-1
votes
0answers
33 views

Is there a way to write the ip-address of an interface to a file when it comes up? [migrated]

I'm looking for a way to trigger writing the IP address of a host to the file /etc/environment once the networking is up. Right now, all my IP's are static. I'd like in future for them to be DHCP as ...
2
votes
1answer
71 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 ...
1
vote
1answer
140 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
5 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 ...
2
votes
0answers
44 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 ...
2
votes
1answer
50 views

getting logs from systemd unit into flat files and logstash

I'm running an application under systemd within CentOS 7. It logs to stdout and systemd is capturing that into journalctl just fine. I'd like to also: get a rotated text log file also saved to the ...
0
votes
0answers
26 views

How can I store systemd-cgtop output in a text file

I want to store the result of system-cgtop in a txt file for 5 iterations. I am aware of the batch mode and I tried to do it with the following command: systemd-cgtop -b -n 5 >> result.txt ...
1
vote
1answer
194 views

systemctl throwing errors on start/enable after package instal [duplicate]

In the effort to lock down a new Centos box I am building I am installing iptables. I would like to be able to put this in a script so I can do this to other boxes but I am getting some odd errors ...
0
votes
1answer
89 views

Elasticsearch service often goes down or gets killed

My webserver is running ubuntu 14.10 with elasticsearch 1.5.0 and java 1.7u55 For some reason, the elasticsearch service often goes down, resulting in my website not being available to my users ...
1
vote
0answers
43 views

Use of CPUQuota in systemd

I am trying to put a hard limit in CPU usage for a dd command . I have created the following unit file [Unit] Description=Virtual Distributed Ethernet [Service] ExecStart=/usr/bin/ddcommand ...
1
vote
0answers
44 views

systemd Unit file for GitLab

I am currently writing a Puppet module to get GitLab running on CentOS 6/7. For the CentOS 7 install I need to write a systemd unit file to start the gitlab service (which is actually Unicorn & ...
2
votes
0answers
64 views

proc-sys-fs-binfmt_misc.automount failed service

I am using ubuntu 14.10. I have just installed systemd and I have a failing service, proc-sys-fs-binfmt_misc.automount. I've seen here it's a part of systemd: Is this file important? How do I solve ...
1
vote
2answers
103 views

CoreOS: `fleetctl stop <service>` always exits with status 137

I've been trying to familiarise with CoreOS (v. 633.1.0), and I've been playing around with fleet (I'm using the recommended Vagrant 3-cluster setup on my local machine). I have created the following ...
2
votes
0answers
84 views

elasticsearch fails periodically on ubuntu with systemd : how to resolve this?

I am using Elasticsearch on Ubuntu 14.10 and it's periodically going down (entering a failed state). When down, this throws exceptions on my website, users can't search, connect or update database ...
3
votes
0answers
102 views

Systemd: start a unit after another unit REALLY starts

In my particular case I want to start remote-fs unit after all glusterfs completely starts. My systemd files: glusterfs target: node04:/usr/lib/systemd/system # cat glusterfsd.service [Unit] ...
0
votes
1answer
28 views

How to do policy routing with systemd?

I need to do policy routing on my CoreOS instances which use systemd. But I haven't found any documentation or examples on how to do it with systemd-network. How do I do that? So far I have only ...
2
votes
1answer
144 views

systemd: how do I view journals with journalctl without switching to root on CentOS 7?

If I run journalctl as nonroot, I would get the following message: No journal files were found. But switching to root, or using sudo gives me the journal. How can I view journals without switching ...
1
vote
1answer
50 views

Reset / Ingnore non-zero exit code with fleet / systemd

I have a backup.service called every hour by a backup.timer. Unfortunately the backup script running inside the container can complete successful but with warnings returning a non-zero exit code. So ...
0
votes
0answers
26 views

Can FPM make one RPM package that acts differently if systemd is being used?

I build an RPM using fpm for EL6 hosts. It installs a /etc/init.d script. However if that package is installed on an EL7 host, I want it to install a file in /usr/lib/systemd/system instead. Is ...
1
vote
1answer
59 views

docker container systemd unit integration

I run a docker app-container container with an attached data-container. To keep it up even with CoreOS host updates I use a systemd unit file as bellow. I am a bit puzzled to why systemctl restart ...
0
votes
1answer
95 views

How to run Fedora container on Ubuntu host?

I'm using Ubuntu 14.10 and was trying to run a Fedora container. The container I created via given templates does not work properly. I guess the reason is that systemd is not set up correctly. ...
0
votes
0answers
45 views

systemd logcheck rule not working

given is this logcheck rule: ^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ systemd-logind\[[[:digit:]]+\]: New session [[:digit:]]+ of user [^[:space:]]+\.$ and this log entry: Mar 19 09:16:09 horst ...
0
votes
0answers
27 views

Getting journald to send email on certain events

I found these solutions for syslogd that send emails on certain events like local0.crit or local1.err How can I make syslogd email certain log messages to me? ...
1
vote
1answer
144 views

Start a program with systemd

I'm trying to install the latest version of ProFTPd (1.3.5) onto a CentOS 7 box, and wound up having to configure and install manually. The reason is that EPEL's version of proftpd doesn't include ...
-1
votes
1answer
23 views

Why systemd service files don't know common $PATH?

As question states, why every systemd service files have full path of programs, for example: ExecStart=/usr/bin/coolprogram when it could just be ExecStart=coolprogram
0
votes
1answer
61 views

Is there a way to run just save with firewalld in RHEL7?

I'm starting to use RHEL7 and learning a little about the changes that come with systemd. Is there a way to perform /sbin/service iptables save in firewalld? $ /sbin/service iptables save The ...
0
votes
1answer
138 views

CentOS7 systemctl calling ExecStop on reboot after my procceses are already killed

I have a systemd script which is as follows: [Unit] Description=My sites Before=shutdown.target reboot.target halt.target [Service] Type=oneshot ExecStart=/bin/bash -c '/etc/xxx/mySites start' ...
0
votes
0answers
126 views

Why does Fleet stop a unit that was running just fine

I've setup a CoreOS server at a cloud provider. It's a single server with etcd and fleet running on it. I've figured out how to package web apps so they can run in docker and I can launch them from ...
0
votes
0answers
224 views

How to run systemd on ubuntu 14.10 utopic in a docker container?

Installed systemd on the host with the following commands: sudo apt-get update sudo apt-get install systemd-sysv copied new /etc/default/grub file with: GRUB_CMDLINE_LINUX_DEFAULT="quiet ...
1
vote
0answers
211 views

CentOS 7 - Systemctl dependency problems with network mount and OpenSM

I have the follwoing problem. I want to mount a glusterfs share over Infiniband on an CentOS 7 client. The glusterfs share '/data' is severed by a host called storage1. For the client I I setup and ...
2
votes
1answer
215 views

systemd-networkd and direct routes

I have problem adding direct routes through systemd-networkd. What I'm trying to achieve is similar to: ip a a 192.168.0.2/32 dev enp0s3 ip r a 192.168.0.1/32 dev enp0s3 ip r a default via ...
1
vote
1answer
100 views

Why do I need to use systemd to set my timezone in RHEL7?

I used to be able to edit /etc/sysconfig/clock, but now I need to use timedatectl, which I believe is a systemd command. What has that got to do with booting the system?
0
votes
0answers
120 views

Play Framework 2.3 startup scripts for systemd?

We're upgrading to Play 2.3.x (which uses activator) and CentOS 7 (which uses systemd). Previously on CentOS 6 we used this SysV init script to start/stop/restart our various Play applications. Is ...
0
votes
0answers
29 views

Systemd: why isn't it possible to use %i in the first argument of ExecStart=?

To quote http://www.freedesktop.org/software/systemd/man/systemd.service.html#Command%lines: The command line accepts "%" specifiers as described in systemd.unit(5). Note that the first argument ...
2
votes
1answer
43 views

Organizing services/daemons with systems: running 100+ daemons, grouped by 3

I'm new to systemd. I have a machine that needs to run a substantial number of daemons. There are three types of daemons, call them daemon-A, daemon-B, daemon-C. These daemons always run in ...
0
votes
2answers
185 views

Docker (systemd) ignores change of default directory (docker.service)

I want to deploy docker on a server, but I want all docker-related data to be in a separate partition from the base system. I have thus mounted said partition at '/srv' and made the following changes, ...
0
votes
1answer
30 views

Remove timestamps from neo4j logs

I'm running neo4j in a CoreOS unit as a docker container. The logs coming from neo4j contain timestamps, but the journal system in CoreOS also has its own timestamps. I'd like to remove the ...
1
vote
0answers
80 views

Teamcity Build Agent gets killed by systemd when upgrading

On our centos system we have configured a teamcity agent as a systemd service. The service works fine except when the agent performs an upgrade. Then it gets killed while performing the upgrade. I ...