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

Random packet loss with bonded interfaces?

I'm trying to setup a LACP bond using systemd-networkd on an arch server. When I try to ping the gateway I seem to be getting intermittent package loss which lead me to believe the LACP isn't setup ...
0
votes
0answers
48 views

Power Button script runs only for the first time

I'm using Debian 8 and I'm booting my system with Linux 4.1.2 with systemd. I had a working script that does something and suspends the pc. After upgrades, the script was not working anymore. When I ...
1
vote
1answer
116 views

systemd timer OnUnitActiveSec vs OnCalendar for anacron replacement

I need to run oneshot bash script once a day (log rotation and cleaning). I saw some examples stated to use: OnCalendar=daily Persistent=true and another examples using: OnBootSec=20min ...
2
votes
2answers
275 views

RHEL 7 how run longtime script before shutdown/reboot systemd

I'm trying to found solution how run script before shutdown/reboot is initiated in RedHat7. I need to correctly shutdown SAP database when I'm shuting down or rebooting server. Script for SAP ...
0
votes
1answer
111 views

How to start and stop a listener service together with a custom service

The problem I am trying to solve is to start and stop a listener service when a custom service is started or stopped. The specific case is IBM MQ V8 on RHEL7 but the same principle should apply to ...
3
votes
1answer
366 views

Create wireless access point and share internet connection with nmcli

How can I create a Wi-Fi hotspot with command line tool nmcli and share the ethernet internet connection to the wireless access point? Furthermore how can I start this automatically at boot? Is that ...
1
vote
1answer
119 views

Monitoring systemd service activation times

I'd like to be able to retrieve from systemd how much time the last activation of a oneshot service took. I thought about the following options, but they didn't manage to convince me completely : ...
3
votes
2answers
107 views

how does systemd determine service is stopped?

Our application uses an init.d script to start and stop the application as a service. Under CentOS 7, /sbin/init is symlinked to systemd, so I can start my application using either: service myapp ...
1
vote
0answers
85 views

script can't write to systemd journal

to make it short: I want to write to the systemd journal from a script. printf "%s\n%s\n%s\n" CODE_FILE=/etc/zsh/zprofile CODE_LINE=31 MESSAGE="could not read /etc/dircolors" | logger --journald ...
0
votes
1answer
136 views

how to configure systemd shutdown process

I see messages like these in my journal : Sep 28 17:27:48 localhost kdeinit5[4476]: Qt: Session management error: networkIdsList argument is NULL Sep 28 17:27:48 localhost kdeinit5[4476]: No DBUS ...
4
votes
2answers
162 views

Porting old sysvinit habits to systemd

I have a series of script with which I was able to install and configure newly Debian stable systems. To automatically start programs I use /etc/rc.local but for other cases I had to manually change ...
10
votes
2answers
6k views

How does systemd use /etc/init.d scripts?

I just switched to debian jessie, and most things run okay, including my graphical display manager wdm. The thing is, I just don't understand how this works. Obviously my /etc/init.d/wdm script is ...
3
votes
1answer
64 views

Running a systemd service unit at next boot, but not subsequent boots

I have a script that I want to run during my next system boot, but not on subsequent boots. I want to use systemd to launch it, so I created a service file at /usr/lib/systemd/system/myscript.service: ...
2
votes
0answers
327 views

Why is systemd-udev pegging my CPU?

I've noticed that one of the cores on a four-core laptop is pegged, and the temp is very high. I found this in top: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 359 ...
11
votes
4answers
347 views

Is there a standard way to start and stop services on Linux?

Until recently there was a simple and effective way to start/stop/restart services: service nginx start|stop|restart This worked perfectly for so many years,... until some smart-pants decided to ...
1
vote
0answers
20 views

Fedora outputs junk to virtual ttys when I switch between them

On my Fedora 22 system, every time I switch between text terminals using Ctrl+Alt+Fx, the system outputs junk to the screen. It is usually something like: [ 5385.916900] nouveau E [ ...
0
votes
1answer
55 views

How to write script for systemd using different scripts

New to systemd here - essentially I have 3 different scripts: activate.sh, toggle.sh, and deactivate.sh. I want to use a systemd service and timer in order to do the following: When the service ...
1
vote
1answer
117 views

Run a udev rule for a USB flash drive when the computer is started with the device inserted

I want my Ubuntu 15.04 x64 server system to execute a script whenever a certain flash drive is inserted. So I created a custom rule file with the following content ...
5
votes
2answers
74 views

How do I view systemd logs from before a journal corruption?

I had a server issue today where CPU was pegged at 100%. I had to hard-reset the server in order to bring it back up, and now I'm trying to determine the cause of the high load. Unfortunately ...
3
votes
1answer
76 views

Systemd is unmounting my /boot partition

My sda1 is mounted to /boot after booting, and I can manually mount it just fine. But something is automatically unmounting that partition, even after I've manually mounted it. These are the current ...
0
votes
1answer
40 views

enable systemd service in non-default target like `chkconfig --level` did

In Centos 6 I used: chkconfig --level 12345 network on chkconfig --level 12345 sshd on Now have Centos 7.1. Is it possible to additionally enable sshd in resque.target using some command line ...
2
votes
2answers
82 views

/usr/bin/mail call in ExecStart not sending any mail

I have the following service configured: [Unit] Description=SCollector After=NetworkManager.service [Service] Type=simple ExecStart=/bin/sh -c "/opt/scollector/scollector ...
3
votes
1answer
2k views

“A stop job is running…” on shutdown

Almost every time when I'm shutting down or rebooting the system I get the following message before the system actually shuts down: A stop job is running for Session 1 of user xy It waits for ...
1
vote
1answer
33 views

CentOS - SSH - File That Change Iunput Setup

I use CentOS 7 and I need to change the file that delivers the SSH configuration /etc/ssh/sshd_config to /etc/ssh/sshd_config_other. This demand was due to a security automation that always ...
8
votes
4answers
337 views

Is systemd “malicious”? [closed]

Visiting some forum online that discuss about Debian and Xubuntu, I saw some users that add this line in the signature field: ...With no systemd... This line is showed with pride (it seems to ...
1
vote
1answer
212 views

How to boot gentoo with systemd, UEFI, lvm2 rootfs with systemd EFI boot?

I've installed Arch Linux with that setup. And now, I want to have dual boot with gentoo. But, when booting gentoo, the root UUID (on LVM) not detected. My partition scheme is like this: (lsblk -f) ...
2
votes
1answer
118 views

How to set Ethernet link speed & duplex

How can I configure my Ethernet (eth0) link speed and duplex on my systemd & connman based system? I've previously used a script in /etc/network/if-up.d, in which I could make a call like: ...
1
vote
1answer
188 views

New CentOS install login broken

I've just finished installing CentOS on a fresh disk. I did it in a slightly unconventional mannner - by running a complete yum install in a chroot from Debian. So I had a few problems getting grub ...
1
vote
1answer
134 views

systemd: How to check scheduled time of a delayed shutdown?

I like to use shutdown -h TIME/+DELAY sometimes. However, since the switch to systemd (on Ubuntu), things seem to have changed quite a bit. Apart from the fact that a previous shutdown command no ...
8
votes
1answer
211 views

How to avoid /usr/bin/env being marked in systemd logs as the executable

I've created a systemd service to run a tomcat application based on the information found in this article. The short version of the article recommends avoiding the shell script wrappers, and executing ...
0
votes
1answer
1k views

LSB: Raise network interface hang

When starting a Debian Jessie iso in VMWare, I sometimes find the VM won't startup reporting: A start job is running for LSB: Raise network interface A timer then loops forever counting seconds ...
2
votes
3answers
184 views

journalctl: how to prevent text from truncating in terminal

How can I keep long strings from truncating in terminal? For example if I run journalctl -xn There's a lot of text that I cannot read. I am open to using other programs/tools.
4
votes
1answer
301 views

how to start a systemd service before networking starts?

I'm trying to set up a new service (under Debian Jessie) that needs to set up some mounts where the network configuration is stored and thus this service must complete before networking.service ...
0
votes
1answer
92 views

Adding a systemd .service (Debian)

I'm following this tutorial (https://kezhong.wordpress.com/2011/11/19/creating-my-own-systemd-service-files-on-fedora-16x86_64/) to add a new systemd .service, but it doesn't work, i did step by step ...
0
votes
1answer
27 views

How can I find why 'rpc.gssd' starts everytime?

I have SLES 12 and I saw that every time I reboot my computer, the process rpc.gssd (which is kerberos) starts by itself. I've tried to disable it using systectl but there's no such a service. All I ...
0
votes
1answer
29 views

How to get an ipv4 address via NetworkManager?

I run a Fedora 20 as a virtual machine for education purposes. Default it has a host-only network interface that gets only an IPv6 address which is inconvenient. I want to automate that on startup ...
2
votes
1answer
55 views

Grouping systemd services

I've written about half a dozen .service files for the different parts that make up the system I'm working on. It's useful to be able to start the whole system piecemeal but I'd also like to have a ...
0
votes
1answer
89 views

Where to find/get systemd-journal-gatewayd.service on Debian Jessie?

It seems systemd-journal-gatewayd daemon was introduced in systemd version 193. I'm running Debian Jessie with verison 215 of systemd, but do not have this daemon. $ systemd --version systemd 215 ...
1
vote
1answer
1k views

How to change systemd service timeout value?

In the company I am working now there is a legacy service and its init script is using old SysvInit, but is running over systemd (CentOS 7). Because there's a lot of computation, this service takes ...
-2
votes
4answers
130 views

Is there a designated place for scripts that are (indirectly) automatically executed by systemd?

Arch Linux Question (or any OS that uses systemd to manage processes and follows the Filesystem Hierarchy Standard by the Linux Foundation) I recently asked where to but a systemd unit file: Where ...
2
votes
1answer
511 views

Umount network drives with systemd before shutdown

My shutdown takes quite a long time (I'm on Debian 8.1) and I found out that it can be fixed by unmounting the network drive before shutting down the system. Apparently the network gets disconnected ...
1
vote
1answer
122 views

Bootup is not yet finished. Please try again later

My computer starts in around 40s but I keep getting this message for 10 minutes: Bootup is not yet finished. Please try again later. After 10 minutes I get this: Startup finished in 6.020s ...
2
votes
1answer
287 views

What do systemd “Vacuuming done, freed 0 bytes” messages mean?

I'm seeing messages like the following in my systemd journal: systemd-journald[52]: Vacuuming done, freed 0 bytes systemd-journald[52]: Vacuuming done, freed 0 bytes systemd-journald[52]: Vacuuming ...
2
votes
2answers
300 views

/sbin/init doesn't exist - Bailing out

My question is similar to this one, but has a few differences. At boot, I get the following message: [ 0.030164] Ignoring BGRT: invalid status 0 (expected 1) :: running early hook [udev] starting ...
1
vote
0answers
79 views

Interrupt systemd mount unit during boot

I've Btrfs RAID1 mounted during boot with this line in fstab: /dev/disk/by-label/storage /mnt/storage btrfs noatime 0 0 Few days ago I was checking data on some old disks, and to connect them I ...
1
vote
0answers
76 views

How to enable unison to login with ssh from systemd service unit?

I have a pdf-sync.path file for systemd runnin in user-space (systemctl --user enable pdf-sync.path). Whenever there is a change in the folder that I defined in the path file I want to synchronize ...
0
votes
1answer
191 views

A lot of systemd messages since upgrade to Fedora 22

I upgraded several systems to Fedora 22. After the upgrade I see every 10-20 seconds a lot of messages form systemd: Aug 27 15:30:09 host.example.org systemd[1]: Created slice user-494.slice. Aug 27 ...
7
votes
3answers
97 views

finding systemd unit 'owning' a running daemon process

To debug a JACK/Pulseaudio issue, I want to understand when and why the pulseaudio daemon is started by systemd (on Fedora). Using $ ps -o'pid,ppid,args' `pgrep pulse` is see that the pulseaudio ...
4
votes
2answers
289 views

Creating a systemd script for Sybase ASE

I've been trying to set up our Sybase installation to run under systemd. The basic commands are covered here but when we control it manually we start it with the following command (startserver exits ...
1
vote
0answers
133 views

systemd: network-online.target is reached before network.target

I observed the following in the Archlinux installation ISO: There is a systemd target definition in /usr/lib/systemd/system/network-online.target containing: [Unit] Description=Network is Online ...