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
51 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
41 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
62 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 ...
0
votes
0answers
56 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 ...
1
vote
0answers
32 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
40 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
42 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
22 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
34 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
66 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
23 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 ...
0
votes
0answers
31 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 ...
0
votes
2answers
42 views

Which directories does nginx need access to?

I'm writing a systemd service file for nginx and an internet facing service running as root is a bad idea, however I need nginx to access a certain directory in each user's home directory. e.g. ...
1
vote
1answer
117 views

CoreOS Systemd sidekick unit unable to start

I have a service with this for a sidekick unit and keep receiving the error: [/run/fleet/units/tomcat-discovery@1.service:11] Trailing garbage, ignoring. tomcat-discovery@1.service has no ExecStart= ...
1
vote
0answers
90 views

Setting the MemoryLimit of a user-created systemd scope using cgroups as user

Related: LImiting overall memory usage for child processes Is there a way for an unprivileged user, or for root to allow an unprivileged user, to create a systemd scope (or other control group ...
1
vote
0answers
49 views

systemd upgrade frozen on “removing any startup links for /etc/init.d/udev-mtab”

I am having an issue upgrading my VPS which runs latest Debian, I decided to switch to testing branch to be able to use OpenSSH 6.7 (the current stable branch only brings 6.0 which lacks many ciphers ...
0
votes
1answer
102 views

systemd-journal in Debian Jessie LXC container eats 100% CPU

After creating fresh LXC based on Debian Jessie, on a Ubuntu 14.04, systemd-journal eats all CPU available. lxc-create -n jessie -t debian
1
vote
1answer
129 views

What happen if a systemd service reach its MemoryLimit?

Does systemd restart the service or the system just refuse to let the service allocate more memory?
1
vote
0answers
37 views

SElinux sandbox fails to start from systemd service

I have a server that runs user submitted code, for evaluation. I wrote a systemd service that starts a python application, that application then run the submitted code using SElinux sandbox. The ...
2
votes
0answers
60 views

Systemd vs init.d Specify systemd dependencies in LSB headers

I have a systemd based system which contains one System V style init.d script with LSB headers. The init.d script must only be started after all filesystems in fstab are mounted. How can I specify ...
3
votes
1answer
116 views

Failed at step EXEC spawning /usr/libexec/mariadb-prepare-db-dir

a bit of a newbie here so mind my obliviousness. I'm trying to install mariadb on a fresh Centos 7 server, though upon running "systemctl start mariadb.service" I get this malarkey: Job for ...
0
votes
1answer
45 views

How to authorize docker so docker pull can get private images inside a systemd service?

I want docker to pull my private images inside the systemd service, so I authorize it by login into the shell of core user and run docker authorize. However, I can see that when systemd start the ...
0
votes
1answer
31 views

Tell systemd to output every command it executes for a unit

I'm trying to run some Docker container on coreos. However, I'm getting some error and is clueless about what went wrong. What I did is to use journalctl -f -u myunit.service to view the log in ...
1
vote
1answer
79 views

how to disable serial console after successful boot (systemd/grub2)

I enable the serial console during the boot process on centos7 which uses grub2 and systemd (instead of inittab) I would like to undo that serial input/output at the very end of the boot, after a ...
0
votes
1answer
77 views

/etc/auto.master vs /usr/lib/systemd/system/*.automount in centos7

What's the difference/dependency between autofs and systemd automount and declarations in /etc/auto.master versus /usr/lib/systemd/system/*.automount in CentOS 7 ? Do they do exactly the same? If ...
1
vote
2answers
101 views

Only start a Docker container after process in other container is operational

I'm trying to deploy 3 Docker containers, having a dependency relation amongst them (A -> B -> C). Now, each container is supposed to run an Akka-Spray instance, on top of a JVM instance. The ...
0
votes
1answer
54 views

Centos 7 on Windows Azure, who mounts /dev/sdb? (systemd)

I need to find out which systemd service mounts /dev/sdb (aka /mnt/resource) on Windows Azure? I am using Centos 7 image and it is systemd-based and I am trying to launch a service that depends on ...
1
vote
0answers
252 views

Error missing systemd on AWS server

I cant seem to figure out how to install systemd. I am attempting to upgrade mysql server on AWS from 5.5 to 5.6. I am getting the following error when trying to install- "Requires: systemd" Any ...
0
votes
0answers
153 views

Ubuntu 14.10 systemd fails to start network

Most of the time systemd fails to start because ifup@eth0 task fails. But I can see from logs that is actually succeeds and gets IP address. Nov 11 21:32:21 vostro dhclient[414]: DHCPACK of ...
1
vote
1answer
41 views

systemd out of control starting service

I am trying to get a CoreOS system up and running stably on Microsoft Azure and am almost there. My only problem now is that systemd seems to be out of control with regard to starting etcd and fleet. ...
0
votes
0answers
248 views

systemd user units and debian wheezy

I'm running a debian wheezy server and switched to systemd by installing systemd-sysv. So far everything works as before. Now I want to allow users to run/ manage their own units/ daemons with ...
0
votes
0answers
52 views

How can a systemd unit propagate stop to a dependent unit, when dependency is generic to owner

For simplicity, lets consider my-wiki@foo.service and my-datastore@foo.service. Unit my-datastore@.service stereotypes instantiation of a datastore, and is intended to be instantiated by another ...
0
votes
1answer
1k views

dist-upgrade from Debian 7 (wheezy) to 8 (jessie) results in 'Failed to execute operation' errors

After upgrading Debian 7 (wheezy) to 8 (jessie), any system critical action results in one of the following messages appearing: Failed to execute operation: Activation of org.freedesktop.systemd1 ...
1
vote
1answer
88 views

Forward systemd journal messages/Collect systemd journal messages

How can I collect systemd journal events (pull) or forward systemd journal events (push)? I want to have something like forwarded event log ...
2
votes
1answer
111 views

Gracefully logout all connected ssh users on reboot

When I reboot my Linux server (BusyBox Linux) all ongoing ssh client connections run into a stucked state until a timeout on client side occurs. There is no message sent to the ssh client to produce a ...
0
votes
0answers
638 views

Installing, configuring and running mariadb in foreground on Centos 7 via docker without systemd or services

Under CentOS 7, I understand we're moving from mysql-server to implementation-compatible MariaDB. I'm using a docker image of centos:latest, which puts me under the auspices of Centos 7. mysqld_safe ...
0
votes
1answer
129 views

Get command return in systemd service file as in Shell script

I have a CoreOS cluster in which i have a SystemD service that just run a Docker container. However, for flexibility purpose, i want the Docker Registry the container gets pulled from to be discovered ...
2
votes
1answer
477 views

Convert an fstab entry to a systemd mount unit on CoreOS

I want to convert the following fstab entry to a systemd mount unit on CoreOS, /dev/xvdb /data ext4 defaults,auto,noatime,noexec 0 0 I created data.mount, [Unit] Description=MongoDB Data Directory ...
0
votes
1answer
27 views

What kinds of configuration can prevent a network interface from seeing traffic?

I have two ethernet adapters on my Debian system, eth0 on my local network statically assigned to 192.168.2.1, and eth1 with a dynamic IP connected to the internet. I know this setup works, because ...
0
votes
1answer
713 views

Increasing nproc for processes launched by systemd on CentOS 7

I have successfully increased the nofile and nproc value for the local users, but I couldn't find a proper solution for the processes launched by systemd. Adding max_open_files to the MariaDB ...
0
votes
1answer
51 views

Set environment variable only if it is empty

I'm designing a systemd service file for some plugin. I need to include two environment files there: first for the main program (let it be main.env), second — for the plugin (plugin.env). The plugin ...
-1
votes
2answers
167 views

give privilege to users to start a systemd service [closed]

I would like to allow all users (or maybe only some of them but all would already be good) to be able to start/stop a specific systemd service. I found the following solution #include ...
1
vote
0answers
309 views

Separating java stdout and stderr with systemd and without filling journal

I am running java apps via systemd: [Unit] Description=test service [Service] Type=simple EnvironmentFile=/etc/sysconfig/testserver WorkingDirectory=/opt/testserver ExecStart=/usr/bin/java -jar ...
3
votes
1answer
803 views

How to start and stop a systemd unit with another?

I am using CoreOS to schedule systemd units with fleet. I have two units (firehose.service and firehose-announce.service. I am trying to get the firehose-announce.service to start and stop along with ...
0
votes
1answer
263 views

Ubuntu 14.04 UWF for iptables

Can I still use the init.d iptables stop? It seems that init.d is replaced by systemd. Is that correct? The iptables is part of the kernel right and not a service. On redhat based systems it is a ...
3
votes
2answers
399 views

How to properly use kexec with systemd on CentOS 7?

I want to use kexec to speed up reboots of my CentOS 7 machine. How can I do that in a way that nicely integrates with existing shutdown/reboot systemd targets? What's the proper (official) way to do ...
1
vote
1answer
43 views

Dynamic dependencies in systemd

I am trying to figure out how to specify dynamic dependencies for systemd that are specific to the current instance@. In the [Service] section I can use EnvironmentFile= to load in variables using the ...
1
vote
1answer
268 views

How to sequence a proper shutdown and startup of web services with systemd?

I am trying to structure the shutdown and startup of Apache, PHP-FPM and MariaDB services using systemd: These are the additional configuration files in /etc/systemd/system folder: # httpd.service ...
3
votes
1answer
161 views

How can I set the environment value which is begin from a single quote in systemd

I've tried to set following in my systemd's service file Environment=SETTINGS=\'{"a"=1}\' But seems that both the single quotes are been removed, so I get {"a"=1} as the value for the environment ...
4
votes
1answer
882 views

How to set systemd service dependencies?

During CentOS 7 system boot nginx start fails with the following error: 2014/08/04 17:27:34 [emerg] 790#0: bind() to a.b.c.d:443 failed (99: Cannot assign requested address) I suspect this is ...