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

How to distinguish if a systemd unit is run by apt-get or during boot?

Can one somehow distinguish if, a) the daemon was started during boot or, b) (re)started by an apt-get install or upgrade? Can this be distinguished from within the daemon itself? The use case is ...
3
votes
0answers
87 views

Run systemd service after automount but after it's accessed

Is it possible to run a systemd service that prepares an automounted file system for use? This service would need to run after the filesystem is mounted, but before whatever triggered the automount ...
3
votes
0answers
86 views

What is the difference between “systemctl restart” and “systemctl start”?

I have two services A and B where B is dependent on A which means in the A's service unit i have After and Requires set to B After=B.service Requires=B.service Now when i stop the service B the ...
3
votes
1answer
95 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 & ...
3
votes
1answer
603 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 ...
3
votes
1answer
171 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
1k 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 ...
3
votes
1answer
1k 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 ...
3
votes
0answers
734 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
1answer
377 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: ...
3
votes
0answers
125 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
204 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
461 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
118 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
2k views

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 Arch Linux laptop. It took me some time, but so far it ...
2
votes
3answers
7k 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 ...
2
votes
3answers
310 views

systemd: permission issue with mkdir & ExecStartPre

I've got a problem with this (shortened) systemd service file: [Unit] Description=control FOO daemon After=syslog.target network.target [Service] Type=forking User=FOOd Group=FOO ...
2
votes
2answers
1k views

Differences between inactive vs disabled and active vs enabled services

I am confused by the concept of enabled or active and disabled or inactive. Can you explain it?
2
votes
2answers
2k 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
205 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
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
52 views

Where do I put my systemd unit file on Arch Linux?

Sometimes these things can be hard for first-timers. Being a do-it-myself person, I read that there are two folders for unit files (not in user mode). /usr/lib/systemd/system/: units provided by ...
2
votes
1answer
116 views

Why does bash parameter expansion not work inside systemd service files?

I am trying to use systemd's EnvironmentFile and add an option to the command when it is set in the file. I have the following in the unit file: ExecStart=/usr/bin/bash -c "echo ${PORT:+port is ...
2
votes
1answer
551 views

Executing chdir before starting systemd service

Question: Can I kick off a process with systemd and assign that process a working directory of my choosing? I have a service that I want to start with systemd. When that service is being started, I ...
2
votes
1answer
113 views

Howto inspect systemd system.journal from another system

I have arch linux failing on a device. The device doesn't have any screen, it doesn't respond to network. So I take its SD card, insert it in ubuntu desktop, see a fresh system.journal there and... ...
2
votes
1answer
572 views

generic methodology to debug ordering cycles in systemd

I am aware of following thread and supposedly an answer to it. Except an answer is not an answer in generic sense. It tells what the problem was in one particular case, but not in general. My ...
2
votes
1answer
375 views

How to enable systemd's service without waiting?

I'm trying to make fastest boot possible and did run systemd-analyze critical-chain: graphical.target @5.800s └─multi-user.target @5.800s └─NetworkManager.service @4.201s +1.598s └─basic.target ...
2
votes
3answers
1k 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
2answers
261 views

Once the system has been started, is there any advantage in using systemd?

I'm running Gentoo with the default SysV-style OpenRC init system. The boot time is short enough to not bother me. Is there any reason to try systemd?
2
votes
2answers
81 views

Why do Gentoo package maintainers install systemd unit files unconditionally (i.e. without depending on the 'systemd' USE flag)?

steps to reproduce: issue cd /usr/portage && grep -R "systemd_dounit" * open several ebuilds and read them almost all ebuilds use systemd_dounit without checking for systemd USE-flag ...
2
votes
1answer
44 views

Does systemd timer unit skip the next run if the process hasn't finished yet?

I want to use systemd to run a command every 5 minutes. However, there is a risk that occasionally the task may take longer than 5 minutes to run. At that point, will systemd start a second instance ...
2
votes
1answer
39 views

Figure out at what time the machine was suspended

I suspended my machine and now got back to work. I want to figure out at what time I suspended the machine. Is there any way to somehow look up the time?
2
votes
1answer
79 views

How to wait for a /dev/video0 before starting a service

First off, I am systemd noob. I can write unit files, which depend on a mount, because I can list them and then add to Requires=xxx, such as: # systemctl list-units | grep data mount-data.service ...
2
votes
1answer
89 views

What exactly is the lack of transparency in systemd? [closed]

Is the claim that systemd log files have "a complete lack of simplicity and transparency" about their being binary files or because the binary files are difficult to parse and understand or because ...
2
votes
1answer
412 views

How to use quote and dollarsign with systemd

I'm using this in a service declartion: ExecStartPre=/usr/bin/docker pull "$DOCKER_USERNAME/redis-replication:latest" In the log of systemd, I can see this when I try to start the service: Usage: ...
2
votes
1answer
94 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
181 views

Listening for journalctl changes

Usually i use tail -f /var/log/messages to get updates if there are new lines How to have the similar functionality for journalctl?
2
votes
1answer
207 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
2k 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 ...
2
votes
2answers
43 views

Udev hwdb rule does not work

I am switching from Ubuntu to Arch Linux and encountering the issue that a udev hwdb rule that has worked until now does not work anymore. The only obvious difference between the systems is that ...
2
votes
1answer
71 views

Completely remove remains of sysvinit

As opposed to people who want to get rid of systemd, I want to completely and safely remove sysvinit. I've been using Debian since Debian 7.0 (Wheezy). Currently I'm using Debian 9.0 (Stretch). ...
2
votes
1answer
38 views

How to stop all units belonging to the same target?

I'm wondering how to stop all units that are grouped together by the same target. My setup is as follows. I have several unit config files that read: [Unit] ... [Service] ... [Install] ...
2
votes
1answer
95 views

How to get kernel messages on serial console on a systemd system?

I'm trying to set up an A20-OLinuXino-LIME2 as a headless fileserver with a Debian 8 image from Igor Pečovnik's builds. I would like the system to output its kernel messages to the serial console ...
2
votes
1answer
128 views

What are the default Polkit privileges on Arch Linux for shutdown, halt, etc., and why are they so?

On Arch Linux, with systemd, the following commands are all symlinks to systemctl: /usr/bin/telinit /usr/bin/poweroff /usr/bin/runlevel /usr/bin/reboot /usr/bin/halt /usr/bin/shutdown I find their ...
2
votes
1answer
468 views

systemd waiting too long for network at Debian 8.0 Jessie's boot

My system has booted up relatively fast while run Debian 7 Wheezy, but after upgrade to Debian 8 Jessie, and therefore SysVinit to systemd, it became a way, way slower. The thing, slowing down the ...
2
votes
2answers
962 views

syslog-ng service not starting with systemd but command works fine

I have a freshly installed version on CentOS 7 once which I have installed syslog-ng from the EPEL repositories. ~: yum list | grep syslog syslog-ng.x86_64 3.5.6-1.el7 ...
2
votes
1answer
867 views

Writing a systemd unit file with a environment-set executable path

I am writing a systemd unit file for a Java application and I'd like to control the version of Java used to start it up. My (simplified) service file is [Service] Type=simple ...
2
votes
1answer
314 views

Run script every 30 min with systemd

I would like to execute a script every 30 min after booting into the system. I know you can use cron, but I don't plan to use this feature often therefore I'd like to try it with systemd. So far I ...
2
votes
1answer
113 views

Rsyslog `logger` message duplicated

I just had a problem with rsyslog's imjournal module, possibly the issue described here, whereby complications with systemd's journal cause the journal to return the same data endlessly in a ...
2
votes
1answer
226 views

Why is my systemd journal not persistent across reboots?

I'm experiencing a very weird issue with a fresh Fedora 21 image on a Linode instance. I cannot reproduce it outside of Linode. The issue is that my systemd journal is not persistent across reboots. ...