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

5
votes
0answers
311 views

How to run systemd user service to trigger on sleep (aka. suspend, hibernate)?

Based on various sources I have cobbled together ~/.config/systemd/user/screenlock.service: [Unit] Description=Lock X session Before=sleep.target [Service] Environment=DISPLAY=:0 ...
4
votes
0answers
146 views

Execute code on shutdown on Fedora 19

I need to catch any OS shut down and execute some actions before letting the OS be shutted down. I'm using Fedora 19 and C++. I'm able to catch a shutdown signal given by the console with the ...
3
votes
0answers
78 views

Wildcard automounts with systemd

I’m running jessie/sid with systemd 208 and try to convert the following wildcard autofs configuration to either an /etc/fstab or .mount/.automount definition. $ cat /etc/auto.master /home/* ...
3
votes
0answers
39 views

Is there a way to make sure only one systemd@.service instance is running resp. gets started

I would like to use one .service file for starting a service from varying directories but it would be nice if there was a way to automatically stop any running instance with a different instance name ...
3
votes
0answers
135 views

How to start to use httpd with socket activation (systemd)?

The apache httpd server is seldom needed on one of our small servers, so it would be nice to start it via socket activation by systemd (and later stopped it when no traffic occurred for some time). Is ...
3
votes
0answers
586 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
111 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
147 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
100 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
17 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
37 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
76 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
36 views

Systemd user unit that depends on system unit (sleep.target)

I was reading doc and it is still unclear for me, whether the following is possible to accomplish: service defined in ~/.config/systemd/user/task.service that depends on system sleep.target ...
2
votes
0answers
40 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
41 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
678 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 ...
2
votes
0answers
234 views

How to speed up or get rid boot with network manager on systemd?

Network manager is the one thing that holds my system boot time from becaming really barelly existing. I'm connecting to wi-fi. My boot chain indicates what's wrong with network manager: ...
2
votes
0answers
431 views

How to add a dependency to a systemd.mount that is activated by /bin/mount?

I want systemd on mount /mnt/test to automatically call a program (in real life cryptsetup to unlock the underlying device, for testing here echo) before the file system is mounted and after it is ...
2
votes
0answers
483 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
129 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
329 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
254 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
249 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 ...
1
vote
0answers
68 views

With systemd-networkd, perform an action upon network configuration change

I am switching from Debian’s ifupdown to systemd-networkd, and it mostly works fine. One missing bit is that upon every network change, I want to call killall -ARLM tinc, so that my VPN is going up in ...
1
vote
0answers
28 views

Why does my Before=sleep.target service run *after resuming*?

I've defined the following service to start a screen locker before suspending: $ cat /etc/systemd/system/screenlock.service [Unit] Description=Lock X session using slock Before=sleep.target ...
1
vote
0answers
15 views

MDADM Array Detection Slowing Down Boot - Why?

I have an AMD64 Gentoo (running systemd) build with a RAID0 root and some other arrays (RAID1 boot, RAID1 home etc..). The boot process is being slowed down quite dramatically as mdadm searches the ...
1
vote
0answers
74 views

systemctl to start cron-like job

In /etc/systemd/system directory I have: rsnapshot-backup.service file, with following content: [Unit] Description=rsnapshot backup automation [cron like] [Service] Nice=19 IOSchedulingClass=2 ...
1
vote
0answers
36 views

How to determine a log's source process spawned from a systemd service?

I have a systemd service which starts multiple 3rd-party processes which output to standard output. Is there anyway to easily determine which logs are from specific process from the system journal? ...
1
vote
0answers
334 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 ...
1
vote
0answers
41 views

systemd start unit after another unit goes inactive

Is there any way to delay a unit from starting up once another unit goes inactive? I have a startup process (oneshot.service) that runs as a one-shot and sets up the environment for all other ...
1
vote
0answers
50 views

clamd randomly stops

I am using clamav in conjuction with c-icap to filter content with squid. I am also using the safebrowsing functionality of clamav to block access to bad domains. For some reason or another, clamav ...
1
vote
0answers
160 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 ...
1
vote
0answers
238 views

Boot time discrepancy using systemd on Debian 7.4

I recently installed systemd on my Debian 7.4 system. The time from pressing the power button to usable desktop is around 42-44 seconds. The BIOS takes 6-7 seconds to load and transfer control to ...
1
vote
0answers
53 views

linux watchdog and systemd watchdog

I'm in trouble with watchdog :( Is there any way to register application into systemd watchdog at runtime? Does linux watchdog only use for system reset or it can be use for application reset?
1
vote
0answers
107 views

Writing a systemd service to be executed at resume

my Dell laptop is subject to this bug with kernel 3.14. As a workaround I wrote a simple script /usr/bin/brightness-fix: #!/bin/bash echo 0 > /sys/class/backlight/intel_backlight/brightnes ...
1
vote
0answers
155 views

Suggestions to debug missing kernel messages from systemd journal

I have recently been playing around with a new freescale i.mx6 system. I have installed archlinuxarm on it. Strangely, all kernel messages are missing from the journal. $ sudo journalctl -k -- ...
1
vote
0answers
120 views

What are the systemd command line options “--switched-root” and “--deserialize”?

Doing a ps on my Linux box shows that systemd runs with the command line options --switched-root and --deserialize. Nothing in the man page or /usr/share/doc/systemd mentions them, and Google hasn't ...
1
vote
0answers
387 views

How to write a systemd script that runs usb_modeswitch and connects to the internet at startup?

I have a cisco AM10 wireless adapter and every boot, I need to run usb_modeswitch -v 1307 -p 1169 -L -I -u -l to get it to function as an adapter. Then I have to run a netcfg profile to connect to ...
1
vote
0answers
71 views

Can't run vlock-cmatrixreloaded with acpid anymore, after switching to systemd

In the old days, I configured acpid to launch vlock-cmatrixreloaded when I press Fn + F2, now it no longer works since systemd handles TTYs, I just got a screen flash when I press those keys. The ...
1
vote
0answers
111 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 ...
0
votes
0answers
101 views

systemd slow boot - systemd-tmpfiles-setup

Recently I upgraded to debian jessie (current testing) and after that avg boot time has increased to 3-4 minutes. Between grub and gdm start, I get this message for 2-3 minutes. A job is running for ...
0
votes
0answers
31 views

Systemd, restart service when ip address changed

I wrote a pretty simple service: [Unit] Description=Service on interface %I [Service] Type=oneshot RemainAfterExit=yes ExecStart=/usr/lib/project/my_script.sh start %I [Install] ...
0
votes
0answers
30 views

systemd with 10 ttys and Desktop on Ctrl+Alt+F5

I am running systemd on ArchLinux. I have read various posts of doing this but it seems impossible (i.e. I am incompetent in implementing this:)) ). I want to disable the on-demand tty spawning of ...
0
votes
0answers
69 views

CentOS 7 - Graceful shutdown via power button

I want to be able to shutdown my centos 7 machine by pressing the power button. Since it doesn't work out of the box, I tried the following: yum -y install acpid service acpid start chkconfig acpid ...
0
votes
0answers
24 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 ...
0
votes
0answers
49 views

Runtime parameters for a systemd service

I am a little confused about how runtime parameters are normally supplied to a systemd service. The general idea I have is that the following happens: There is a file that contains the environment ...
0
votes
0answers
40 views

Can't access GPIOs when switching to systemd, but why?

I'm using this ARM AT91 Sam9x5ek Embedded Device, with my Linux Images made by a Buildroot. Usually my init-system is Busybox, now I changed it to systemd. Since then I can't access the GPIO anymore, ...
0
votes
0answers
154 views

Issue with network interfaces in Fedora 20

I am using Fedora 20 with NetworkManager disabled and the network service enabled. I am creating virbr0 with eth0 binded to it and using dhcp. I have disabled current network interface naming ...
0
votes
0answers
28 views

Modifying networking and daemons using systemd

I'm trying to follow this guide however, it appears rc.conf is discontinued and systemd has taken over. How can I modify the networking and daemons shown in step one using systemd? Any help is ...
0
votes
0answers
113 views

Systemd: Timeout a service

Is there a way to have systemd stop a service after it has been running for X amount of seconds? I looked at just wrapping ExecStart with timeout, however I believe it might not work if my service is ...