systemd is an alternative approach to SystemV init daemon for Linux. It is intended to provide a better framework for expressing services' dependencies, allow more work to be done in parallel at system startup, and to reduce shell overhead.

learn more… | top users | synonyms

1
vote
1answer
10 views

Rsyslog `logger` message duplicated

I just had a problem with rsyslog's imjournal module, possibly the issue described here, whereby complications with systemd's journal cause the journal to return the same data endlessly in a ...
3
votes
1answer
35 views

How do I allow non-root users to control a systemd service with instances?

I need to allow users in the dba group to control the database@ services. The answer to this related question is to just list all systemctl "verbs" that I want to allow in the sudoers file, however, ...
3
votes
0answers
16 views

Run systemd service after automount but after it's accessed

Is it possible to run a systemd service that prepares an automounted file system for use? This service would need to run after the filesystem is mounted, but before whatever triggered the automount ...
1
vote
0answers
32 views

Elasticsearch periodically going down: how to avoid it? [on hold]

I am using Elasticsearch on Ubuntu 14.10 and it's periodically going down (entering a failed state). When down, this throws exceptions on my website, users can't search, connect or update database ...
1
vote
0answers
26 views

Running a systemd service file after the network is up to bypass an OpenVPN default gateway

I would like to add a static route using a systemd service file on system boot. I have a DMZ network on a separate 192.168 class C network reachable via my default gateway. I also use OpenVPN to ...
1
vote
0answers
12 views

Plugged mouse increases boot time

I was going through the output of dmesg -e and found that my logitech mouse is increasing boot time by around 7 seconds and my total boot time is around 45 seconds. [ +7.334661] usb 1-1: new ...
0
votes
0answers
4 views

How can I publish the IP addresses of Docker containers as local hosts?

I have a CoreOS server with a few Docker containers. (Right now I'm using local systemd unit files to run the containers, I have yet to approach fleetd.) What is the best way to connect to the (non ...
0
votes
0answers
22 views

Yocto systemd service script problem

I have a c code which I kept in systemd service for boot time start. After restart it started successfully but after a while it got killed and again started successfully as the type set is forking. ...
1
vote
2answers
37 views

Systemd dependency tree saving

As I know systemd stores dependencies between services in unit files. I need to know how systemd behaves on boot: Does it load unit files from specific paths and recalculate dependencies every time ...
1
vote
1answer
45 views

Yocto linux service script problem

I have written a systemd script mqtt.service which is in /home/root directory This is my mqtt.service script : # This file is part of systemd. # # systemd is free software; you can redistribute ...
0
votes
1answer
35 views

Which systemd service starts text console on the framebuffer device?

I'm working with an embedded platform and need to have /dev/fb0 clear for my own use (the device accessible over serial console while the screen is used to display information, without X.). I've ...
3
votes
1answer
26 views

Can I use a symbolic link as a service of systemd?

For instance, I have a service named mysshd.service under /usr/lib/systemd/system/ directory. Can I create a symbolic link such as: ln -s /usr/lib/systemd/system/mysshd.service ...
3
votes
0answers
39 views

What is the difference between “systemctl restart” and “systemctl start”?

I have two services A and B where B is dependent on A which means in the A's service unit i have After and Requires set to B After=B.service Requires=B.service Now when i stop the service B the ...
0
votes
1answer
37 views

Configure systemd-journal-gateway on CentOS7

I installed systemd-journal-gatewayd on CentOS7 and started it. If I connect to the given port the HTTP server is answering but the response is always emtpy. Neither /entries?follow nor /entries?boot ...
1
vote
1answer
41 views

generic methodology to debug ordering cycles in systemd

I am aware of following thread and supposedly an answer to it. Except an answer is not an answer in generic sense. It tells what the problem was in one particular case, but not in general. My ...
0
votes
0answers
47 views

Why does PostgreSQL 9.4 on CentOS7 not run via the `systemd` service file on boot?

As root, if I change to the postgres user with su -l postgres then run /usr/pgsql-9.4/bin/pg_ctl start -D ${PGDATA} -s -w -t 300, PostgreSQL starts successfully. As root, if I run systemctl start ...
2
votes
1answer
35 views

Figure out at what time the machine was suspended

I suspended my machine and now got back to work. I want to figure out at what time I suspended the machine. Is there any way to somehow look up the time?
3
votes
2answers
61 views

How could we allow non-root users to control a system.d service?

With sysvinit, a sudoers entry like this would suffice: %webteam cms051=/sbin/service httpd * This would allow for commands such as: sudo service httpd status sudo service httpd restart Now, ...
1
vote
0answers
32 views

How to set SyslogIdentifier in [SERVICE] section of systemd service file as empty?

I want to set SyslogIdentifier in [SERVICE] section of systemd service file as empty, so that nothing is prefixed in the logs. I tried below options: 1) Mentioning nothing: SyslogIdentifier= ...
2
votes
1answer
75 views

When saving INTO OUTFILE from mysql on a systemd based system, the output file is grabbed by systemd — why?

I regularly run simple reports from a mysql (actually, mariaDB) database: MariaDB [acts]> SELECT resolution, title FROM acts ORDER BY resolution INTO OUTFILE '/tmp/acts-titles.txt'; Recently I ...
0
votes
0answers
25 views

Systemd user specific service and timer

I have installed arch recently and added a few of my own services, for example the acpi_call commands and such. Now I want to create a systemd service that runs every 5 minutes and execute a script. ...
0
votes
1answer
72 views

systemd service using 100% of my CPU when it doesn't if I start it without systemd

I'm using Debian Jessie with the latest updates. I made a systemd service to run a script when my server starts. Here's its configuration: [Unit] Description=(my description) [Service] ...
1
vote
0answers
33 views

What systemd target or service populates /dev/disk/by-uuid on el7?

On EL7 (RedHat 7, CentOS 7, etc) I have a systemd unit file to mount a filesystem (/usr/lib/systemd/system/srv-data.mount) that looks like this: [Unit] After=sysinit.target [Mount] ...
2
votes
1answer
64 views

Why is my systemd journal not persistent across reboots?

I'm experiencing a very weird issue with a fresh Fedora 21 image on a Linode instance. I cannot reproduce it outside of Linode. The issue is that my systemd journal is not persistent across reboots. ...
0
votes
1answer
60 views

systemd timer every X days at 04:00

I have been reading on OnCalendar= Sadly, I found no info on how to schedule an event on a day other way than defining a day of the week, which would make it run every week at the rarest. I need ...
1
vote
1answer
43 views

Runlevel3 (systemd) - target on Opensuse 13.2 starts GUI

From my understanding, setting the default target to /usr/lib/systemd/system/runlevel3.target should not start the GUI--but it does. Also the file runlevel3.target looks exactly the same as ...
0
votes
0answers
30 views

Howto start a service at the beginning of the systemd boot sequence

How can I get a service started right at the beginning of the systemd boot sequence? shortly after the kernel has finished? At the moment all my costum services get started at the end of systemd ...
3
votes
1answer
72 views

CoreOS can't pull docker container on boot

While following the systemd guide I ran into an issue with this example configuration: [Unit] Description=MyApp After=docker.service Requires=docker.service [Service] TimeoutStartSec=0 ...
1
vote
1answer
57 views

atftpd won't start on opensuse tumbleweed under systemd

I tried installing atftpd today. The package installed successfully: # zypper se atftp Loading repository data... Reading installed packages... S | Name | Summary | Type ...
0
votes
0answers
28 views

systemctl not restarting log with SystemMaxUse variable set

On Arch Linux ARM i am trying to keep the journal logs to a maximum but it does not seem like systemctl cares. Here is my /etc/systemd/journald.conf file: [Journal] SystemMaxUse=2M ...
1
vote
2answers
112 views

Does Debian Testing use Sysvinit, Systemd or Upstart? How do I configure it (them?)?

I have a copy of Debian Gnome, installed from live medium then upgraded to testing. I've decided to change my default X environment from GDM to i3 for reasons of productivity. This lead me to wanting ...
2
votes
1answer
68 views

systemd mount 'rootfs' according to '/proc/cmdline'

SETUP Im running Debian 8 (jessie/testing) amd64 with systemd. On my system partition containing a btrfs filesystem, I do have the following layout: /dev/sda1 |-root |-root_snapshots/ ...
0
votes
1answer
24 views

Pulling log messages for a particular log in systemd journal?

I was wondering if it is possible to pull log messages for a particular log with systemd's journal logging. For example, when I open a log in C, openlog('slog', LOG_CONS | LOG_PID, LOG_LOCAL1), to ...
1
vote
1answer
73 views

How to enable systemd user sessions for remote logins on CentOS 7?

I am trying to enable systemd user sessions on my CentOS 7 server. All the pieces seem to be there, and I have also run loginctl enable-linger <user>, but I don't have a systemd user session (or ...
2
votes
1answer
32 views

Backup partition changed UUID without user interaction

I recently had to purchase a new hard drive. Since I was at it I bought two instead of one as they were on offer (both are the same model). Since there was a lot of space left on the second hard disk ...
0
votes
1answer
102 views

CoreOS in Vagrant - interfaces

I'm trying to understand the networking model in CoreOS but I'm having trouble making the operating system bend to my will. The problem I'm facing is that I want to use weave as an overlay network ...
0
votes
0answers
36 views

Getting started with D-Bus using C++ and systemd

I'm trying to get up & running with systemd dbus on my Linux desktop machine. What is a good place to start ? Is there an exhaustive documentation of systemd dbus API ? My first goal is to enable ...
0
votes
1answer
12 views

Service that runs once when ppp0 connection shows up

We use wvdial to initiate a cell modem connection. We wrap it with nohup, launched by a cron job that checks if all is well every minute (everything we read said that wvdial and the associated ...
1
vote
1answer
74 views

Send sleep command to usb disk mounted as /home (Fedora 20) from shutdown script

I have a usb sata2 drive connected to usb that is mounted as /home. When I turn off the computer/laptop the disk makes some high pitch sound as if the disks were still spinning and heads were not ...
1
vote
1answer
81 views

How to restore normal boot process after pacman update on EFI?

I just updated my system and upon reboot I've found myself in emergency mode. This is a dm-crypt+LUKS EFI system (thinkpad) using gummiboot. journalctl -xb reports that /boot could not be mounted. ...
0
votes
1answer
62 views

Starting Services without Systemd?

Is it possible to start services on and post startup in CentOS/Fedora distributions without using systemd (systemctl)? If yes, how? Systemd does not work in non-privileged docker containers; ...
1
vote
1answer
66 views

systemd and *.service have been not existed (Are they generic?)

As you know, units of systemd have stored in /lib/systemd/system such as : rsync.service avahi-daemon.socket bluetooth.service cups.service When you use the following command : systemctl enable ...
2
votes
1answer
29 views

How to wait for a /dev/video0 before starting a service

First off, I am systemd noob. I can write unit files, which depend on a mount, because I can list them and then add to Requires=xxx, such as: # systemctl list-units | grep data mount-data.service ...
0
votes
0answers
28 views

Do dracut handles boot parameters mentioned in dracut.cmdline (7)

If I understand correctly, in boot time the kernel will mount initramfs and then calls /sbin/init from it(which is a symbolic link to /lib/systemd/systemd on Fedora/RHEL systems) and dracut itself ...
1
vote
0answers
25 views

Make opensuse 13.2 accept remote logging?

My question is how can one make opensuse 13.2 accept remote logging? Since it uses systemd-journal, which conflicts an installation attempt of syslog or rsyslog? Many thanks!
1
vote
0answers
52 views

writing systemd unit file and specfile for a python twistd application [closed]

I have given a task to write the systemd unit file for a python twistd application and create rpm of it. The application is open source and you can find it here: ...
0
votes
0answers
15 views

logging file system events (like read, write, access file/directory) [duplicate]

I want to get file system events on my arch linux local host, and don't get how to make it. I want to tail throw the logs of file system events to see what processes making changes to my system in ...
2
votes
0answers
47 views

debian wheezy extreme boot delay

I migrated from Arch to Debian(wheezy) recently. Since Debian was still using sysVinit, I migrated to systemd, but following this. The system booted after a long init, using fallback LSB scripts for ...
1
vote
1answer
27 views

Possible to deliver centrally configured login scripts on Linux?

In Windows you can assign login scripts to users which run whenever they log into a system which allowing admins to do things like map drives/printers and generally do anything for which there isn't a ...
3
votes
1answer
158 views

How to change timeout in systemctl

When I boot on my debian, startup hangs for approx 2 minutes on the line: Loading, please wait... [ 5.191043] systemd-fsck[129]: /dev/mmcblk0p2: clean, 234192/873120 files, 2335263/3491328 blocks ...