Tagged Questions

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
12 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
17 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 ...
-1
votes
0answers
9 views

journalctl --verify: “Missing entry array” and “Bad message” [closed]

I've run journalctl --verify on my system (NixOS 14.10) and have some bad output PASS: /var/log/journal/cca67034aca5401d8cb4fc6cac6d30f6/system@000505b54ae376a9-26237fddfc187d6d.journal~ Missing ...
0
votes
0answers
43 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
24 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
57 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
21 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 ...
-1
votes
0answers
47 views

systemd for executing a script automatically while reboot

First of all, I am a student on systemd (just started learning how it works) side in RHEL 7. My requirement: On a scenario of server reboot (OS-RHEL 7), a script should be executed automatically, ...
0
votes
1answer
350 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
32 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
59 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
205 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
49 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 ...
0
votes
0answers
163 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
26 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
176 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
34 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
57 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 ...
0
votes
0answers
179 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
294 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
174 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 ...
1
vote
2answers
176 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
31 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
108 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
76 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
416 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 ...
6
votes
1answer
240 views

is there a way to see the execution tree of systemd?

What I mean under the question is: is there a way to dump the ordered list (like pstree does for processes) to see how systemd executed the supplied set of units, i.e. the tree after the dependencies ...
0
votes
0answers
456 views

How to debug why systemd is idling and is not going on with the boot process?

I am trying to create a PV instance for AWS EC2. The template VM is based on CentOS 7, which is using systemd. The disk layout is two partitions: /boot (/dev/xvda1) and LVM2 (/dev/xvda2). The root ...
1
vote
1answer
27 views

Configuring systemd to restart timed-out processes

We have a fairly complex systemd service with Type=notify. Very occasionally, the service will hang on startup/restart, and enter the failed state after systemd failes to receive a sd_notify call. We ...
2
votes
0answers
73 views

Can I make systemd show service status after starting or stopping a service?

I am trying to get systemd to do what init.d scripts would do, showing the status of a service automatically after being manually given a command to start or stop. Is this somehow possible? systemd ...
1
vote
2answers
374 views

Systemd exits from bash scripts that execute commands that result in failure, instead of continuing

I'm trying to get a script that pushes up my system log on CoreOS to logentries. To compensate for the fact that instances don't have internet connectivity right away when being spun up on AWS I've ...
1
vote
2answers
384 views

CoreOS Fleet Unit file and Docker Dynamic Port issue

I am currently trying to get a dynamic port so I can register it with etcd on CoreOS. This is proving very difficult. Here is my Unit file [Unit] Description=test Elastic Search Server ...
1
vote
2answers
229 views

ec2 systemd unable to mount nfs on boot and it times out

I'm running latest version of Red Hat Enterprise Linux Server release 7.0 (Maipo): [root@ip-10-184-161-46 ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.0 (Maipo) ...
1
vote
4answers
241 views

Changing the I/O scheduler for a specific disk

I would like to change permanently the I/O scheduler for a specific disk on Fedora 20. According to what I have found, this can be achieved by executing the following shell line as root: echo ...
0
votes
1answer
207 views

Is it better to use the systemd service unit's Restart & RestartSec, or use a systemd timer unit?

I have a couple of in-house automated scripts running at periodic intervals. One is every five minutes, the other is every minute. They don't really need to be ran on-the-dot; e.g. I don't care if ...
2
votes
0answers
107 views

runnning systemd without PrivateTmp, PrivateNetwork and PrivateDevices (in docker - unprivileged mode)

I am happily running systemd inside a docker container, however, it requires CAP_SYS_ADMIN in order to dynamically create private tmp mounts. I have attempted to disable the PrivateTmp, ...
3
votes
1answer
194 views

ZFS on LUKS not recognized at boot

I've got 6 physical drives in RAID-Z2, which I intend to one-by-one convert to dm-crypt devices. My process was roughly: dd if=/dev/zero of=/dev/sdf Create keyfile /etc/crypttab.d/crypt-1.key ...
0
votes
3answers
1k views

Running systemd inside a docker container (arch linux)

I am trying to see if I can run systemd inside a docker container (which is running arch linux in the container). I start docker with all capabilities, and bind mount in cgroups: docker run -it ...
3
votes
1answer
512 views

How to remove missing systemd units?

I'm having trouble figuring out how to remove systemd units that no longer have files. They still seem to linger in the system somehow. The old broken units I am trying to remove: ...
0
votes
1answer
456 views

etcd in CoreOS not listening on port 4001

When starting etcd in CoreOS it does not listen to port 4001. Only when starting from the prompt: $ sudo systemctl start etcd.service $ ps aux|grep etcd etcd 9364 0.1 0.8 267980 4880 ? ...
1
vote
4answers
90 views

portable daemon management from bash (sysvinit/upstart/systemd)

I have a little shell script which needs to stop a service. This needs to work on ubuntu (14.04), debian and Arch. Right now what I do is similiar to case $(cat /etc/issue) in *Ubuntu*) ...
1
vote
1answer
315 views

What is the systemd equivalent of ntsysv?

Now that RHEL 7 uses systemd the ntsysv tool only shows some of the services on my system. Is there a systemd equivalent to ntsysv whch will allow me to show/configure all services on my system? I ...
0
votes
0answers
296 views

RHEL7 RC, why isnt /etc/sysconfig/static-routes active after reboot? But it is after 'service network restart'?

I just started to port our auto provision system (chef scripts etc) on RHEL 7RC. But something isnt working as expected, I suspect systemd is the culprit. So we have some default static routes in ...
0
votes
0answers
30 views

systemd 212 returning stderr wrongly?

sudo systemctl restart postgresql returns "Failed to wait for response: Success" Checking my journal shows that the restart did happen. But because this message is returned as a stderr, my ...
2
votes
1answer
214 views

Motorola SB6141 assigns 192.168.100.0/24 IP via DHCP when cable dies; can I prohibit systemd-networkd from using 192.168.100.0/24 addresses?

I have a Motorola SB6141 cable modem connected to a Linux firewall that obtains an IP via systemd-networkd's DHCP function. Every so often, the ISP will have issues, and for some reason, ...
4
votes
2answers
451 views

Systemd Service Start With Dynamic Port Value From Docker

Using CoreOS, Docker and systemd to manage my services I want to properly perform service discovery. Since CoreOS utilizes etcd (distributed key-value) there is a very convenient way to do this. On ...
1
vote
0answers
106 views

How to configure MySQL pid file permissions?

I know MySQLd will create a pid file as set up in mysqld.service: ExecStart=/usr/bin/mysqld --pid-file=/run/mysqld/mysqld.pid However, it creates the file with a 660 permission, meaning ...
3
votes
1answer
321 views

systemd: get core dumps for service started by xinetd

I recently upgraded a system to openSUSE 13.1. We're running a custom-built service on the system through xinetd, and in the old xinetd init script had the line ulimit -c unlimited before starting ...
2
votes
1answer
231 views

How to set umask for php-fpm in fedora 19

I cannot find where to set umask (to set proper permissions to files created by php scripts) in Fedora 19. (specifically, I want new files to have the permissions 664)
1
vote
0answers
151 views

PHP-FPM errors only when running as a system service on Fedora 20. (File not found / Primary script not found)

I am trying to setup NGINX with PHP-FPM on a Fedora 20 box and I am getting the "File not found / Primary script unknown" errors only when starting php-fpm as a system service. I am using a default ...