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
1answer
686 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... ...
3
votes
2answers
523 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? ...
3
votes
1answer
81 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 ...
3
votes
1answer
120 views

Run backup on HD plugged with systemd

When I plug a HD via USB, it should a) mount it b) run my backup script. What I currently have is backintime.service [Unit] Description="Runs backintime to backup." [Service] User=user ...
3
votes
1answer
508 views

dropboxd hangs at `Connecting…` when started trough systemd on boot

I've got a systemd service file dropbox.service set up as follows: [Unit] Description=dropbox After=local-fs.target network.target [Service] User=romeovs ExecStart=/usr/bin/dropboxd [Install] ...
3
votes
1answer
42 views

rsyslog not logging

This is an odd issue. I was testing the chrony/ntp services on a RHEL7 VM and was resetting its time as well as the host's. Once I was satisfied with it I checked /var/log/messages and realized it ...
3
votes
0answers
61 views

Graceful shutdown in ArchLinux

I'm trying to get a graceful shutdown/reboot in ArchLinux with GNOME Shell. Now, when I ask for shut-down, it immediately shuts down without giving open programs time to gracefully close / save open ...
3
votes
1answer
15 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
52 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
1answer
118 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 ...
3
votes
0answers
89 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 ...
3
votes
0answers
106 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
2answers
130 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] ...
3
votes
0answers
118 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
1answer
224 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 ...
3
votes
0answers
88 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?
3
votes
1answer
1k views

FUSE : Allow any user in the fuse group to unmount

I'm currently trying to write a couple of systemd/udev configuration files that will allow me to automount/unmount MTP Android devices on my Archlinux laptop. It took me some time, but so far it works ...
2
votes
1answer
2k views

Start systemd service after mysql

I am working on a project which is a mono EmailServer. I have tried adding a service to the systemd so that it starts up automatically during boot but I am having a problem. I have created the ...
2
votes
2answers
2k 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
1k 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
130 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 ...
2
votes
1answer
59 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
2answers
277 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
1answer
80 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
261 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
238 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
486 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
1k 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
1answer
3k 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
60 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
72 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
269 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
204 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
180 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
162 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
2answers
2k views

How do I configure systemd to activate an encrypted swap file?

My previous question produced the commands to add an encrypted swap file: # One-time setup: fallocate -l 4G /root/swapfile.crypt chmod 600 /root/swapfile.crypt # On every boot: loop=$(losetup -f) ...
2
votes
1answer
523 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
22 views

How to find what thing make a cycle in systemd [duplicate]

when boot with systemd, my system display this message: systemd[1]: Found ordering cycle on basic.target/start systemd[1]: Walked on cycle path to sysinit.target/start systemd[1]: Walked on cycle ...
2
votes
0answers
51 views

How to use systemd hybrid-sleep instead of suspend under GNOME in Linux? [closed]

How can I make GNOME 3 use systemd hybrid-sleep instead of suspend, when closing the lid or using suspend from the menu?
2
votes
2answers
261 views

launch x11vnc on bootup

I am using archlinux version 3.10.27-1-ARCH on my remote PC and I would like it to launch x11vnc server on successful bootup. Though i can start the x11vnc server manually, I am having trouble ...
2
votes
0answers
146 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
175 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
97 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
363 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 ...
2
votes
0answers
402 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
0answers
158 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
169 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
1answer
191 views

systemd stuck on mounting an encrypted volume

systemd seems to stuck on mounting an encrypted volume, when I set the init to /usr/sbin/systemd in grub.cfg, I have one line in /etc/crypttab secure /dev/sda8 /etc/cb.key That works with original ...
1
vote
1answer
317 views

How to start a webserver with systemd?

I copied this this file (vokabel_daemon.service) [Unit] Description=Start vokabeltrainer daemon After=network.target [Service] ExecStart=/home/mm/lib/vokabeltrainer/box_vokabeltrainer.pl daemon ...
1
vote
3answers
2k 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 ...