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
1answer
32 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 ...
1
vote
1answer
15 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 ######################################## ...
-2
votes
0answers
25 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
7 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
0answers
12 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
8 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
22 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
0answers
16 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
55 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
37 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
33 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
0answers
13 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
15 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
30 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
21 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
38 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
11 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
6 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
76 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
56 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
18 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
2answers
85 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
34 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
15 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
72 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
16 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
43 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
57 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
221 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
39 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
109 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
71 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
122 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
71 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
136 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
46 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
53 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
31 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
54 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
46 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
150 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
154 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
61 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
41 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
72 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
33 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
94 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 ...