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

0
votes
1answer
25 views

Reload network interfaces without rebooting

I'm doing a BASH script for Arch Linux in a Raspberry Pi 2. The thing is that in some point I'd like to reload the network interfaces without reboot and have my new named network interfaces (en0 and ...
2
votes
1answer
35 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 ...
0
votes
1answer
14 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: ...
-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
26 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
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
1answer
18 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
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 ...
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 ...
1
vote
1answer
23 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 ...
3
votes
2answers
88 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 ...
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 ...
4
votes
1answer
62 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
60 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 ...
5
votes
1answer
134 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
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 ...
1
vote
1answer
46 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
18 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
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 ...
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 ...
1
vote
1answer
34 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|#' ...
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
1answer
36 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 ...
0
votes
0answers
9 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
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: ...
2
votes
1answer
46 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). ...
0
votes
1answer
46 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 ...
2
votes
1answer
63 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 ...
7
votes
3answers
303 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 ...
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 ...
0
votes
0answers
30 views

Fedora 21 Samba Share Troubleshooting

I've recently upgraded my server's OS from CentOS 6 to Fedora 21. I understand there have been a bunch of new changes regarding the SystemV vs SystemD updates but I cannot get my Samba share to work ...
1
vote
1answer
20 views

nfs-kernel-server starts too early

I have an RPI-based NFS server with an external USB hard disk. After a recent upgrade to Raspbian 8.0 and systemd I noticed that now nfs-kernel-server seems to be starting before all file systems on ...
1
vote
1answer
215 views

Debian 8 Jessie with OpenVPN client

I have a Debian 8 Jessie server that I need to connect to my home network and I'm using an OpenVPN server on a pfSense 2.2 box at home. I have done this fine under older Debian versions, so I'm ...
2
votes
1answer
33 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
78 views

systemd custom status message?

I'm trying to write a systemd service which should expose the options start|stop|status|restart. This is the current script: [Unit] Description=Daemon to start ark server After=network.target ...
0
votes
1answer
33 views

effect of reboot signal on systemd service state

I am working with systemd services at the moment. What is the sequence of state changes that all of the services undertake when, for example, init 6 or reboot or init 0 are executed? Here is the ...
1
vote
0answers
22 views

Why does a broken mount point break netfilter-persistent using systemd?

I have a relatively clean Debian Jessie install. I'm running into two related problems: 1) I have a cifs mount that shows me an error on boot. The error says to run systemctl status ...
3
votes
2answers
76 views

Run top instead of getty

Here's a simple question. I'm not sure the answer is very simple, but anyway. By default, systemd auto-launches getty on each VT except VT7. What I would like is for systemd to launch top on VT6 ...
2
votes
1answer
54 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 ...
1
vote
1answer
45 views

How to write a systemd service unit file so it waits until a specific interface is up before starting?

I am trying to write a unit file for hostapd on Debian. The hostapd daemon seems to need the interface for the associated Wifi interface to be up before it is run or else it SEGV's. I've tried ...
0
votes
1answer
34 views

Wrong timestamp in systemd log

I read systemd log of my home server using journalctl and I've noticed that the timestamp of log is totally out of order. Here's some logs from my server using journalctl -o=short-iso ...
1
vote
0answers
25 views

systemd MAILTO-replacement failing

I'm trying to setup systemd to notify me via email if a unit fails, like Cron can be set up to do. I followed the guide on the Arch Linux wiki. So I set-up a sendmail shell script in ...
1
vote
2answers
252 views

How to set up a runlevel 3 in Debian 8?

I have installed Debian 8, but I neeed to use just multi-user text mode, runlevel 3, instead of appear my Gnome 3. But I saw that doesn't exist /etc/inittab. And now?
1
vote
2answers
35 views

Systemd will not start xenstored, xenconsoled, and xendomains

I am running a Gentoo installation and recently moved to systemd and whenever I boot with Xen, I cannot issue any xl commands, getting this error: xc: error: Could not obtain handle on privileged ...
1
vote
1answer
24 views

Two networking interfaces trying to get an IP via DHCP

When using: /etc/network/interfaces auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp auto wlan0 allow-hotplug wlan0 iface wlan0 inet dhcp wpa-ssid "<myssid>" wpa-psk ...