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

3
votes
0answers
54 views

How can I make my user services wait till the network is online?

I have written a couple of systemd user service files which I want users to enable and which need a working network connection. I thought that would be as easy as: Wants=network-online.target ...
3
votes
0answers
68 views

Make systemd reload only single openvpn process and not the whole group

I'm running several openvpn instances on my server with debian stable; as well some clients as a server instance. Right now, when one of these instances fails, systemd seems to kill and restart the ...
3
votes
0answers
67 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 ...
3
votes
0answers
73 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 ...
3
votes
0answers
564 views

Inherit environment variables in systemd Docker container

I have a Docker container running systemd. I want to pass environment variables to applications under it. When I start systemd from within Docker (/sbin/init as command line), Docker exposes ...
3
votes
0answers
1k views

Enable systemd-baclight@intel_backlight instead of systemd-backlight@acpi_video0

I have 2 files in /sys/class/backlight/ - acpi_video0 and intel_backlight. intel_backlight is the one which controls my screen brightness (echo/cat), however acpi_video0 is the default. By default ...
3
votes
0answers
715 views

Plymouth splash not working and causing VT problems

Since I tried installing Plymouth (boot splash), I'm facing two problems : It's not working My Virtual Terminals (tt1 - 6) aren't working anymore Here what I did : Added plymouth hook (after ...
3
votes
0answers
123 views

No Login on created on tty2 to 6

On my Debian Linux no Login is possible on terminals 2 to 6. Login on 1 works fine, xorg-session with XDM and awesome wm works, too. The Error Message shown on these 5 screens is: ...
3
votes
0answers
199 views

how to stop Clementine playback on suspend using systemd

As the title says, I'm trying to stop Clementine playback using DBus before entering suspend mode. Here is my service file right now: [Unit] Description=Stop Clementine playback before suspend ...
3
votes
0answers
115 views

Restricting D-Bus access to the logged-in user via ConsoleKit or systemd

I need to restrict the client of a D-Bus service to only the user logged into the system locally, via ConsoleKit or systemd. How must I configure or write the D-Bus service to do so?
2
votes
0answers
69 views

How do I tell systemd-logind that the session is not idle, without using a desktop environment or session manager?

I want to use logind for power management. After 30 minutes of inactivity, I would like the computer to suspend. Problem is, right now, it suspends after 30 minutes, even when I am active with mouse ...
2
votes
0answers
48 views

Why is systemd unmounting my fuse file systems right after I mount them?

I am trying to troubleshoot an issue with a fuse library, where my fuse file system is mysteriously unmounted shortly after mounting it. After screwing around with a bespoke unmount executable that ...
2
votes
0answers
26 views

What is the systemd equvalent to sysvinit 'X-Start-Before'?

Quoted from https://wiki.debian.org/LSBInitScripts. X-Start-Before: boot_facility_1 [boot_facility_2...] X-Stop-After: boot_facility_1 [boot_facility_2...] provide reverse dependencies, ...
2
votes
0answers
24 views

Systemd resume script is executed only occasionally

I currently use Awesome WM without any desktop environment. This means that I have to get my keyboard and mouse settings there manually. I therefore wrote a shell script which makes a few calls to ...
2
votes
0answers
64 views

How to tell systemd to start sshd later in the boot sequence?

My sshd_config file specifies it should listen on some specific IP addresses instead of on all IP addresses. The problem is that one of these NICs doesn't come up until later in the boot sequence. ...
2
votes
0answers
90 views

Using xrandr when starting new xserver

I'm trying to set the resolution and refresh rate of a screen when i launch an application on a new xserver. The xrandr commands i usually use to get this screen to work are: xrandr --newmode ...
2
votes
0answers
46 views

some function buttons not recognised (even at scancode level) after resume from sleep

As in the title, some function buttons are not being reconised after resuming from sleep. systemctl suspend is used. The buttons work fine after boot and before the sleep but not after. I have tested ...
2
votes
0answers
138 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 ...
2
votes
0answers
75 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 ...
2
votes
0answers
151 views

Why is systemd-nspawn not appropriate for production deployments?

While reading about systemd-nspawn, it is mentioned that it should not be used in a production environment. The reason seems to be the lack of management and deployment infrastructure. Is practicality ...
2
votes
0answers
130 views

Is there a way to develop upstart scripts on fedora 21?

I'm working on creating upstart scripts for an internal service I'm working on. I realize systemd has triumphed over upstart, but our company already has an investment in upstart and I'm just tacking ...
2
votes
0answers
73 views

How do I run my program (and dbus) as a service on a headless server?

I have a Fedora 20 server running headless, which I want to run my service. I'd like it managed by systemd so that it runs whenever the server is powered on. My service is written in Python, and ...
2
votes
0answers
157 views

Enable core dumps for all applications started by a user with systemd

This is a follow-up to How to enable crash reports/core dumps/stack trace logging globally?: How can I achieve this on OpenSUSE 13.1 (which uses systemd) and 13.2 for all processes started from an ...
2
votes
0answers
159 views

Why will plymouth not update?

I admit I don't update my kernel very often. I used to everytime a stable release of sys-kernel/gentoo-sources came out so I'm very adept at doing it. This last weekend I attempted to update from ...
2
votes
0answers
50 views

Systemd Unit for reconnecting wireless on failure

I have a systemd service called conWlan0.service which establishes WiFi connection. Now I want to create another Unit which periodically checks the connection. Is this a reasonable start? [Unit] ...
2
votes
0answers
133 views

Systemd Initrd service and persistance

I need to run a simple daemon from system initrd image. According to system.initrd documentation, when sytemd is running directly from initrd all running processes will be killed on switch-root, ...
2
votes
0answers
311 views

how to run a user script after systemd wakeup?

When my debian jessie desktop box wakes up from sleep (via the new shiny systemd) my mouse settings are returned to their defaults, having reset my customisation xinput set-prop 12 'Device Accel ...
2
votes
0answers
118 views

monitor running services and ports

What is the best way to monitor running services and ports on a system with systemd? My intent is to alert me, when a service stops running or if a new service is listening on a new port (possibly a ...
2
votes
0answers
92 views

CGroup Processes Not Terminated even when main process has been killed through Systemctl stop command

I am running systemctl stop process command for some process. Please find the output for systemctl status process below: Loaded: loaded Active: deactivating (stop-sigterm) CGroup: ...
2
votes
0answers
317 views

Modifier keys cannot be mapped to regular keys on USB keyboard with udev

Using an hwdb file, /etc/udev/hwdb.d/99-keyboard.hwdb, I can remap the left Alt key on my USB keyboard as the Ctrl key: keyboard:usb:v*p* KEYBOARD_KEY_700e2=leftctrl This also works when I try to ...
2
votes
0answers
698 views

Can't reboot with systemctl

I'm running openbox, and I'm trying to reboot with systemctl, but I got the following error message: %> systemctl reboot Failed to issue method call: Unix process subject does not have uid set ...
2
votes
0answers
178 views

smartd custom logfile on systemd + journald based system

An excerpt from smartd manpage reads: -l FACILITY, --logfacility=FACILITY Uses syslog facility FACILITY to log the messages from smartd. Here FACILITY is one of local0, local1, ..., local7, or ...
2
votes
0answers
500 views

How do I run Gnome from a systemd-nspawn container in a second X server?

I'm using systemd-nspawn to "boot" a second Linux OS from a USB hard disk. I'd like to launch that OS's Gnome Desktop in a second X server running on the same machine on a different tty than the ...
2
votes
0answers
455 views

Logout user with systemd

I start my window manager with systemd service units (following this tutorial). After I log in at tty1 the following gets executed in .zlogin (I'm using ZSH as a login shell): if [[ -z "$DISPLAY" ...
2
votes
0answers
331 views

Moving /dev/shm/ to /run/shm in Arch?

Dolphin (The KDE4 FM) would not receive file change notifications for /dev/shm, but for /run/shm. So now I would like to migrate /dev/shm/ to /run/shm, but I couldn't find the corresponding part in ...
2
votes
0answers
136 views

How to make system startup to not wait on particular systemd service start

I have few virtual machines running under libvirt, and they are stared on the host system startup. This is controlled by libvirtd.service systemd configuration. This delays the availability of the ...
1
vote
0answers
10 views

Synchronize systemd unit based on timers

I am just wondering about synchronization of systemd timers / related units. I have a backup script running hourly / daily / weekly. I use timers with Persistent=True and OnCalendar=... options set to ...
1
vote
0answers
33 views

bind mounts by systemd don't magically work with systemd-tmpfiles?

I have an weird challenge from on my Debian 8 box. The background is I want to mount some directories as tmpfs, to avoid physical IO (disk wakeup / flash wear). Probably I should just mount a ...
1
vote
0answers
22 views

Correctly shutting down the computer from an X session

I run Debian 8.1 with the window manager Blackbox. The window manager is started from ~/.xinitrc, and when the X session is done some cleanup commands are invoked: dbus-launch --exit-with-session ...
1
vote
0answers
22 views

Why does a broken mount point break netfilter-persistent using systemd?

I have a relatively clean Debian Jessie install. I'm running into two related problems: 1) I have a cifs mount that shows me an error on boot. The error says to run systemctl status ...
1
vote
0answers
25 views

systemd MAILTO-replacement failing

I'm trying to setup systemd to notify me via email if a unit fails, like Cron can be set up to do. I followed the guide on the Arch Linux wiki. So I set-up a sendmail shell script in ...
1
vote
0answers
161 views

CentOS 7 systemd service file (run python script) working, but logging errors?

I have an application written in python which I've used many times with CentOS 6, and am now setting it up on CentOS 7. I've created a systemd service file that contains the following: # # Systemd ...
1
vote
0answers
53 views

keyring best practices with systemd

There plenty of tools working with keyrings: ssh-agent, gpg-agent, gnome-keyring, kwallet, wrappers like keychain, keyctl talking to GNU/Linux kernel. There are various recommendation on how/when to ...
1
vote
0answers
107 views

Media key problems with Microsoft keyboard

I have a Microsoft All-in-One wireless media keyboard (n9z-00001) which behaves weirdly with my current distribution, Arch Linux. (Linux 3.19.3-3-ARCH #1 SMP PREEMPT Wed Apr 8 14:10:00 CEST 2015 ...
1
vote
0answers
29 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 ...
1
vote
0answers
77 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= ...
1
vote
0answers
122 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] ...
1
vote
0answers
66 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
145 views

Fedora 21 akmods.service long boot time

I updated from 20 to 21 today and while booting into 21 I noticed the boot time being really long. The result of systemd-analyze blame: http://pastie.org/9794252 systemctl status akmods.service: ● ...
1
vote
0answers
91 views

Error file system check

I enabled the package e2fsprogs and always when the system starts it return the following error (when partition mounting): Jan 01 00:00:03 xxxx systemd[1]: Found device /dev/mmcblk0p3. Jan 01 ...