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
vote
0answers
5 views

nagios.service start operation timed out. Terminating

I have a Centos 7 Box on which I have installed Nagios and then migrate all the config files from an old Centos box. Everything looks fine, nagios -v doesn't return any error. However, systemd is ...
-1
votes
0answers
23 views

Running systemd on Docker results in “Failed to get D-Bus connection: Operation not permitted”

In order to run a service on a container, systemctl start <service_name> was run. As this failed the following command was issued in order to debug the situation: docker run -it ...
1
vote
1answer
10 views

systemd service script for libreoffice/openoffice

I'm trying to setup correctly a headless libreoffice/openoffice server on a debian jessie. I created a script named /etc/systemd/system/openoffice.service with the following content [Unit] ...
0
votes
1answer
18 views

Multiple tmpfs exists with total combined space more than total memory

I have a VPS with 7.5G ram running CentOS 7, and tbh I haven't done much optimizations etc as its serving the site pretty good. Today I was going to create a ramdisk for mysql temp tables, so I ...
0
votes
0answers
26 views

Starting docker-compose with systemd on ubuntu 15.04

I have a docker-compose project that I would like to control through systemd. In upstart, I would use a script that looks like this: description "Start/Stop server" author "Jim Cortez" start on ...
0
votes
0answers
8 views

CoreOS docker.service containers can't resolve domains

I have servers PXE booting to CoreOS with persistent state being written to disk. When I start docker containers on the host they work fine. And I have the docker.service set in the cloud-config to ...
0
votes
1answer
21 views

Mounting a drive via systemd unit file on CoreOS unsuccessful

When I'm trying to mount a formatted drive via a systemd unit (from my cloud_config): - name: var-lib-ceph-osd-ceph\x2d1.mount command: start content: | [Unit] Description=Mount Ceph disk ...
0
votes
0answers
20 views

systemd ignores return code while starting service

I ran into this problem while writing unit-file for one simple daemon. When daemon returns '1' on startup systemd just ignores it, and it looks like daemon was started successfully while it's actually ...
1
vote
0answers
13 views

ionice for systemd journal

It happens on my production machines that there is so much logs that journalctl "freezes" the production webservers (by eating all IO). Yup, I'm logging a lot (~4GB compressed per 3-4 hours). As my ...
0
votes
1answer
20 views

systemd service seems to start (uses notify) but then immediately fails

After doing an rpm install which also starts the service 'homemade-auth-svc', it seems to start up happily enough but then fails and continually restarts. journalctl -ex u homemade-auth-svc.service: ...
0
votes
0answers
4 views

Autostart TeamSpeak via systemd under Ubuntu [migrated]

I have a systemd service script to let me start and stop TeamSpeak. It works fine if I manually start and stop it, but it won't autostart TeamSpeak on server reboot. Here's the file: [Unit] ...
0
votes
1answer
61 views

nginx fails to start on boot with systemd on Ubuntu 15.04 and 15.10

nginx will not start on boot, but starts fine manually. The logs say something like nginx: [emerg] host not found in upstream "{some hostname}" in /etc/nginx/conf.d/some_site.conf nginx: ...
0
votes
0answers
5 views

Making systemctl to shutdown process gracefully [migrated]

I made a small systemctl service to manqge HLTV server (it records demos from a game and stores them on disk): [Unit] Description=HLTV server Requires=cs16.service After=cs16.service [Service] ...
2
votes
1answer
26 views

systemd - private temp directories and permissions

When setting up private temporary directories, I'm faced with some annoying problems. Whenever the service (php-fpm in this case) stops, the temporary directory is wiped. Not quite as I want, because ...
0
votes
0answers
12 views

Use a variable in another one declared within the same EnvironmentFile in systemd unit file

I have a rather long set of arguments to pass to an executable. I created a simple systemd unit file and it works well: [Unit] Description=My Service [Service] WorkingDirectory=/opt/my-service ...
0
votes
1answer
44 views

systemd: Failed to make us a subreaper: Invalid argument. SSH

Since upgrading to Debian 8 (Jessie) which brought in systemd I'm getting the title of this post in my syslog errors. Remote ssh login begins 10:33:51 pap1 systemd[1]: Starting user-0.slice. ...
1
vote
1answer
63 views

systemd & max open files with elasticsearch on CentOS 7

I am trying to set the max open files on CentOS 7 for elasticsearch. I've read over and over again how to set this but it doesn't seem to be working. As I understand it: limits.conf is irrelevant ...
2
votes
0answers
14 views

journalctl - stop following without exiting pager

If I do: journalctl -u my-service then a Shift-F to follow while paging, how do I (interrupt to abort) without exiting the pager? With less, I typically just ^C, but if I do that in journalctl, it ...
3
votes
3answers
281 views

CentOS 7.1 - Reverting to Old Functionality of top and service

I recently installed a fresh CentOS 7.1 server. I'm noticing a few differences from CentOS 6.7, and I'm hoping there is a way to revert to an old view of certain things. For example: Question 1: ...
0
votes
0answers
56 views

Can't get systemd-networkd to start successfully

I have a mini-pc with six network interfaces running CentOS 7.2 with Kernel 3.10 with a minimal install. I want to name my interfaces net0-net5. To do so I'm trying to follow the suggestions ...
3
votes
1answer
40 views

Systemd causing multiple supervisor processes

I'm having a problem narrowing down where the issue is for my supervisor configuration that causes a program to be duplicated. I'm running a Python Tornado Web Server through an Nginx reverse proxy. ...
0
votes
0answers
11 views

Triggering a target when a service stops in systemd

I have a situation where I'm using systemd in an environment where I have a main application that should be launched at start up and when the application exits shutdown should start. I've created ...
0
votes
0answers
34 views

echo message not coming on terminal with systemd

I have systemd service, say xyzWarmup.service. Here is the service file [Unit] Description=Xyz agent. After=fooAfter.service Before=fooBefore1.service Before=fooBefore2.service [Service] # During ...
1
vote
0answers
64 views

Run a systemd unit in a specified network namespace

I would like to instruct systemd to 'run a unit' in a specified, pre-existing network namespace, in particular to start the unit's process(es) in the namespace.
0
votes
0answers
67 views

LXC Error -> Failed to reset devices.list on /lxc/103/system.slice/proc-diskstats.mount: Permission denied

unfortunately I'm getting a lot of errors like these ones in my debian 8 LXC-container: Failed to reset devices.list on /lxc/103/system.slice: Permission denied Dec 17 16:34:37 systemd[1]: Failed to ...
1
vote
0answers
43 views

Can't remove lock file in sysemd unit files

I'm having a really weird problem with systemd on RHEL7.The /run/puppetboot.lock file is not being removed at the end of execution for the unit file. Strangely, when I replace the 'puppet agent' lines ...
5
votes
1answer
198 views

Unit polkitd.service is masked

After a failed Ubuntu version upgrade, a computer started behaving oddly. After initially failing to boot, we managed to make it get to the command line - but it refuses to network (so no apt, no ...
0
votes
0answers
24 views

systemd doesn't honour chkconfig KILL order

I have a init script which has to start and stop both firstly during system reboot. I was able to achieve this by having a appropriate chkConfig START and KILL order. Sometimeback only, I have ...
0
votes
1answer
65 views

OpenVPN service cannot start

I configure OpenVPN on my VPS (Fedora 23) and I have an issue with starting it as systemd service. From command line (openvpn server.conf) all works fine, but when I try start it via systemd it fails. ...
-1
votes
1answer
72 views

Unable to start OpenSSH service in CentOS 7.1

I am trying to install OpenSSh server on a fresh CentOS 7 machine , although the installation went fine but when I am trying to enable/Start, or to know the status of sshd.service using systemctl I am ...
0
votes
0answers
16 views

Systemd - do not log output from particular service, but forward to syslog

Is it possible for systemd to not log data from particular service, but to still forward it to the syslog? StandardOutput=syslog StandardError=syslog
1
vote
0answers
55 views

Hyper-V CentOS 7 guest has no keyboard in recovery modes

I am working with CentOS 7 as a Generation 2 guest on Hyper-V 2012 R2. Everything runs fine, but I am unable to control the guest when I boot it into certain systemd targets. For instance, if I were ...
0
votes
0answers
18 views

Journald: give users access to specific unit's logs

I'm taking care of a server (Debian Jessie) that several developers use for deploying and managing their work. Now there is a script on this server (managed by one of the developers) that does some ...
4
votes
1answer
124 views

Why is there still a /etc/init.d in debian 8?

I recently upgraded a couple of virtual hosts to debian 8. Now playing with them i found, that: there is still a /etc/init.d, /etc/rc0.d, ... director with plenty of files in it (e.g. ...
0
votes
1answer
27 views

Where is systemd script for mysql.service located?

I am actually using MariaDB (drop-in replacement for MySQL). I'm trying to make some changes to my systemd mysql.service file. I can see it exists because running sudo systemctl lists it and ...
1
vote
1answer
43 views

Reduce cron log level with systemd

Googling for a solution, I only found articles telling me how to do it in old systems and not under a systemd maintained Linux, by changing the cron init-script adding -L parameter to the command ...
1
vote
0answers
42 views

Debian Dist-Upgrade to Jessie (8) - still init.d?

I dist-upgraded my debian-box and now I mention some strange behavior: If I try to start services using systemctl I'm getting this error: Failed to get D-Bus connection: Unknown error -1 If I ...
0
votes
0answers
10 views

How to display syslog priority level in systemd's journalctl

journalctl allows me to filter on priority (-p) and color-codes the priority in the output. But is there any way to get it to output the priority directly, as text?
1
vote
0answers
44 views

systemd user service doesn't autorun on user login

I have Debian Jessie and connect to it by ssh. I want to autostart shell command on user login by systemd. I've create a simple systemd service ~/.config/systemd/user/foo.service witch contains: ...
0
votes
1answer
34 views

Empty output file in systemd unit file

Edited!!!! I used this unit file and here is the output but it won't create any log files. [Unit] Description=PY-KMS After=network.target [Service] Type=simple ...
1
vote
1answer
80 views

systemd startup script for apache2: how to pass env vars?

The following startup script for systemd (Debian GNU/Linux Jessie) [Unit] Description=Apache httpd web server After=network.target [Service] PIDFile=/var/run/apache2/apache2.pid ...
0
votes
2answers
80 views

How to disable core dumps on Debian 8

I pretend I've already tried everything out there, but my Debian 8 keeps creating core dumps when something crashes. It's happening about once or twice in a month. It's a production server for a few ...
2
votes
1answer
61 views

systemd service automatic restart after StartLimitInterval

I want my systemd service to be automatically restarted on failure. Additionally I want to rate limit the restarts. I want to allow maximum of 3 restarts within 90 seconds duration. Hence I have ...
0
votes
0answers
6 views

Collecting systemd accounting data, non-interactive systemd-cgtop utility?

I'm wondering what tools are available to collect systemd resource accounting data from /sys/fs/cgroup/ ? Something like systemd-cgtop except have it be non-interactive so that a another program could ...
1
vote
0answers
30 views

How can I output logs to a file from the content of a service with systemd

Well, I have a service configured with systemctl. This is the config file: [Unit] Description=The description of the service (: After=network.target [Service] ExecStartPre=/bin/echo 'Starting ...
1
vote
0answers
87 views

Cannot get a java app to run/start as a service using systemd

I am trying to get a java app(server) to start as a service using systemd on my Centos 7 but it always fails. this is my push.service [Unit] Description=b4xpush server After=syslog.target ...
2
votes
0answers
24 views

How to receive feedback from systemctl?

I am missing a bit of feedback from systemd commands. After issuing a systemctl restart my_service there is no output and to receive confirmation if my_service is started, I need type systemctl ...
0
votes
1answer
16 views

systemd list-units cuts service names

I want to get all service names which match a pattern. This does not work: systemctl list-units -t service --no-pager --no-legend| cut -d' ' -f1| grep mypattern Long service names get cut. ...
1
vote
2answers
68 views

Systemd: Restart all instances of an Instantiated Service at once

I use the nice feature of systemd: Instantiated Services. Is there a simple way to reload all instantiated services with one call? Example: I don't want to run all like this: systemctl restart ...
2
votes
0answers
76 views

Nagios in activating status (doesn't want to start)

I've experienced issue when installing nagios on VM (Centos 6) I followed steps described in http://www.tecmint.com/install-nagios-in-linux/ Everything was fine untill [root@tecmint ]# service ...