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

-1
votes
1answer
17 views

Systemd not working after Ubuntu 14.04. to 16.04. upgrade

I just did the above mentioned upgrade but it seems like systemd is not working as it should. If I run a command like systemctl start apache2 I get the message Failed to connect to bus: No such ...
2
votes
0answers
30 views

Disabling ctrl+alt+delete in systemd with logging

I'm trying to update some of my Puppet manifests that disable CAD on RHEL machines. Right now I'm doing it the over the top way on systemd: masking (ie. linking to /dev/null) $ctrlaltdel_process = ...
1
vote
1answer
19 views

systemd timer for a process that runs every 5 minutes, but may run longer than 5 minutes

I did a little searching and didn't see any similar questions. I have a job that should run once every five minutes. There should only be one job running at a time. If the program takes more than 5 ...
0
votes
0answers
12 views

systemd unit template for instances running from separate directories

I am trying to create a new systemd unit template file that will be used to start several instances of a server program, each running out of a different directory. i.e. I need the ExecStart parameter ...
0
votes
0answers
12 views

RHEL/CentOS 7 run named-chroot on systemctl named invocation?

How can I make systemd treat calls to systemctl xx named as calls to systemctl xx named-chroot? Under RHEL/CentOS 6 installing the bind-chroot package would set up a chroot'ed environment for BIND, ...
1
vote
1answer
18 views

How to boot after Systemd startup into program/script

I try to write a network/environment configurator for a distributed OVA appliance, similar to what Github Enterprise does, see ...
0
votes
0answers
29 views

How do you configure multiple systemd services to use one timer?

I've noticed some significant variation in approach in some systemd documentation and how-to documents concerning how to configure one or more services to use the same timer. As far as I have been ...
0
votes
1answer
38 views

Installing rpm-package to systemd?

I am new to systemd, and trying to get an in-house app packaged as rpm, to install on systemd host (RHEL7). The rpm tries to place the systemd .service-file: myapp.service into: /etc/systemd/system ...
1
vote
1answer
66 views

DNS Named.service isc_stdio_open 'data/named.run' failed: permission denied

Hi guys I have problems with starting systemctl named.service I was trying to install bind & configure everything to make a public domain name work but I ran in this problem. systemctl status ...
0
votes
1answer
45 views

Systemd timer not starting its service unit

Situation I have written a custom systemd service unit and its companion shell script to renew a certificate from Let's Encrypt. Everything works fine when I run systemctl start ...
1
vote
0answers
35 views

How to name systemd mount unit properly?

I'm trying to automount CephFS after boot via systemd I've got the next unit: [Unit] SourcePath=/etc/fstab DefaultDependencies=no After=remote-fs-pre.target After=network.target Wants=network.target ...
0
votes
0answers
16 views

Truncated/missing logs with systemd on Ubuntu 16.04

I am using Ubuntu 16.04 server, have created a basic nodejs script and packaged it in a simple systemd service. Content of api.service at /lib/systemd/system/api.service: [Unit] Description=api ...
0
votes
0answers
14 views

Using chkconfig to implement auto-start on RHEL7? [duplicate]

I'm moving an in-house application from RHEL6 to RHEL7 servers. I read you should still be able to use chkconfig and service commands to install start/stop scripts, even if they have now changed to ...
0
votes
0answers
14 views

systemd force restart on zero exit code

systemd advertises that it can act like a watchdog and it can restart a process if it does not have a clean exit. By clean exit it means: exit code of 0, or one of the signals SIGHUP, SIGINT, ...
0
votes
0answers
13 views

What is SIGRTMIN+24 in syslog?

My Debian 8 vm has lots of systemd logs like this: Apr 28 23:02:09 foo systemd[22305]: Starting Shutdown. Apr 28 23:02:09 foo systemd[22305]: Reached target Shutdown. Apr 28 23:02:09 foo ...
1
vote
0answers
28 views

Systemd/ssh: Cannot allocate memory

I have a host (Ubuntu 14.04.4 LTS 64 bit, kernel 3.13.0-85-generic) that has a lot of concurrent SSH connections. SSH logins have started to fail recently, and the log says: sshd[26057]: ...
0
votes
2answers
34 views

how to execute a script Rhel 7 at booting time?

I am trying to execute a shell script on RHEL7.1 when the machine starts. As in ubuntu, Upstart scripts (in /etc/init/) are used to execute any scripts or to start any services at boot time, is there ...
1
vote
1answer
65 views

Soft dependency in systemd

I am trying to understand if there is a way to create a soft dependency between systemd services. Basically, I'd like to create an "umbrella" service that starts other services marked as (soft-) ...
-1
votes
2answers
55 views

Linux init script service - delay until mysql socket is ready

How does one go about delaying a service init script in Linux until the MySQL socket exists? Does the sleep command in a startup script delay the entire boot process, or are init scripts each ...
0
votes
2answers
25 views

Mark a failed systemd unit as active manually

I would like to set a one-shot service to active even though systemd marks it as failed. How can I archive this? Background: Two node cluster with DRBD. Back in the days the state of the DRBD was ...
2
votes
0answers
49 views

start systemd service on start of requirement

I have a service which depends on mysql.service via Requires=. This is necessary, because the service crashes, if mysql is not available. Executing systemctl restart mysql works fine. It stops my ...
0
votes
1answer
923 views

I can't get the right items to boot on ubuntu-16.04 and systemd

I needed to make a new image and opted for the new 16.04 ubuntu so I could get newer versions of some packages and not install from source. So far, I regret that decision as online docs are sparse. ...
0
votes
0answers
12 views

Binding a systemd service to a mount point that's created at a later stage

I have a service file that looks like the following: [Unit] Description=Test Service BindsTo=/mnt/stuff [Service] ExecStartPre=systemctl status mnt-stuff.mount ExecStart=something_here ...
0
votes
3answers
78 views

Proper way to install Nginx on Ubuntu 15.10 after compiling myself

I just compiled the latest version of Nginx on Ubuntu 15.10 and installed it using dpkg -i nginx_1.9.15-1_amd64.deb However, the systemd service script was not created so nginx is not running. ...
0
votes
1answer
36 views

Allowing a non-root user to restart a service

Background : I created an app called myapp with Spring-boot. It consists of a self-executable jar and is compatible with systemd services. Now, I am trying to integrate it with jenkins. What I want: ...
2
votes
3answers
100 views

How to limit memory for a service managed by systemd

I am aware of ulimit and I know how to limit memory for a process that I explicitly start, or start using a script. But in this case I have a service that is managed and launched by systemd. How can ...
2
votes
2answers
81 views

Install rsync 3.1.1 on systemd

I have CentOS 7 and it comes with Rsync 3.0.9. I downloaded the 3.1.1 el7 rpm and installed with rpm -Uvh. Now the daemon refuse to start. I tried to create : ...
0
votes
1answer
30 views

Prevent shutdown until ExecStop script completes

I have a script that runs infinitely at startup, and another script that shuts it down safely. The second script requires connection to a remote database. They are both declared in the same service ...
2
votes
1answer
26 views

Chaining custom systemd services

I have timer A that every few hours runs a script that runs service B(script with systemctl start in it). Then I would like to run service C after B is finished. Here is my service C: [Unit] ...
0
votes
1answer
62 views

PHP script with systemd

I'm new to systemd and I've got issue with script my colleague gave me. This script worked as background process in Debian 7 but doesn't in Debian 8. I decided to rewrite it to systemd. I have this ...
0
votes
0answers
22 views

combined local and remote journald logs

I am using journald forwarding using systemd-journal-remote (local site) and systemd-journal-upload (remote site) on centos7 with systemd-219 on both machines. Local journals are stored in ...
1
vote
1answer
226 views

OpenSSH adds <IPv6>%2 to known_hosts

When I connect to a CentOS 7 host with IPv6 my ssh client always adds <IPv6 host addr>%2 to known_hosts even though the host key for this host (with the host's IPv6 address) is already present ...
2
votes
1answer
30 views

systemd journal and docker

I am using CoreOS which uses systemd and docker. One of the big issues with systemd and CoreOS is that it doesn't play 100% nice with docker. Or maybe docker doesn't play 100% nice either. Another ...
0
votes
1answer
111 views

no network in nspawn container

I'm having an issue with networking in a systemd nspawn container. I have enabled the -n / --network-veth option in the systemd-nspawn command. This has worked a few hours ago (I know that because I ...
2
votes
1answer
112 views

How does systemd decide if a service is ok or not

This question is related to: reliable systemd service for autossh I have a service which uses type=simple. Here the systemd docs: Type=simple (default): systemd considers the service to be ...
5
votes
2answers
186 views

mdadm software RAID isn't assembled at boot during initramfs stage

First, I prefer to mention I've found and read this. I'm running Debian Jessie with a standard 3.16 kernel. I've manually defined a RAID1 array. But it is not assembled automatically at boot time. ...
4
votes
1answer
67 views

reliable systemd service for autossh

I try to create a reliable systemd service for autossh. The service works, but if the host-keys changes, the service is in state ok (running). I want it to be in state "failed" if the tunnel does ...
0
votes
1answer
45 views

How do I ensure that a CoreOS cloud-config service is able to download files?

I am defining a one-shot service in my CoreOS cloud-config, but it is failing due to not being able to download files from Google Cloud Storage (via wget): Apr 13 11:09:56 ...
0
votes
1answer
35 views

How to use systemd to run a script only on process bad exit instead of graceful one

I configured systemd to run a system devised of several services and targets. I wish to run a script that creates a notification if a service in the system crashes. The problem is that my system has ...
1
vote
0answers
19 views

starting a system with constraints using systemd

I have a large system that consists of multiple processes and docker containers. I would like to have the system initialized by systemd but I have several constraints between the processes: There ...
2
votes
1answer
17 views

How can I start systemd unit files (someservice.service) with logging set to /dev/null?

Is there a way to start a service using systemd and direct it's logging to /dev/null WITHOUT including the proper lines in the unit file. For example, A file that has the StandardOutput and ...
0
votes
1answer
29 views

How can I configure systemd.network DHCP server to distribute IP routes?

From this question I understand that I can use DHCP to distribute classfull routes. How to do it with the DHCP server embedded in systemd.network (if possible)?
0
votes
1answer
18 views

Start stopped service because of dependency update

I have two systemd services: postgresql.service and app.service. postgresql.service is distribution provided (ubuntu 15.10) and app.service is written by myself. Since app needs postgresql, the ...
1
vote
0answers
16 views

Can systemd's .mount units be used to mount to points within a service's namespace only?

I am interested in setting a temporary directory that exists for the duration of the .service unit's running - exactly like the PrivateTmp= directive but on a custom mount point specified by a systemd ...
0
votes
1answer
92 views

fprintd: ** Message: No devices in use, exit

I keep getting following messages inside of /var/log/messages: 4/7/2016, 11:03:49 AM fprintd[3277] Launching FprintObject 4/7/2016, 11:03:49 AM fprintd[3277] ** Message: D-Bus service ...
0
votes
0answers
31 views

IP aliasing to a bridge interface under systemd

With Debian 8.1, how does one add a second IP address to a bridge interface under systems? Like in "IP Aliasing"? I tried it this way... In /etc/systemd/network subdirectory: File 40-br0.netdev ...
1
vote
1answer
39 views

Start SystemD service conditionally?

At my organization we have a number of simple-to-use base AMIs for different services such as ECS and Docker. Since many of our projects involve CloudFormation, we're using cfn-bootstrap, which ...
2
votes
1answer
95 views

How to configure systemd to kill and restart a daemon on reload?

I have an old-school daemon that I want to control using systemd. When its configuration file changes, it needs to be killed and restarted. In other words, after editing the config file, systemctl ...
0
votes
1answer
56 views

systemd, logrotate and PID-files

I'm packaging some daemon for debian 8 and systemd. The daemon can create PID-file by itself, but it has no permissions to write into /run because of non-root user. It used to create PID-file via old ...
0
votes
0answers
50 views

How to create systemd unit file for phpbrew?

I'd like to create a unit file for systemd which will autostart PHP FPM after server reboot. Here is the file content: [Unit] Description=PHP 5.5.32 FPM [Service] User=deploy Group=deploy ...