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

67
votes
4answers
29k views

What are the pros/cons of Upstart and systemd?

It appears systemd is the hot new init system on the block, same as Upstart was a few years ago. What are the pros/cons for each? Also, how does each compare to other init systems?
20
votes
1answer
1k views

How does systemd survive a kill -9?

Between the recent "Why does 'kill -9 0' end my console session" and "How to get a kernel panic" questions, I got a bur under my saddle and tried kill -9 1 on a mostly up-to-date Arch linux laptop. I ...
18
votes
1answer
1k views

What sets systemd apart from other init systems?

It is not quite official but it looks like systemd is coming to Debian and after reading some of the heated mailing list discussion on that decision, I am curious about the polarizing nature of ...
17
votes
2answers
11k views

View stdout/stderr of systemd service

I have created a simple systemd service file for a custom application. The application works well when I run it manually, but my CPU gets maxed out when I run it with systemd. I'm trying do track ...
17
votes
2answers
995 views

Prompt for password during boot with systemd service

This is relevant to Arch Linux (and perhaps other distributions using systemd). I want to mount a TrueCrypt partition at boot. With the old sysvinit, this was pretty straight forward with a script ...
16
votes
4answers
9k views

Writing basic systemd service files

I am developing a Nodejs application that the user interacts with via HTTP on localhost. There are practically no parameters and the daemon has virtually no dependencies and it just needs to be up by ...
16
votes
3answers
670 views

Documentation: Architecture of Linux Session

I'm looking for a good overview documentation describing the the stack of daemons and services involved in a modern Linux session. Although having read various documentation about dbus, and systemd ...
14
votes
1answer
28k views

How to write startup script for systemd

I have 2 graphics cards on my laptop, one is IGP and another discrete, I've written a shell script to to turn off discrete graphics card. How I can convert it to systemd script, to runt at start-up?
12
votes
2answers
2k views

Receiving Syslog messages with a systemd Arch Linux

I'm feeling like I've overlooked the obvious, but I can't figure out how to get my Arch Linux server, which uses systemd, to receive and log syslog messages from a remote system. I have a Cisco 678 ...
11
votes
3answers
741 views

Eject CD on shutdown

OK, so I have a simple problem: I have a live CD, and I want the CD to eject when the computer is rebooted or halted. Executing /usr/bin/eject -m makes the CD eject just fine... trouble is, as you ...
10
votes
1answer
430 views

Actkbd as service with systemd

A while ago I asked for how to stop a music player while the screen is locked. The answer was to use actkbd which works like a charm. Now I wanted to add actkbd as a service to systemd in order to ...
9
votes
2answers
3k views

How can I find available network interfaces?

This is in regard to linux, but if anyone knows of a general *nix method that would be good. I booted a system yesterday with an ethernet cable plugged in. "NetworkManager" is not installed, so once ...
9
votes
1answer
3k views

How to get fewer ttys with Systemd?

In the old days I just modified /etc/inittab. Now, with systemd, it seems to start tty[1-6] automatically, how should I disable tty[4-6]? Looks like there's only one systemd service file, and it use ...
9
votes
3answers
6k views

How to run a script with systemd right before shutdown?

What do I need to put in the [install] section, so that systemd runs /home/me/so.pl right before shutdown and also before /proc/self/net/dev gets destroyed? [Unit] Description=Log Traffic [Service] ...
9
votes
2answers
521 views

What is needed for a minimal systemd boot to launch getty on a virtual console?

For SysV init, I need /etc/inittab respawning getty entries, the /sbin/init binary, the binaries and shared libraries for the shell, login, the getty, the PAM/security/shadow stuff, and a few device ...
8
votes
2answers
680 views

Arch does not mount btrfs array on boot

As data partition I have a multi-disk btrfs filesystem. My root disk is ext4 Fstab: UUID=290624c6-6b95-41fd-94a1-923ebca64b83 / ext4 rw,relatime,data=ordered 0 1 /dev/sdc ...
8
votes
1answer
822 views

What makes systemd-nspawn still “unsuitable for secure container setups”?

This is stated in the man page for systemd-nspawn Note that even though these security precautions are taken systemd-nspawn is not suitable for secure container setups. Many of the security ...
7
votes
5answers
3k views

Fedora 16 strange /tmp permissions: mysqld will not start

I installed mysql on a brand-new Fedora 16 server and it would not start. This is the line from the log file (^G and all): ^G/usr/libexec/mysqld: Can't create/write to file '/tmp/ibNPyIlu' (Errcode: ...
7
votes
2answers
3k views

How to replace sysvinit with systemd in debian?

I've been using systemd for a while in my Debian installation, just that to make it possible I had to add a boot parameter to the /etc/default/grub file to make it work, which is added to Ubuntu boot ...
7
votes
2answers
3k views

Arch Linux how to close tty

I've opened several ttys and I don't know what key combination to use to close a tty. I'm using Arch Linux.
7
votes
3answers
2k views

Run Script once a day with systemd

I want to run a backup script 10 minutes after booting up my machine but only once a day. Is it possible to build up such scenarios with systemd?
7
votes
4answers
3k views

Cause a script to execute after networking has started?

I am relatively new to systemd and am learning its architecture. Right now, I'm trying to figure out how to cause a custom shell script to run. This script needs to run after the networking layer has ...
7
votes
1answer
2k views

Why is systemd-coredump storing the dump in memory itself?

I just noticed that most of my memory was hogged by coredump of a few processes that I had killed recently. I had a systemd-coredump process running for each crashed process (usually the processes ...
7
votes
1answer
312 views

How to enable “Predictable Network Interface Names”?

I decided to check out what name my ethernet device will end up with, but contrary to other distros, Debian doesn't seem to have activated this change (or is holding it back?), * Keep the old ...
7
votes
1answer
960 views

How to shutdown with consolekit without sysvinit (but with systemd)

I have systemd (and no sysvinit) installed on a Arch Linux box. However, I cannot shutdown/reboot with consolekit (dbus interface). # systemctl {shutdown,reboot} work just fine, so I guess it's ...
7
votes
1answer
268 views

Why are cgroups mapped differently on these two systems by systemd

I have two systems, both running customized variants of OpenSuSE 12.2 (Mantis), both running exactly the same kernel. I get two very different outputs of /proc/self/cgroup or /proc/$$/cgroup on the ...
7
votes
1answer
811 views

What's the right way to execute a script before system shutdown (systemd)?

I wrote a script that suspends all my VirtualBox machines, and put a line in /etc/rc.local.shutdown, but it doesn't seem to work, su - XX -c /XX When I'm booting the next time, VirtualBox tells me ...
6
votes
2answers
883 views

`systemd` messages after starting login

After boot-up process systemd starts agetty, but after 1--2 seconds additional messages are appeared: How to avoid this? I use Arch Linux, systemd 194. $ grep '^[^#]' ...
6
votes
3answers
2k views

How does systemd-tmpfiles work?

I'm trying to change the value of /sys/bus/usb/devices/4-3/power/wakeup at every boot (4-3 according to my lsusb, it's the keyboard ID). The default value is: # cat ...
6
votes
3answers
3k views

Trouble with dbus and systemd/user

I have systemd set up so that using systemctl start user@me will start my user services as I expect, but my dbus one just won't go (which I need for PulseAudio). Is there some way I can check dbus or ...
6
votes
3answers
2k views

Is there a way to speed up boot time by loading things into RAM immediately?

I'm looking to lower my boot time by whatever means possible. I have about 8GB of RAM in my laptop, and if there's any way I could leverage that into faster boot time, that'd be awesome. Is there a ...
6
votes
1answer
915 views

Where is / why is there no log for normal user systemd services?

I'm trying to learn basic systemd usage and I've run into a confusing issue with user service units. When running ordinary services with systemctl start some.service I can find the full log for this ...
6
votes
1answer
360 views

trigger udev rules from systemd

I have one of those hdds, that have a very aggressive power management. To prevent load cycles from rising in to critical numbers I wrote an udev rule: SUBSYSTEM=="block", SUBSYSTEMS=="scsi", ...
5
votes
2answers
625 views

Why does Fedora 20 request a restart after software updates?

I have a Fedora 20 installation in a VirtualBox virtual machine. Now it notifies me of "OS Updates", that "Includes performance, stability and security improvements for all users", and I have the ...
5
votes
1answer
3k views

How to clear journalctl

I couldn't find in google any safe way to clear systemd journal. Do anyone know any safe and reliable way to do so? Added: As a reason, let's say I was experimenting with something and my logs got ...
5
votes
1answer
8k views

How can I autologin to desktop with systemd?

How can I configure systemd to automatically log me in to my desktop environment, preferably without using login manager? I'm using Arch.
5
votes
1answer
4k views

Where does `logger` log its messages to in Arch Linux?

The logger command logs an entry via syslog, which usually puts that line to some file like /var/log/messages. If I understand the documentation correctly in Arch Linux all the logging is done ...
5
votes
1answer
3k views

suspend AND lock screen on closing lid in arch/systemd

what is the most straightforward way to lock the screen AND suspend when closing the lid? I'm using event hooks in /etc/systemd/logind.conf and successfully suspend upon closing the lid. However I'm ...
5
votes
3answers
1k views

How can I set power button (on computer case) to power off system with `systemd`?

How can I set the power button (on my computer case, not keyboard) to power off the system with systemd (without acpid)?
5
votes
3answers
10k views

How to mount NFS 3 volumes on Fedora 17?

I installed the package nfs-utils and tried it via: # mount -t nfs server:/mnt /mnt mount.nfs: rpc.statd is not running but is required for remote locking. mount.nfs: Either use '-o nolock' to keep ...
5
votes
2answers
224 views

What are the practical implications, if any, of using software which processes are not the descendants of the window manager?

I've set up Openbox on bare X with the slim login manager, all on a systemd init (on Gentoo). I'm using two different terminal emulators on the desktop so as to be able to create different behaviors ...
5
votes
2answers
405 views

Why is a service being started if it isn't mentioned in /etc/init.d?

After a clean install of Fedora 17 and distcc-server, I did a service distccd start, which completed successfully. man service indicates that it would merely be running the distccd script at ...
5
votes
1answer
211 views

Debugging lock-up - systemd loses my logs

Ever since I have "upgraded" to systemd on Arch Linux, I keep losing logs when an unexpected lockup happens. I hit the same log-losing issue one month ago and just hit the issue again. There are also ...
5
votes
1answer
928 views

What is the correct way to write a udev rule to stop a service under systemd

I'm running Arch Linux, and I have a udev rule which starts a service when a device is inserted. In this case, it dials a connection when a 3G modem is plugged in. KERNEL=="ttyUSB*", ...
5
votes
1answer
2k views

How do I disable udevd in systemd?

I'm trying to boot a Fedora Rawhide LXC container from a Fedora 16 host, and it's not working - systemd just keeps dropping into emergency mode. Because udevd doesn't work in LXC containers, I thought ...
5
votes
0answers
481 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 ...
5
votes
1answer
115 views

How do I start service in systemd right after cryptsetup?

I have an ArchLinux installation with systemd. I am trying to run a hook immediately after my encrypted data device is mounted in order to put flashcache on top of it. I have scripts that work, ...
4
votes
2answers
169 views

Non-graphical boot with systemd

I want to boot to console instead of a GUI using systemd. How can I do that?
4
votes
2answers
1k views

ERROR: Root device mounted successfully, but /sbin/init does not exist

I've installed Linux Mint and Manjaro Linux on my computer. I installed only the Linux mint on the MBR. For Manjaro, I created a /boot/efi partition, but I have not checked to install to MBR. So, I ...
4
votes
2answers
5k views

Can't boot system with systemd version above 208

I recently upgraded systemd from version 208 to 212 (also tried any other version between these two numbers) And the system can't boot anymore. Looks like it cannot mount /tmp, but in emergency shell ...