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
1answer
34 views

After switching to Devuan, how do I remove systemd?

So, I've also switched from Debian to the Devuan pseudo-fork. But - this doesn't get rid of systemd... I've followed the instructions here, and did: # apt-get install sysvinit-core sysvinit ...
1
vote
1answer
21 views

strange results from investigating a reboot in auth.log

My Ubuntu 14.04 server is hosted on a well-known cloud provider. I noticed today something that usually makes my heart stop: user@myserver123:/var/log$ screen -ls No Sockets found in ...
2
votes
1answer
39 views

Make OpenVPN restart upon new network connection on systemd

How would you go about making OpenVPN automatically restart upon connecting to a network? The issue is that every time a network connection is lost, or if the computer is booted without a network ...
3
votes
2answers
87 views

How to permanently disable root-password prompt for recovery mode, RHEL7

Note: I asked a similar quesiton concerning version 6 of these bundles here. Note that 7 uses systemd and may have a different implementation In the rare cases that a RHEL or CentOS 7 system is ...
0
votes
1answer
13 views

Watchdog daemon doesn't start at boot

I'm using a Raspberry Pi B, with Raspbian. After upgrading to Jessie, watchdog daemon doesn't start at boot anymore. Starting it manually using "sudo service watchdog start" does work. I tried: ...
13
votes
3answers
3k 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 ...
-1
votes
0answers
29 views

Systemd and system events

I had a simple Upstart job that executed a script every time I changed my display brightness ( to change my LCD gamma ), It was: start on (backlight-device-changed) exec <my script> I'm ...
2
votes
1answer
24 views

Can socat be started directly by systemd?

The following socat command-line works as expected when entered at a shell prompt: # /usr/bin/socat UDP-RECV:4321 STDOUT It listens on UDP port 4321 and writes everything received to standard ...
2
votes
3answers
3k views

Why is my Debian jessie always in runlevel 5?

I have configured the lines 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 ...
2
votes
0answers
24 views

Systemd resume script is executed only occasionally

I currently use Awesome WM without any desktop environment. This means that I have to get my keyboard and mouse settings there manually. I therefore wrote a shell script which makes a few calls to ...
2
votes
1answer
29 views

How to tell systemd to stop service when it no longer required/wanted

I have 10 TF2 game dedicated servers, they started manually one by one with individual service files tf2-server-1.service ... tf2-server-10.service And they want service hlstatsx ...
1
vote
1answer
20 views

shellinabox on arch linux

I cannot get the systemd service to run [chris@alarmpi shellinabox]$ sudo systemctl status shellinaboxd * shellinaboxd.service - Serve a login-terminal over http on port 80 Loaded: loaded ...
1
vote
0answers
10 views

Synchronize systemd unit based on timers

I am just wondering about synchronization of systemd timers / related units. I have a backup script running hourly / daily / weekly. I use timers with Persistent=True and OnCalendar=... options set to ...
4
votes
1answer
102 views

Debian systemd network-online.target not working?

So, I'm trying to make systemd service on Debian Jessie. I need it to start after network-online.target is reached. The problem is network-online.target fires in the same time as network.target and ...
1
vote
2answers
35 views

systemd in the era of hotplugable devices

One argument I hear often about systemd is that it more adapted to current hardware needs, e.g. here Computers changed so much that they often doesn’t even look like computers. And their ...
3
votes
1answer
92 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 & ...
1
vote
1answer
17 views

systemd: How do you query a service's status?

In sys-v-init, to query a service's status you can use the service command and do a service $NAME_OF_SERVICE status. In systemd, how do you query a service's status?
1
vote
1answer
22 views

How to get systemd-udevd to create a bridge device at start up?

I am running Ubuntu server 15.04 in a virtual machine. I am able to use the brctl program to create and manipulate networking bridges. I've decided to persist the setup (through reboots) by updating ...
0
votes
0answers
16 views

How to mount cgroups controllers using cgconfig.conf, while systemd running

I am trying to create a basic cgroups setup on a few Fedora 20 servers (using cgconfig and cgred services). The problem is I would like to create a hierarchy with access to several ...
2
votes
2answers
62 views

if I upgrade from Debian Wheezy (7.x) to Jessie (8.x), will systemd run by default?

I am wary of systemd for various reasons which are irrelevant to this question. Now, I'm about to upgrade my Debian Wheezy to Debian Jessie. Will systemd be used by default after an apt-get ...
3
votes
1answer
958 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
58 views

After sending shutdown command, ssh session doesn't terminate

Whenever I send the command to turn off or restart my Debian servers, my shell is left hanging and unresponsive (can't type any commands). Performing the same action in Ubuntu results in the ...
3
votes
0answers
57 views

How can I make my user services wait till the network is online?

I have written a couple of systemd user service files which I want users to enable and which need a working network connection. I thought that would be as easy as: Wants=network-online.target ...
2
votes
2answers
53 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 ...
0
votes
1answer
2k views

Debian and Systemd: breaking ordering cycle error

I'm a new embedded developer I'm trying to make systemd 37 work with freescale vybrid board (A5 and M4) running on linux-3.0 After boot with some breaking ordering cycle error, I check with ps ...
5
votes
1answer
133 views

How does gnome do to reboot the machine without root privileges?

I am reading the book Linux kernel development, in chapter 5 "System Call Implementation" page 77 says For example, capable(CAP_SYS_NICE) checks whether the caller has the ability to modify ...
2
votes
1answer
17 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 ...
1
vote
1answer
45 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 ...
0
votes
0answers
8 views

Run specific script on boot for specific machine with portable Linux installation

I have a USB disk on which Arch Linux is installed. This USB disk can be plugged in in different machines. Now I want to run a specific script on a specific machine. For example: Upon booting ...
1
vote
1answer
33 views

SystemD: configure unit file so that login screen is not shown until service exits and reboots

I have a service unit file that installs and configures a couple applications and needs to reboot the system when it exits. I am migrating this script over from sysVinit scripts to systemD on centOS ...
4
votes
3answers
744 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] ...
1
vote
0answers
33 views

bind mounts by systemd don't magically work with systemd-tmpfiles?

I have an weird challenge from on my Debian 8 box. The background is I want to mount some directories as tmpfs, to avoid physical IO (disk wakeup / flash wear). Probably I should just mount a ...
11
votes
6answers
9k 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 ...
1
vote
1answer
33 views

How do I set up bind mounts on startup correctly in the systemd world?

systemd, trying to be smart, parallelizes mounting entries of /etc/fstab. Unfortunately, this randomly messes up bind mounts: A look at my fstab, cleaned up a bit: $ grep -Ev 'ntfs|swap|#' ...
7
votes
3answers
293 views

Restarting systemd service on dependency failure

What's the right approach to handle restarting a service in case one of its dependencies fails on startup (but succeeds after retry). Here's a contrived repro to make the problem clearer. a.service ...
4
votes
1answer
6k views

How display log messages from previous boots under CentOS 7?

Executing journalctl under a CentOS 7 system just prints messages generated after the last boot. The command # journalctl --boot=-1 prints Failed to look up boot -1: Cannot assign requested ...
0
votes
1answer
15 views

How to force a file system check on the next boot of the root file system on Gentoo running systemd?

I want to force a fsck run on my root filessystem on my Gentoo system running systemd. I've tried adding an empty forcefsck file at the root of the filesystem which I want to check, e.g. touch ...
1
vote
0answers
23 views

Correctly shutting down the computer from an X session

I run Debian 8.1 with the window manager Blackbox. The window manager is started from ~/.xinitrc, and when the X session is done some cleanup commands are invoked: dbus-launch --exit-with-session ...
1
vote
1answer
19 views

Systemd journal plagued with docker messages

I've found that systemd is full of lines like that when I issue journalctl -f jul 09 21:13:47 newhope.belkin.home docker[1430]: time="2015-07-09T21:13:47-03:00" level=info msg="GET ...
0
votes
1answer
32 views

Need help locating the directory for systemd scripts

Tried to add a startup script for cent os, but can't find upstart script directory (which typically is in /etc/init on my ubuntu system] I heard it's in "/usr/lib/systemd" but it's not on my system: ...
15
votes
5answers
12k 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 ...
2
votes
1answer
45 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). ...
8
votes
3answers
1k 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 ...
0
votes
1answer
45 views

systemd in Raspbian for NZBGet

Having shifted to systemd I am having to run software such as NZBGet, Sonarr and from /etc/systemd/system folder. I have managed to get all but NZBGet running here is the file: [Unit] ...
0
votes
1answer
59 views

Why can't I properly locate Debian 8.1 on my BeagleBone Black?

I was using the BBB (BeagleBone Black) for a while now but with Arch Linux. Now that Debian also supports systemd I decided to give it a try. So I followed this guide and used the eMMC flasher image ...
6
votes
3answers
1k views

Log files for kernel panic on Arch Linux

I have recently updated my Arch Linux machine. Since then, I have been getting kernel panics here and there. (the screen freezes and the status lights on my keyboard are blinking) It seems to happen ...
7
votes
1answer
1k views

Using systemd to execute a script before system shutdown?

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 ...
0
votes
2answers
55 views

Pulling log messages for a particular log in systemd journal?

I was wondering if it is possible to pull log messages for a particular log with systemd's journal logging. For example, when I open a log in C, openlog('slog', LOG_CONS | LOG_PID, LOG_LOCAL1), to ...
2
votes
1answer
62 views

Why to choose (sd-pam) as a process name?

On my machine (Debian testing), when I do ps aux | grep pam I obtain orto 609 0.0 0.0 58532 2148 ? S 08:06 0:00 (sd-pam) orto 5533 0.0 0.0 12724 1948 pts/1 ...
0
votes
0answers
16 views

Debian 8 sytemd “found device” multiple times

I currently run a Debian 8 system (upgraded from Debian 7) with a software raid 1. Once in a while systemd reloads 3 times in a relatively short period and logs it into syslog. If it reloaded only ...