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
23 views

Ubuntu 16.04 services timing out at boot time

I just spun up a new Ubuntu server this morning to try and prepare a production server for a client's code. Unfortunately in testing the server I found that after a reboot the database and PHP-FPM are ...
1
vote
0answers
8 views

how to monitor a systemd service [migrated]

I am writing service monitoring app, which needs to know when the services go from active to inactive/failed. I am subscribing to PropertiesChanged signal and watching ActiveState. but this is not ...
0
votes
0answers
13 views

Can systemd manage a pipeline?

Can systemd manage a pipeline similar to how the daemontools family does it? And if so, what's the best way to achieve this? I want to run the equivalent of service | logger where both service and ...
0
votes
1answer
17 views

Citadel outputting 'Broadcase message from systemd-journald@hostname' continuously

I installed citadel-suite using apt-get on Ubuntu 15.10. I then uninstalled it using 'sudo apt-get remove citadel-suite; sudo apt-get purge citadel-suite', manually deleted the directory '/etc/...
1
vote
0answers
13 views

How to pass arguments to systemd-nspawn via systemctl?

I am testing systemd-nspawn and launch a base system testcont (previously created with debootstrap) either via # systemd-nspawn -bD testcont --network-bridge=br1 or # systemctl start systemd-...
7
votes
3answers
129 views

How can you distinguish between a crash and a reboot on RHEL7?

Is there a way to determine whether a RHEL7 server was rebooted via systemctl (or reboot / shutdown aliases), or whether the server crashed? Pre-systemd this was fairly easy to determine with last -x ...
0
votes
0answers
12 views

How to redirect traffic every time when service hostapd is started?

I have been using iptables to redirect all traffic to remote host on port 80 towards my local proxy 127.0.0.1:8080 for testing. I used iptables -n nat -L to check if iptables is set. sudo iptables -t ...
0
votes
1answer
29 views

PostgreSQL not listening on local eth1 after reboot

I have a server with 2 networking interfaces - global on eth0, and local on eth1 with IP like 10.181.xx.xx. Running Ubuntu 16.04. I set up PostgreSQL to listen on this local address, so another ...
0
votes
1answer
22 views

Systemd Networkd MAC Address generation for VLAN Interfaces

I'm creating a VLAN interface with networkd like this on a bunch of servers with equal config: [NetDev] Name=vlan3 Kind=vlan [VLAN] Id=3 Then I'm creating an interface like this with it: [Match] ...
3
votes
1answer
49 views

Docker containers don't have internet access until docker service restarts

I'm creating a bridge manually, with this command: docker network create --driver bridge --internal --subnet=172.20.0.0/24 br0 Then i start containers using that bridge parameter --net=br0 --ip=172....
0
votes
2answers
19 views

Syntax for CentOS Environment Config File

I am trying to modify the file /etc/sysconfig/httpd on CentOS 7. This file modifies the environment for the httpd service under systemd. I want to modify the PATH variable by adding to it. I can set ...
2
votes
1answer
48 views

Systemd execute command after start limit reached

I've been working on a systemd service to wrap an administration script and I'm trying to gracefully handle it completely breaking. Right now I have Restart set to always so it will try again when ...
0
votes
0answers
29 views

Can IPv6 connectivity between countries be unreliable?

I’m setting up IPv6 on my existing VPS and backup server. The VPS is located in Fremont on Linode, and the backup server is located in New Zealand. I have several VPSs within the Fremont data center. ...
0
votes
0answers
11 views

systemd sub user.slice for specific commands

Is it possible I can create for example user-commands.slice, put some cgroup settings on it (like CPUShares, MemoryLimit, LimitCPU etc.) and assign CLI commands (for example command1) which should ...
0
votes
1answer
28 views

Access files in system tmp directory, when using PrivateTmp

I am using php-fpm with PrivateTmp enabled. I have to read a file from PHP, which is copied by a remote deployment agent to the /tmp directory. Since PrivateTmp is enabled, I am unable to directly ...
1
vote
0answers
12 views

Systemd Networkd [Match] Rule Multiple Matches

If I have a static network configuration like this: [Match] Driver=mlx4_en [Network] Address=10.1.0.10/24 Gateway=10.1.0.1 DNS=8.8.8.8 and say I have a dual port NIC which uses the driver mlx4_en ...
1
vote
1answer
39 views

systemd service shuts down on its own

I have a problem with this SystemD service: [Unit] Description=RTC Client Services After=rds.service Requires=rds.service [Service] User=USER Group=GROUP PermissionsStartOnly=true RuntimeDirectory=...
0
votes
0answers
83 views

Creating multiple Apache instances on CentOS 7 SystemD

I am trying to create a duplicate httpd service in systemd on CentOS 7 (why? see bottom) This is what I have done so far: #Copy all the files cp -pr /etc/httpd /etc/httpd-bobby cp /usr/lib/systemd/...
2
votes
1answer
34 views

How to stop systemd services in specific order

How do I ensure a particular order is followed when a specific systemd service is stopped? I have several systemd services/units that I have running but use resources on various mounted partitions. ...
0
votes
1answer
23 views

Systemd don't launch service as intended user

I have this SystemD script: [Unit] Description=RTC Client Services [Service] user=linuxuser WorkingDirectory=/usr/lib/systemd/scripts/ Type=forking ExecStart=/bin/bash rtc_client.sh start ExecStop=/...
0
votes
0answers
21 views

How do I get host's systemd journal to see any systemd-nspawn container's systemd journal?

I have sshd listening on a variety of ports in variety of containers. There's a fail2ban instance deployed on the host. I would like the host's fail2ban instance to be able to follow all container ...
0
votes
0answers
13 views

Phabricator init.d script will not init all 3 daemons

I am using this init script with the --local modification to the is_running function to start the phabricator daemons. However I can't seem to get it to start all 3 phabricator daemons at start time. ...
0
votes
1answer
26 views

Is there a way to configure journald.conf through cloud config on CoreOS?

Try to find a way to automatically set SystemMaxUse for systemd-journald.service. I knew I can set it in /etc/systemd/journald.conf manually. But it will restore to default after CoreOS updates in my ...
1
vote
0answers
25 views

Multiple Nginx Error Log Locations

I'm trying to get Nginx to log both in a log file and to stderr. The reasoning behind this is that I want Nginx to log to a log file as well as to journald. From the research and tests I've done I ...
0
votes
1answer
66 views

systemd does not notice apache starts

My debian-system has been infected with the systemd-virus... When I issue the "service apache2 start" command to start apache, it thinks it failed, but apache is running just fine. So "service ...
0
votes
1answer
37 views

coreOS: force cloud-config to run update-ca-certificates before docker.service

I'm trying to get coreOS to run update-ca-certificates before docker is started. It is also fine if update-ca-certificatesruns and then docker is immediately restarted afterwards. I've created a new ...
0
votes
0answers
12 views

Can httpd service has more then one tmp directory when using PriaveTmp?

I use httpd service with PrivateTmp option set to true. It looks like that name of priavte temporary directory uses some random generated substrings. systemd-private-b36d6509938446c7b5225a3b4790f4a9-...
1
vote
0answers
25 views

Systemd timer ignoring multipe hours

on an Arch linux machine hosting an nginx I want to automatically renew its LetsEncrypt certificates. I wrote a .service and .timer for this: #letsencrypt-update.service [Unit] Description=...
1
vote
1answer
51 views

Systemd restart service if it's not listening to a port

I've been using Systemd for a while in Debian 8. I use the Restart=on-failure option to waken-up a service in case of failure. I will like to know if there is a way to force the restart of the ...
1
vote
1answer
80 views

systemd-logind spams in log

In /var/log/auth.log appears too many messages "Removed session" Jun 2 17:42:39 srv-1 systemd-logind[13785]: Removed session c36006. Jun 2 17:42:39 srv-1 systemd-logind[13785]: Removed session ...
1
vote
0answers
44 views

Systemd scripts will not run on boot

I have three docker containers that I've created systemd scripts to run at startup. I've run systemctl enable xxxx for all three services, and i've tried systemctl reenable xxxx as well. I've created ...
0
votes
2answers
28 views

cloud-config file not loaded and units not started on machine created from AMI

We are working on a code that does the following using terraform (on AWS): Creates a core-os instance (1) with the cloud-config yaml file we provided Creates an AMI from that instance The process ...
1
vote
2answers
38 views

Mount block device on boot using systemd in coreos

I am mounting /dev/vdb1 to /media/esdata using the following systemd unit: The unit is located at /etc/systemd/system/media-esdata.mount: [Unit] Description=Mount cinder volume Before=docker.service ...
0
votes
0answers
18 views

Install OPENLDAP as service from compiled source

I am using Centos 7 and compiled openldap from source and installed it in a custom location, however I found that it doesn't come with the option of installing as service as it would if I yum install ...
-1
votes
1answer
109 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
41 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
75 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 ...
1
vote
0answers
25 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
2answers
91 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
30 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 https://github-images.s3.amazonaws.com/enterprise/Enterprise-QS-...
0
votes
0answers
53 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
95 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
199 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
84 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 letsencrypt-...
1
vote
0answers
92 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
1answer
60 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
27 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
166 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 systemd[...
1
vote
0answers
50 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]: pam_systemd(...