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
6 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 ...
-1
votes
0answers
12 views

How to use multiple log files for systemd service with journalctl integration

When using systemd you can set the service type to 'simple' which will log the stdout automatically and can be accessed with: journalctl -u <unit name> Is there a method of recording multiple ...
2
votes
0answers
24 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
0answers
18 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
1answer
31 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
9 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 ...
-1
votes
0answers
5 views

initramfs too slow and ISR taking too much time?

On my SMP (2 core with 10siblings each) platform i have a PCIe deivce which is a video card which does DMA transfers to the application buffers. This works fine with suse13.1 installed on a SSD drive. ...
2
votes
2answers
70 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
29 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
16 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 ...
2
votes
1answer
51 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
30 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
14 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
50 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 ...
0
votes
0answers
30 views

Watchdog monitoring warning with systemd [closed]

I have a process that I want to be under watchdog monitoring. I use systemd's watchdog. I already have a timeout set and the action to be taken in case of a watchdog timeout using OnFailure. My ...
1
vote
1answer
15 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
32 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
36 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
54 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
213 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
37 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 ...
0
votes
1answer
84 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
61 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
100 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 ...
0
votes
1answer
65 views

Systemd kills service immediately after start

I'm writing systemd unit file for OSSEC HIDS. Problem is that when systemd starts service it immediately stops them. When I use that ExecStart directive all working fine. ...
0
votes
0answers
12 views

Systemd and SysVinit compatibility mode [duplicate]

Trying to reuse an existing "SysV" init script with new Linux version that uses "systemd" (RHEL 7). Just copying it into "/etc/init.d/" fails to work as expected. Can only manually Start/Stop service ...
0
votes
0answers
119 views

Why Debian Jessie is turned off instead of rebooting after installing qemu-kvm?

I'm using a new stable Debian Jessie (minimal installation without DE and standard utilities). First of all, I set 'enabled' for Intel virtualisation in BIOS and installed qemu-kvm as usual: # ...
2
votes
1answer
37 views

After each reboot, speakers have volume 0

For some reason my audio volume keeps being reduced to zero when I reboot. I am able to fix this temporarily like so: rm ~/.config/pulse/* If I reboot, the volume functions normally. Rebooting ...
1
vote
1answer
41 views

Howto inspect systemd system.journal from another system

I have arch linux failing on a device. The device doesn't have any screen, it doesn't respond to network. So I take its SD card, insert it in ubuntu desktop, see a fresh system.journal there and... ...
2
votes
0answers
47 views

Using xrandr when starting new xserver

I'm trying to set the resolution and refresh rate of a screen when i launch an application on a new xserver. The xrandr commands i usually use to get this screen to work are: xrandr --newmode ...
1
vote
2answers
28 views

Whiptail/dialog input bug when executed from rc.local

I need to start a Bash script containing calls to dialog at Debian boot time. This is how I've been able to do it: Unset default root password Set --autologin option to tty1 in initrd ...
1
vote
1answer
53 views

How long will Redhat / CentOS support the init system

Now that systemd the preferred way to start system services in CentOS 7, can anyone tell me in which release the init system will be completely removed? i.e no support for init scripts whatsoever?
0
votes
0answers
45 views

Filtering running tasks from Journalctl output?

For example one common way to check on a dd process is to use watch i.e. sudo kill -USR1 $(pgrep ^dd). Notably the process pid changes since a new kill command is called every-time. Is there a good ...
1
vote
1answer
125 views

Writing a systemd unit file with a environment-set executable path

I am writing a systemd unit file for a Java application and I'd like to control the version of Java used to start it up. My (simplified) service file is [Service] Type=simple ...
0
votes
0answers
145 views

Debian 8: How do I modify the Samba initscript in an upgrade-safe manner to include my virus scanner?

I'm using Debian 8 ("Jessie") and I have it configured to use systemd rather than sysvinit. I'd like to modify the init script (or whatever the systemd equivalent is) for Samba in such a way that if ...
1
vote
1answer
58 views

Systemd with rtorrent in tmux

I have been unable to get tmux & rtorrent running with a systemd service file. My rtorrent.service: [Unit] Description=rTorrent Documentation=https://github.com/rakshasa/rtorrent ...
1
vote
0answers
39 views

Media key problems with Microsoft keyboard

I have a Microsoft All-in-One wireless media keyboard (n9z-00001) which behaves weirdly with my current distribution, Arch Linux. (Linux 3.19.3-3-ARCH #1 SMP PREEMPT Wed Apr 8 14:10:00 CEST 2015 ...
1
vote
1answer
63 views

Can start custom systemd service, can't enable it

I want to create a daemon of Telegram-cli (https://github.com/vysheng/tg). I have created the file /etc/systemd/system/telegram.service with the following contents: [Service] Type=simple ...
1
vote
0answers
32 views

some function buttons not recognised (even at scancode level) after resume from sleep

As in the title, some function buttons are not being reconised after resuming from sleep. systemctl suspend is used. The buttons work fine after boot and before the sleep but not after. I have tested ...
2
votes
1answer
89 views

Run script every 30 min with systemd

I would like to execute a script every 30 min after booting into the system. I know you can use cron, but I don't plan to use this feature often therefore I'd like to try it with systemd. So far I ...
1
vote
1answer
24 views

How do I get xconsole to show the messages on a system with journald?

I would like an old style xconsole on my desktop, ie a terminal which display a scrolling list of syslog message. Does the journald system have a nice desktop app or is there a simple way to get it ...
1
vote
1answer
44 views

Automatically run command before umounting a filesystem

I want to execute a command automatically shortly before a filesystem is unmounted. The command still needs the filesystem to be mounted but I am interested in information as "new" as possible. ...
1
vote
1answer
36 views

systemd: Stop all OpenVPN processes

Just started using systemd and need to stop and start OpenVPN. I can successfully start OpenVPN with this for example: systemctl start openvpn@vpn1.service and can stop it with: systemctl stop ...
0
votes
1answer
37 views

OpenVPN via systemd fails with stdin error

OpenVPN starts and runs just fine when I invoke it directly from the command line, but when I try to start it as a process via systemd, it throws a failure error that I can't find a solution to. ...
0
votes
3answers
51 views

How to disable a service without using 'systemctl disable'

There is a service I want to run only when another service fails ([Unit] OnFailure=foo), but I don't want this service (foo) to start up automatically on boot. One option is running systemctl disable ...
0
votes
1answer
18 views

What do values taken by 'OnFailureJobMode=' mean in systemd unit files

That OnFailureJobMode= option (under [Unit] section of systemd unit files) takes these values: fail replace replace-irreversibly isolate flush ignore-dependencies ignore-requirements What do they ...
2
votes
1answer
29 views

Run an arbitrary command when a service fails

I want to run some script when a service fails. The closest thing I see to this is the FailureAction= option (under [Service] section), but it only offers reboot commands.
1
vote
1answer
21 views

Rsyslog `logger` message duplicated

I just had a problem with rsyslog's imjournal module, possibly the issue described here, whereby complications with systemd's journal cause the journal to return the same data endlessly in a ...
3
votes
1answer
133 views

How do I allow non-root users to control a systemd service with instances?

I need to allow users in the dba group to control the database@ services. The answer to this related question is to just list all systemctl "verbs" that I want to allow in the sudoers file, however, ...
3
votes
0answers
41 views

Run systemd service after automount but after it's accessed

Is it possible to run a systemd service that prepares an automounted file system for use? This service would need to run after the filesystem is mounted, but before whatever triggered the automount ...