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
387 views

Different behaviour of systemctl suspend when executed via i3 wm key binding

I am using the i3 tiling windows manager in combination with light-locker to lock the screen. Light-locker displays a lock message on the locked TTY and shows the password screen on a second TTY. ...
2
votes
1answer
443 views

How to force systemd enter in emergency mode?

I'm using Opensuse 12.3. systemd-195-13.45.1.x86_64 After few problems when I added a disc at btrfs mount I'm trying put my system in emergency mode (which I consider all services will be stopped and ...
4
votes
1answer
3k 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 ...
1
vote
1answer
745 views

Force fsck check after reboot with single command

I'm looking for systemd's equivalent to the shutdown -F command. I know that I can force fsck by adding fsck.mode=force to kernel options or tweak mount count for disks. I have tried touch /forcefsck ...
14
votes
3answers
556 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 ...
3
votes
2answers
133 views

How to implement logwatch functionality on top of systemd journal?

Logwatch scans logfiles with regular intervals, collects errors and stuff, then mails it to the admin. This was back in syslog and logfiles days. What's the corresponding solution for systemd's ...
0
votes
1answer
162 views

Why can my gentoo systemd installation only execute files as root?

If I try to login as any other user, via su it says 'permission denied'. If I use su -l it says 'canot cd to /home/<user>'. Logging in via the tty just kicks anyone without a message out except ...
1
vote
1answer
87 views

How to start ipsec on Gentoo after migrated to systemd?

My system is Gentoo 64bit, and is using systemd as the initialization system. After I migrated to systemd, I found there's not service to start ipsec. I tried to run /etc/init.d/ipsec, but it says it ...
3
votes
0answers
556 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 ...
1
vote
1answer
148 views

How do I set the tty that GDM spawns on?

On my computer (under Arch Linux), GDM is spawning on tty1 while I would like it to spawn on tty7. Is there any way to do that?
0
votes
2answers
348 views

How to delete (not disable/mask) a unit in Systemd?

Sometimes I make a new unit in mistake, and then I have to go to /etc/systemd to look for the unit and delete all of its associated files/scripts/links/etc. Is there a better way? Like a single ...
1
vote
1answer
123 views

How to postpone shutdown with systemd?

I run a desktop computer, which typically is shut down for the nights and often also during the day, when not in use or left unattended. I usually shut it down from GUI (KDE 4.10), sometimes - from ...
2
votes
0answers
212 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: ...
5
votes
1answer
311 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", ...
1
vote
0answers
111 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 ...
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: ...
2
votes
1answer
121 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 ...
1
vote
2answers
633 views

installing/configuring and running sshguard on debian

I am trying to install/configure and run sshguard on debian, I want to check if brute force attacks happen on my server. I have installed it via apt-get, then I installed systemd and followed the ...
3
votes
1answer
1k views

Where is my /etc/init.d/skeleton on OpenSuse 12.3?

On a fresh install of OpenSuse 12.3, I want to "daemonize" a program. And, on all examples found on Internet, I see I have to create first a /etc/init.d/myscript based on the /etc/init.d/skeleton... ...
2
votes
0answers
382 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
2answers
313 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
424 views

Is there any reason to move away from fstab on a systemd system?

I'm on an Arch Linux system, which means systemd. In systemd there are native unit files for mountpoints, with the extension .mount. I've always just used /etc/fstab, which never gave me problems ...
2
votes
1answer
333 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
332 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 ...
3
votes
1answer
128 views

How to troubleshoot systemd's “contradicts existing jobs” error message

Looking through my system logs, I see the following message in /var/log/messages: Sep 2 15:29:15 <myhostname> systemd[1]: Requested transaction contradicts existing jobs: File exists So, my ...
2
votes
0answers
439 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 ...
1
vote
1answer
872 views

OpenVPN autostart with systemd

I enabled an openvpn globally by systemctl enable openvpn@con.service Which works well and I'm connected to my VPN after reboot. But once I suspend my laptop instead of rebooting, or simply lose ...
0
votes
1answer
2k views

Gentoo and Systemd: Can openrc be uninstalled without breaking other packages?

I switched my Gentoo system from openrc to systemd, and everything seems to run fine as long as both are installed. Nevertheless, after emerge --depclean, which removes openrc, the gentoolkit program ...
3
votes
2answers
870 views

journalctl --verify reports corruption

I just noticed this verify option for journalctl and decided to give it a go, it's showing corruption, what might cause that? and what if anything should I do about it? should I investigate further? ...
1
vote
1answer
372 views

How to preserve the logind session in Arch Linux?

I got audio working in Arch Linux without problems yesterday, but at some point it stopped working again: $ alsamixer cannot open mixer: No such file or directory $ vlc foo.mp4 ... [0x7f1388006be8] ...
2
votes
0answers
123 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
1answer
606 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", ...
4
votes
1answer
617 views

How do I get systemd to start my ZFS mount script before doing anything else?

Right now I'm using zfsonlinux on Fedora 19, and it works excellently. Mounting works at bootup as planned using the initscript (included with zfs) that systemd calls, but there's a pretty significant ...
3
votes
2answers
304 views

Setting DISPLAY in systemd service file

Im trying to learn systemd services by trying to start xclock as a service, the service file is below [Unit] Description=clock [Service] Environment=DISPLAY=:0 ExecStart=/usr/bin/xclock [Install] ...
2
votes
1answer
288 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 ...
10
votes
2answers
1k 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 ...
2
votes
0answers
306 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 ...
1
vote
3answers
3k views

How to mount aufs file system on boot in archlinux?

I want to use aufs to combine a few disks.I am able to mount the aufs file system using the mount command from the command line. However, when trying to mount the same through an fstab entry, it ...
0
votes
1answer
128 views

Systemd: keep forked process alive when service is stopped

I have a systemd service which forks some child processes. In one scenario I start a shell script which is supposed to stop the service which actually started the script. When I call systemd stop ...
0
votes
1answer
106 views

Is it possible to prevent systemd from executing the command specified with ExecStop?

I have a service that I only need systemd to run ExecStart= command at boot, and don't run the ExecStop action at shutdown / reboot. Is that possible? I can't just remove the ExecStop line, 'cause ...
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 ...
1
vote
1answer
514 views

What's wrong with this autologin configuration?

I'm configuring TTY auto login, so I followed the official guide, created a file named autologin.conf in /etc/systemd/system/getty@tty1.service.d, containing the following lines: [Service] ExecStart= ...
3
votes
0answers
138 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 ...
2
votes
1answer
361 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 ...
17
votes
2answers
871 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 ...
2
votes
1answer
746 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 ...
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 ...
4
votes
1answer
2k views

User systemd PulseAudio service

Not much else to this question: I would like to know what I need to create a PulseAudio systemd service to be run with systemd --user. I've tried a few different things, including various user ...
3
votes
1answer
316 views

How to create rootfs for user mode Linux on Fedora 18?

I want to create a rootfs to be used with an UML kernel and be able to use the internet. I was using febootstrap with packages: bash, coreutils, net-tools, iputils. After using ...
2
votes
0answers
243 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" ...