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

2
votes
2answers
1k views

No more coredumps after migrating to systemd [duplicate]

Generating coredumps used to work fine, but after switching over to systemd, I only see the message Aborted (core dumped) but no core file is generated. Has it something to do with systemd? ...
2
votes
1answer
2k views

How can I disable the X-server on Fedora 17?

I want to use a Fedora 17 "Beefy Miracle" system as a network-shared desktop for cooperative work. For this I'm using TigerVNC which brings its own X-Server and starts a completely separate desktop ...
2
votes
2answers
101 views

Does systemd still know about runlevels?

Does systemd still have the concept of runlevels? For example is it pointless to use telinit <number>?
2
votes
1answer
274 views

How to disable systemd's “Time has been changed” message spam in /var/log/syslog on Debian jessie?

Due to combined use of Debian jessie, that uses systemd by default, and sdwdate (that uses Slow Clock Adjuster ( gh )), my system clock is frequently changed. As a result /var/log/syslog gets ...
2
votes
2answers
2k views

Log every command typed in any shell: output (from logger function to syslog-ng/journald) contains duplicate entries for commands?

I installed syslog-ng to use on my desktop (Gentoo 64bit, upgraded to systemd i.e. was OpenRC before, with Openbox and Slim only) with my normal user to log all commands I type in the shell (bash ...
2
votes
2answers
3k views

Network naming on Arch Linux

I've just installed Arch Linux on my old PC, to do the installation I used wifi-menu wlan0, now I've reboot but if I type: ifconfig wlan0 up I have as a result: wlan0: ERROR while getting ...
2
votes
1answer
33 views

Problem mounting additional partitions after kernel update

Today I upgraded my pretty ancient Debian Linux kernel (3.2-23) to 3.16-7. The machine boots okay, except that some fstab entries are suddenly causing issues. # /etc/fstab: static file system ...
2
votes
1answer
47 views

Preserve environment variables using systemd?

Do systemd unit files support preserving existing environment variables? (Something similar to sudo -E?) Not referring to Environment= or EnvironmentFile= here. It would be be useful if systemd ...
2
votes
2answers
406 views

What's the best way to have uwsgi create a '/run/uwsgi' folder on reboot?

I have set up a Django project to run with uwsgi and nginx and it's all running as expected, except that when I reboot uwsgi will not launch correctly until the /run/ folder is recreated on the fs. ...
2
votes
1answer
142 views

Check `fsck` automatically

I need to run fsck so that it automatically fixes problems (i.e., fsck -y). And because I am using "systemd" instead of "init" in the linux system, I cannot modify the /etc/default/rcS. So what ...
2
votes
1answer
2k views

How to automatically force fsck disks after crash in `systemd`?

Sorry for bad english. How to set systemd for automatically force fsck disks after crash (hard poweroff)? When I used sysvinit (in Arch Linux) as /sbin/init I used the hack: in the rc.local I create ...
2
votes
2answers
45 views

How can I enable wpa_supplicant on boot?

I'm trying to enable wpa_supplicant on boot in Fedora 20. I created /etc/wpa_supplicant/wpa_supplicant.conf and am able to connect to my wireless network manually by running wpa_supplicant -B -i ...
2
votes
3answers
64 views

Why is my Debian jessie always in runlevel 5?

I have configured the line in /etc/inittab as follows: # The default runlevel. id:2:initdefault: But after logging in the output of runlevel is as follows: N 5 So why am I in runlevel 5 instaed ...
2
votes
1answer
36 views

How to direct the journal output of certain units to a particular file?

I've got a system with several daemons running (as systemd units) that output log information to the journal in Arch Linux. I want to direct the journal output of some of those unit files into a ...
2
votes
1answer
187 views

Mounting NFS via systemd in Centos 7

I am trying to mount an NFS share on a CentOS 7 box using systemd. This is my /etc/fstab entry: 10.0.0.104:/export /mnt nfs ...
2
votes
1answer
233 views

Remove the newline before `/etc/issue` in tty

I want to remove the default newline inserted before the content of /etc/issue on login prompt in tty. I'm using agetty and systemd. I tried to add the --nonewline option to my getty@tty5.service : ...
2
votes
1answer
133 views

How can I stop an amok running process from logging to systemd?

There's a process on my system called demond which logs around 100 entries to the systemd journal every 15 seconds: Okt 11 04:58:42 scarecrow demond[1692]: [P:1692 T:108160832] src/discovery.c : 158 ...
2
votes
1answer
439 views

How to suspend from Gnome3 using systemd

Brief background information: I just installed Fedora 18 with Gnome 3.6.3.1 on my computer. It is connected to a Windows share (CIFS) containing music, which I play using Clementine. If I suspend the ...
2
votes
1answer
546 views

No shutdown or reboot option in KDE4's menu

I obviously have the privilege to shutdown through dbus, cuz it works in XFCE4, but in KDE4, I only have an option to logout. Any thoughts? I start kde4 with dbus-launch --exit-with-session startkde ...
2
votes
1answer
4k views

Fedora 16 using systemd kernel boot parameters to change 'runlevel'

It says in the fedora documentation that you can append this line to the boot options to change the *.target that loads temporarily at boot. systemd.unit=rescue.target Nothing seems to happen it ...
2
votes
1answer
48 views

Output of a python script running as unit is out of order while shells seems unnafected

How would I get all outputs of systemd managed python2 script instantly into journal, just like it appears in terminal I'm on centos 7, but seems to be same on arch according to systemd manual, ...
2
votes
1answer
72 views

Systemd: locking the console

I have a laptop that runs Debian Jessie with only the Linux console - no X server installed. A recent dist-upgrade replaced sysvinit with systemd. Now I'm trying to get systemd to lock the console ...
2
votes
1answer
139 views

Missing systemd journal log

While reviewing my journal log, I find that only logs for the recent three days are present. There is only 8 lines worth of log from between September 19 and 27: # journalctl --since="2014-09-19" ...
2
votes
1answer
180 views

How to force network to wait for DHCP with systemd-networkd?

I'm using systemd-networkd to configure my interfaces: [Match] Name=enp3s0 [Network] DHCP=v4 It works quite well except that at boot, some services are not waiting for DHCP to finish. For ...
2
votes
1answer
312 views

systemd timer needs to run ExecStop at shutdown/reboot

The scenario is that I have a CentOS v7.0 system that can have up to four instances of JIRA running, the instances are Production, Staging, Development and BETA. When I start the system I want all ...
2
votes
1answer
370 views

How can I prevent systemd from freezing my system when Flash dies?

Since a recent update, when I quit a web page containing a Flash animation in Firefox, the plugin-container process becomes a zombie, and then the systemd-journald process (also maybe something like ...
2
votes
1answer
65 views

Failed to open netctl@.service configuration file

I have installed Network Manager, I don't have netctl installed. Whenever I boot my Linux computer I get the following error message: systemd[1]: Failed to open configuration file ...
2
votes
1answer
540 views

Migrate socat init script to systemd

I use socat with following init script on debian 7.2 with sysVinit. It works perfectly: #!/bin/bash DESC=socat DAEMON=/usr/bin/socat LIB=/usr/lib/socat SOCAT_ARGS="-d -d -lf /var/log/socat.log" [ ! ...
2
votes
1answer
741 views

PID file /var/run/named/named.pid not readable (yet?) after start

Feb 24 15:54:34 ns1 named[20308]: all zones loaded Feb 24 15:54:34 ns1 named[20308]: running Feb 24 15:54:34 ns1 systemd[1]: PID file /var/run/named/named.pid not readable (yet?) after start. Feb 24 ...
2
votes
1answer
284 views

Systemd boot time trimming

I just switched to systemd on debian sid and while it's a big step forward it also makes it easy to see opportunities for improvement Boot from suspend takes too long $ systemd-analyze blame | head ...
2
votes
2answers
426 views

command not running in cron (systemctl suspend)

I have this cronjob set : * * * * * /usr/bin/systemctl suspend And it is not working. But I can run it in a shell and it works. I don't understand what could be not working. EDIT Redirecting error ...
2
votes
1answer
470 views

systemd - umount device after service which depends on it finishes

I'm trying to implement a mechanism of automated backup using udev rules and systemd. The idea is to launch a backup routine upon hot-plugging a specific storage device, quite similar to this ...
2
votes
1answer
368 views

How do I connect a 3G dongle using systemd?

At startup, usb-modeswitch automatically switches the dongle to modem mode and the device shows itself as 12d1:1506. After this, a script should run, connecting to the Internet. I am not sure about ...
2
votes
1answer
668 views

Not working udev rule with systemd-udevd on Fedora 19

I would like to play with IOIO on my Fedora 19, so I installed the udev rule as the documentation tells, in /etc/udev/rules.d/50-ioio.rules: ACTION=="add", SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ...
2
votes
2answers
330 views

systemd - Timer units that mimic anacron behaviour

I need to write a timer unit for a machine which is turned of frequently (e.g. classical desktop setup). This timer unit needs to be activated regularly but not very often (e.g. weekly, monthly). I ...
2
votes
1answer
971 views

dhcpcd can't startup at boot

when I run dhcpcd after boot everything works fine but when I try to add it to auto start systemctl enable dhcpcd@eth0.service, after each boot it's inactive dhcpcd@eth0.service loaded ...
2
votes
1answer
820 views

systemd failure on binfmt services

Systemd has several failed services, and I don't know how to work it out: # systemctl --failed UNIT LOAD ACTIVE SUB JOB DESCRIPTION proc-sys-fs-binfmt_misc.automount ...
2
votes
0answers
14 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
31 views

How to implement policy conform systemd custom actions on Debian?

What do I mean by custom actions? Here are some examples. sudo service apache2 stop-htcacheclean sudo service apache2 graceful-stop sudo service apache2 start-htcacheclean sudo service apparmor ...
2
votes
1answer
380 views

Why does my systemd unit fail to run on server reboot?

I'm having troubles getting a systemd service unit file to run correctly when the server reboots. This server is a fresh CentOS 7.0.1406 install. I'm trying to set it up with multiple Apache httpd ...
2
votes
1answer
43 views

linux systemd intercept shutdown if service is active

I've created a little update/upgrade program for my arch-based linux. Instead of using a cronjob I'm using systemd and created following files: in /etc/systemd/system: uupgrades.target & ...
2
votes
0answers
69 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
28 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
45 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
165 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
1answer
158 views

systemd mount volume using device symlink

I'm trying to have systemd mount a volume by symlink. Unfortunately when I try it times out waiting for the systemd device to show up. # systemctl start mnt-ephemeral0.mount A dependency job for ...
2
votes
0answers
64 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
379 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 ...
2
votes
0answers
63 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
51 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: ...