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

4
votes
1answer
101 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
1answer
60 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
0answers
70 views

How do I tell systemd-logind that the session is not idle, without using a desktop environment or session manager?

I want to use logind for power management. After 30 minutes of inactivity, I would like the computer to suspend. Problem is, right now, it suspends after 30 minutes, even when I am active with mouse ...
0
votes
1answer
113 views

systemd Failed at step EXEC spawning /opt/autologger/placeholder.sh: Permission denied

This is a really simple question, I know, but I am jumping right into systemd with little prior knowledge of system management and Linux in general. I am attempting to create a "Hello World" service, ...
1
vote
0answers
168 views

CentOS 7 systemd service file (run python script) working, but logging errors?

I have an application written in python which I've used many times with CentOS 6, and am now setting it up on CentOS 7. I've created a systemd service file that contains the following: # # Systemd ...
2
votes
1answer
49 views

How can I prevent a module from flooding my kernel log with useless output?

I'm using the atmel_mxt_ts module, and it floods my kernel log with useless status messages, about 10 per second. I'm worried this will make my journal massive and cause unnecessary writes to my SSD. ...
2
votes
0answers
50 views

Why is systemd unmounting my fuse file systems right after I mount them?

I am trying to troubleshoot an issue with a fuse library, where my fuse file system is mysteriously unmounted shortly after mounting it. After screwing around with a bespoke unmount executable that ...
0
votes
1answer
41 views

What traditional Linux facilities/configurations have been incorporated by systemd?

As I work more with latest distro versions (Debian Jessie or CentOS 7), everyday I find 1 thing that was previously configured in some way, and now is managed by systemd. i.e. swap partition mount no ...
0
votes
1answer
56 views

what is the difference between cron and systemd ?

what is the difference between cron and systemd ? Why we can't use use only one of this two?
1
vote
3answers
170 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 ...
1
vote
1answer
46 views

Running a systemd service once a day (on a CoreOS cluster)

I currently have a CoreOS cluster on AWS. The cluster runs multiples containers, mainly for Rails applications. However, one of this container is a pure Ruby app processing a lot of data from specific ...
2
votes
0answers
26 views

What is the systemd equvalent to sysvinit 'X-Start-Before'?

Quoted from https://wiki.debian.org/LSBInitScripts. X-Start-Before: boot_facility_1 [boot_facility_2...] X-Stop-After: boot_facility_1 [boot_facility_2...] provide reverse dependencies, ...
0
votes
1answer
47 views

systemd daemon & python getting the wrong time

I made a daemon that it is started by systemd, and inside my daemon I have a python function to get the time. The problem is that the time is wrong, I have 8 hours of difference. This is my service ...
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 ...
1
vote
1answer
85 views

SysV init scripts to systemd migration in RHEL7

Please find the Sys V Init scripts for (User processes)Agent and Security daemon in Linux. Agent Daemon startup script /etc/rc.d/init.d/Agentdaemon /etc/rc.d/rc5.d/S91Agentdaemon Security Daemon ...
1
vote
0answers
54 views

keyring best practices with systemd

There plenty of tools working with keyrings: ssh-agent, gpg-agent, gnome-keyring, kwallet, wrappers like keychain, keyctl talking to GNU/Linux kernel. There are various recommendation on how/when to ...
0
votes
0answers
70 views

Using Cgroups with Systemd to restrict bash cpu & memory

I want to restrict every user on my Centos 7 server who is logged in via SSH. They should not be able to use, for example, a forkbomb and kill the whole system. The superuser will have no restriction. ...
2
votes
1answer
44 views

Is it possible to manually execute a single systemd timer-paired service unit for testing purposes?

I have a timer/service unit-set that should run once a day under --user conditions. It shows up with systemctl --user status and gets logged in journal but there is a part of the command that fails. ...
1
vote
1answer
86 views

Force a service to start before networking.service

I would like to start my service samplerbox.service [Unit] Description=Starts SamplerBox [Service] Type=simple ExecStart=/root/SamplerBox/samplerbox.sh # this script does: python ...
3
votes
1answer
78 views

How to make a Systemd service run forever (“Bootup is not yet finished. Please try again later.”)

I have created a systemd service that has to run forever (because it does the main job on my embedded computer): # /etc/systemd/system/samplerbox.service ######################################## ...
-3
votes
1answer
48 views

what is difference between /usr/lib and /etc/systemd?

Before all the unit files were in /etc/systemd/system/ but now some are showing up in /usr/lib/system, what is the difference between these folders?
0
votes
0answers
99 views

fail to start graphical.target on centos7

could not start graphical target after installing kde from minimal centos. startx works fine though. the system has two vcpus and 1GB ram. $ cat /etc/redhat-release CentOS Linux release 7.1.1503 ...
1
vote
1answer
54 views

Configure ordering of systemd services

I have two services that are normally not related to each other: JBoss and WebSphereMQ. Now because an application deployed on JBoss requires WebSphereMQ, I would like to configure JBoss to start ...
0
votes
1answer
126 views

How to start 2FA-using OpenVPN with systemd?

I have openvpn config that users 2 factor authentication. If I start it manually, by running: /usr/sbin/openvpn --writepid /run/whatever --cd /etc/openvpn/ --config /etc/openvpn/work.conf it asks ...
3
votes
0answers
68 views

Make systemd reload only single openvpn process and not the whole group

I'm running several openvpn instances on my server with debian stable; as well some clients as a server instance. Right now, when one of these instances fails, systemd seems to kill and restart the ...
0
votes
1answer
57 views

systemd kill my processes before ExecStop completed

I'm trying to update my application to use it with systemd. When I have used Upstart, I've just create a /etc/init.d/myService script: #!/bin/bash #chkconfig: 2345 90 10 #description: myDescription ...
2
votes
3answers
73 views

Only allow process to run between hours x and y

I use a mobile data connection service. I only have unrestricted bandwidth between 9am and 4pm. I wonder how I can "silence" applications such as the Dropbox applet outside that schedule. I thought ...
3
votes
1answer
49 views

systemd service can't access user home

I am trying to setup a systemd service on Ubuntu 15.04 (and Debian 8). I have a program /home/testuser/server/prrserver. My systemd service is configured to run prrserver as testuser:testuser. What ...
2
votes
1answer
114 views

grub/systemd boot removed partition

I have an Asus Zenbook UX32VD. This laptop has a 500GB HDD and a built in 24GB iSSD (not sure what the i is for). Since I first got it three years ago I have been installing various linux ...
1
vote
1answer
51 views

systemd : write a .service daemon for setting up swap and fs in zram

I recently acquired a laptop with a ssd and in order not to weigh too much on the ssd (which I was told had a limited number of write cycles), I decided to write a systemd unit file for setting up a ...
2
votes
0answers
64 views

How to tell systemd to start sshd later in the boot sequence?

My sshd_config file specifies it should listen on some specific IP addresses instead of on all IP addresses. The problem is that one of these NICs doesn't come up until later in the boot sequence. ...
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 ...
5
votes
2answers
119 views

Systemd and process spawning

Don't normally post here but I am ripping my hair out over this one. I have a Python script that forks when it launches, and is responsible for starting a bunch of other processes. This script used ...
0
votes
1answer
27 views

vmware.service hangs during shutdown

On Arch Linux, since a few system updates (unfortunately I cannot say which ones), vmware.service hangs during shutdown / reboot. I discovered that if I manually stop that service (systemctl stop ...
2
votes
2answers
95 views

How do you set ReadOnlyDirectories with systemd-run?

I'm trying to prevent Juniper Network Connect (a vpn client) from modifying /etc/resovl.conf, which I hoped to do with systemd-run. I tried: systemd-run --property=ReadOnlyDirectories=/etc ./ncsvc -h ...
1
vote
1answer
302 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 ...
-1
votes
1answer
63 views

systemd's parameter expansion is interfering with my service's own command-line syntax

I have this unit file for running a service under systemd. [Unit] Description=Varnish HTTP accelerator log daemon After=varnish.service [Service] User=root ...
3
votes
2answers
538 views

start nginx on boot with systemd

I just installed nginx 1.9 on a debian 8 server. nginx is working fine, when I tell it to run, but it wont seem to load nginx automaticaly on boot. I have tried numerious init scripts recomended on ...
2
votes
1answer
66 views

Descriptive message services

I have Debian 8 jessie installed on my Laptop, before when I had a Debian 7 wheezy, the system startup and shutdown showing descriptive messages such as these: Now on debian 8 jessie, when I start ...
3
votes
1answer
29 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 ...
0
votes
2answers
249 views

How to find out the current (active) XServer DISPLAY number?

I'm using Arch Linux and things are not so easy when you try to discover the current Xorg DISPLAY (not through the env variable). Here is a working example: $ cat /sys/class/tty/tty0/active tty2 ...
1
vote
1answer
39 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 ...
1
vote
0answers
35 views

Show kernel parameters passed to init [duplicate]

I learned that if the kernel does not understand a parameter, it saves it and passes it to init when performing the user space start. While e.g. in show parameters of running kernel or How to display ...
2
votes
1answer
160 views

Systemd service wanted by multiple targets

Is there a way to make a service wanted by multiple targets (or to have multiple install directives) so that when installed a symbolic link is created in all places. My example is the following ...
0
votes
2answers
84 views

synchronize time by remote server

How to synchronize time on systemd system (Ubuntu 15.04) using command line? (Note: simply running timedatectl set_ntp true is not updating the time)
10
votes
4answers
288 views

Is there a way to set permissions so a process could use a specific device?

As you can read, for instance here, logind, which is a part of systemd, can set permissions to some devices for user sessions. There's also a vid showing how this kind of behavior works in practice. ...
0
votes
2answers
80 views

Self-restarting service does not restart with systemd

I have several different services that can self-restart (e.g. after an auto-update). Unfortunately, when they restart, they do not come up. I can tell because service <service name> status tells ...
1
vote
2answers
517 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
255 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
376 views

Stable server distribution without systemd (for OpenVZ)?

I don't want this to become a "my distribution is better" flamewar so please read the whole question and only answer if you know a distribution that fulfils all requirements. The situation is the ...