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
0answers
7 views

How to direct the journal output of certain units to a particular file?

I've got a system with several daemons running (as systemd units) that output log information to the journal in Arch Linux. I want to direct the journal output of some of those unit files into a ...
0
votes
0answers
5 views

LUKS partition is unlocked after first use

I just tried to move /usr to a small ssd I recently purchased. The ssd is formatted with LUKS and btrfs. Apparently systemd fails to start the cryptography target before the partitions are first ...
0
votes
2answers
30 views

list of selectable units for journalctl

In a CentOS 7 server, I want to get the list of selectable units for which journalctl can produce logs. How can I change the following code to accomplish this? journalctl --output=json-pretty | ...
1
vote
1answer
31 views

log files in CentOS 7 [on hold]

In CentOS 7, how can I locate and view all the system logs that tell me who tried to enter the system, who got in, what processes they contacted, what they accomplished, etc. I want to be able to ...
1
vote
2answers
18 views

service vs. systemctl scripts — which to use

In Fedora we have 'systemctl' and 'service' scripts. It seems that service internally calls systemctl. So what is the correct/right way on Fedora to start or stop services -- via systemctl or service ...
9
votes
2answers
524 views

What is needed for a minimal systemd boot to launch getty on a virtual console?

For SysV init, I need /etc/inittab respawning getty entries, the /sbin/init binary, the binaries and shared libraries for the shell, login, the getty, the PAM/security/shadow stuff, and a few device ...
1
vote
1answer
23 views

systemd keeps unmounting a removable drive

I have following line in /etc/fstab: UUID=E0FD-F7F5 /mnt/zeno vfat noauto,utf8,user,rw,uid=1000,gid=1000,fmask=0113,dmask=0002 0 0 The partition is freshly created by gnome-disks under the ...
0
votes
1answer
118 views

What is wicked taking so long during boot?

This is wicked 0.6.12 and systemd 210 on openSUSE 13.2. Networkmanager is not installed. The network interface is configured with a static IPv4 address. Plymouth is not installed because I prefer to ...
3
votes
1answer
347 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 ...
1
vote
0answers
21 views

How does _netdev mount option in /etc/fstab work?

I'd like to know what is the exact mechanism (implementation) used to defer mounting until after network interface is up when one uses _netdev option in /etc/fstab? Does systemd alter this behavior? ...
1
vote
1answer
33 views

systemd mount only mounts on boot, fails to remount afterwards

I have created a mount, mnt-stoneshare.mount, placed in /etc/systemd/system: [Unit] Description=StoneOS Storage Mount [Mount] What=/dev/disk/by-uuid/62721034-29ee-4894-a19e-905bcbb20c7c ...
2
votes
0answers
24 views

How to implement policy conform systemd custom actions on Debian?

What do I mean by custom actions? Here are some examples. sudo service apache2 stop-htcacheclean sudo service apache2 graceful-stop sudo service apache2 start-htcacheclean sudo service apparmor ...
0
votes
0answers
63 views

system won't poweroff, restarts with :“Synchronizing SCSI cache”

Running Debian testing, after a system upgrade a while back my machine started to refuse to power down. It hangs with: Synchronizing SCSI cache Waits a few seconds, and then reboots itself. It ...
2
votes
0answers
61 views

Why will plymouth not update?

I admit I don't update my kernel very often. I used to everytime a stable release of sys-kernel/gentoo-sources came out so I'm very adept at doing it. This last weekend I attempted to update from ...
1
vote
1answer
123 views

With systemd-networkd, perform an action upon network configuration change

I am switching from Debian’s ifupdown to systemd-networkd, and it mostly works fine. One missing bit is that upon every network change, I want to call killall -ARLM tinc, so that my VPN is going up in ...
0
votes
1answer
13 views

How to script with systemd-cgtop?

The manpage for systemd-cgtop says that if there is no attached tty it will do one iteration and then print it out, saying that this would be useful in scripts. However when I try to do this from a ...
1
vote
2answers
54 views

Can't start systemd user instance

I'm using CentOS 7, and am trying to create a systemd service for my local user. However, before I can do that, I need my systemd user instance, which I cannot find or create to begin with. Running ...
0
votes
0answers
19 views

Limit system reboot burst

Systemd allows to automatically restart services if they have crashed. To prevent indefinite services restart it uses @StartLimitInterval@ and @StartLimitBurst@ variables. Moreover, I can reboot ...
1
vote
0answers
21 views

Enable core dumps for all applications started by a user with systemd

This is a follow-up to How to enable crash reports/core dumps/stack trace logging globally?: How can I achieve this on OpenSUSE 13.1 (which uses systemd) and 13.2 for all processes started from an ...
0
votes
0answers
34 views

Disabling all systemd messages from appearing on console

Is there an option to completely prevent all of systemd's messages from appearing on the console? I see these messages appearing on the console and they often come in the way of console logins and ...
4
votes
1answer
101 views

How to disable systemd's “Time has been changed” message spam in systemd journal while using sdwdate?

Due to combined use of Debian jessie, that uses systemd by default, and sdwdate (that uses Slow Clock Adjuster ( gh )), my system clock is frequently changed. As a result journalctl -f gets endlessly ...
7
votes
1answer
2k views

Why is systemd-coredump storing the dump in memory itself?

I just noticed that most of my memory was hogged by coredump of a few processes that I had killed recently. I had a systemd-coredump process running for each crashed process (usually the processes ...
2
votes
1answer
550 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 ...
2
votes
1answer
248 views

How to disable systemd's “Time has been changed” message spam in /var/log/syslog on Debian jessie?

Due to combined use of Debian jessie, that uses systemd by default, and sdwdate (that uses Slow Clock Adjuster ( gh )), my system clock is frequently changed. As a result /var/log/syslog gets ...
7
votes
4answers
3k 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 ...
2
votes
1answer
36 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 ...
5
votes
1answer
3k 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 ...
4
votes
1answer
172 views

CentOS 7 boots too fast and network is not ready when executing cron scripts

I have just upgraded from CentOS 6.5 to 7.0 and I am not too happy as the new systemd is probably giving me problems. It seems it is just simply booting too fast, starting up processes asynchronously ...
2
votes
1answer
91 views

Mounting NFS via systemd in Centos 7

I am trying to mount an NFS share on a CentOS 7 box using systemd. This is my /etc/fstab entry: 10.0.0.104:/export /mnt nfs ...
0
votes
1answer
875 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 ...
1
vote
1answer
948 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 ...
4
votes
1answer
744 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
1answer
39 views

Output of a python script running as unit is out of order while shells seems unnafected

How would I get all outputs of systemd managed python2 script instantly into journal, just like it appears in terminal I'm on centos 7, but seems to be same on arch according to systemd manual, ...
0
votes
1answer
194 views

Graceful shutdown via power button

I want to be able to shutdown my CentOS 7 machine by pressing the power button. Since it doesn't work out of the box, I tried the following: yum -y install acpid service acpid start chkconfig acpid ...
-1
votes
1answer
308 views

systemd slow boot - systemd-tmpfiles-setup

Recently I upgraded to debian jessie (current testing) and after that avg boot time has increased to 3-4 minutes. Between grub and gdm start, I get this message for 2-3 minutes. A job is running for ...
4
votes
2answers
169 views

Non-graphical boot with systemd

I want to boot to console instead of a GUI using systemd. How can I do that?
8
votes
1answer
823 views

What makes systemd-nspawn still “unsuitable for secure container setups”?

This is stated in the man page for systemd-nspawn Note that even though these security precautions are taken systemd-nspawn is not suitable for secure container setups. Many of the security ...
16
votes
4answers
9k views

Writing basic systemd service files

I am developing a Nodejs application that the user interacts with via HTTP on localhost. There are practically no parameters and the daemon has virtually no dependencies and it just needs to be up by ...
1
vote
1answer
54 views

Auto-hibernate with udev rule

I'm using Debian Jessie with systemd. In the past I've used an acpid script that let's my computer hibernate when the battery is 5% or below. In an attempt to make a replacement for that I've made ...
0
votes
1answer
135 views

service command does not work in centos 7

I used to use service command for restarting, reloading, and checking status of service on centos 6.5 like below: $ sudo service nginx restart OK $ sudo service nginx status ...
2
votes
1answer
241 views

Why does my systemd unit fail to run on server reboot?

I'm having troubles getting a systemd service unit file to run correctly when the server reboots. This server is a fresh CentOS 7.0.1406 install. I'm trying to set it up with multiple Apache httpd ...
0
votes
2answers
42 views

how to get info about the user and the processes he is running in systemd?

If I wanted to know who is logged in since when and what are the processes currently running under his control, how can I do that in systemd?
2
votes
2answers
138 views

What is systemd's target, service and socket?

I know that all of them are unit files, but I can't understand the special meaning of them. I think that targets are similar to daemons and sockets are the same as socket (IP + port) but also with ...
0
votes
0answers
45 views

Systemd, restart service when ip address changed

I wrote a pretty simple service: [Unit] Description=Service on interface %I [Service] Type=oneshot RemainAfterExit=yes ExecStart=/usr/lib/project/my_script.sh start %I [Install] ...
2
votes
1answer
139 views

How to force network to wait for DHCP with systemd-networkd?

I'm using systemd-networkd to configure my interfaces: [Match] Name=enp3s0 [Network] DHCP=v4 It works quite well except that at boot, some services are not waiting for DHCP to finish. For ...
0
votes
1answer
88 views

What does systemctl enable netctl.service do

I have a small arm server that runs Arch. I wanted to use only dhcpcd for my ethernet connection so I disabled netctl.service and netctl-ifplugd.service. Turns out that didn't work and I have no means ...
0
votes
0answers
43 views

systemd with 10 ttys and Desktop on Ctrl+Alt+F5

I am running systemd on ArchLinux. I have read various posts of doing this but it seems impossible (i.e. I am incompetent in implementing this:)) ). I want to disable the on-demand tty spawning of ...
2
votes
3answers
1k views

disable init.d script in systemd

I changed the init system from sysvinit to systemd on a raspbian installation. The install boots fine, but now starts lightdm on boot. I don't want it to do that. I noticed lightdm.service is started ...
1
vote
2answers
33 views

How can I count the time that needs systemd to boot a default target and then graph it?

When I wanted to know how long systemd actually needed to boot the default target, how would I do that ? An then, is it possible to create a graph to show which unit takes how much time to initialize ...
2
votes
1answer
119 views

Missing systemd journal log

While reviewing my journal log, I find that only logs for the recent three days are present. There is only 8 lines worth of log from between September 19 and 27: # journalctl --since="2014-09-19" ...