Systemd is a replacement for tjhe classic init during boot.

learn more… | top users | synonyms

0
votes
0answers
10 views

Cant get systemd to prompt for password (on Ubuntu 16.04)

I'm struggling mightily with systemd. I'm wanting it to prompt for a password during startup. It does not provide me with a prompt. I have tried multiple variants to get this to work - I currently ...
0
votes
1answer
19 views

How to disable systemd service in rescue mode

I have a service that kills the system every time it boots (OOM). I need to get rid of it, but debian 8 doesn't seem to have recovery boot option anymore, so I had to boot using cd and used rescue, ...
0
votes
0answers
20 views

Installing gentoo with systemd

I'm trying to get my gentoo install to boot with systemd enabled, I've been using systemd on Arch and Fedora for a few years at this point and I followed the handbook and the systemd page on the wiki, ...
0
votes
0answers
9 views

How to make logind act different when power line plugged-in or not?

I am using Arch Linux and use logind to handle acpi. There is only one acpi event HandleLidSwitch. When closing the lid I want my laptop to act differently based on the current power source. For ...
2
votes
1answer
19 views

Identify the systemd unit file from process name

For some service unit files, the unit file name does not correspond to the name of the daemon. For example Postfix: The unit file is called postfix.service but the underlying daemons launched are ...
0
votes
0answers
22 views

Polkit / Systemd interaction

I tried to add the following rule to polkit: polkit.addRule(function(action, subject) { if (action.id == "org.freedesktop.systemd1.manage-units") { polkit.log("action=" + action) ...
0
votes
1answer
28 views

Convert init script to systemd - executable path is not absolute

I am trying to convert one of my init scripts to systemd but to no avail. [Unit] Description=My Service After=network.target Wants=mysql.service [Service] Type=oneshot ...
0
votes
1answer
57 views

static ip using systemd (debian 8) on RPI2

i'm new to systemd, very used to ubuntu\debian RC system scripts so i'm a bit confused. the basic idea was to setup static ip for my raspberry pi ncluding dns etc... naturally editing ...
0
votes
1answer
17 views

How to programatically modify systemd unit files?

I'd like to edit a systemd's unit file from a shell script. I want to change the unit's only ExecStart line. Using systemctl edit looks smart to me, but the command needs an editor set as ...
0
votes
1answer
30 views

systemd: cpu usage of services

I'm running systemd 229-3 on an up-to-date Arch Linux installation. Lightdm is launched on startup, and starts my XFCE desktop environment. Furthermore, laptop-mode-tools is installed and run on ...
0
votes
0answers
21 views

Why does akmods.service slow boot?

I'm using Fedora 23. My computer is slow to boot. systemd-analyze tells me the slowest service is akmods.service. Why does it take so long? I only have one akmod (akmod-nvidia) and it's already built ...
-1
votes
1answer
52 views

Is /var/run/user/$UID the new /var/run for PID files?

I have an application (running as a service as root) that creates a PID file under /var/run. But I'm wondering whether this is now no longer best practice. In Linux - alternative places where to ...
0
votes
1answer
59 views

How to make an Environment Variable available to Systemd Services

I have a script in /etc/profile.d/setenv.sh which sets the value for JAVA_HOME so that $JAVA_HOME will be available system-wide: # echo "export JAVA_HOME=/usr/java/jdk1.8.0_74" > ...
0
votes
1answer
19 views

Setting the home directory of xscreensaver with systemd

I wrote a systemd user unit to start xscreensaver, since I want it to start up automatically. Here's what it looks like: # ~/.config/systemd/user/xscreensaver.service [Unit] Description=XScreensaver ...
3
votes
1answer
36 views

stopping a systemd service when starting another

I have written a simple zram.service file that will set up compressed swap space for me to avoid chewing too much om my disks. The zram have higher priority than the other swap devices. The problem ...
3
votes
1answer
46 views

How to encrypt a live rootfs on Arch Linux

I have a Linux Arch system running on a VPS. The rootfs is installed on a LVM partition. I would like to overlay an encrypted container on this partition, then reinstall the rootfs on it and enable ...
0
votes
1answer
58 views

How to install systemd on Bananian 15.08

Bananian 15.08 is based on Debian Jessie but still uses sysvinit instead of systemd. How to disable SysVinit and switch to systemd?
0
votes
0answers
15 views

Xorg 1.17.4: launched with startx — -seat seat1, but why doesn't loginctl show “seat1”?

I'm looking to add a separate X instance and a seat to a running system. $ startx -- :9 -novtswitch -sharevts -seat seat1 Things launch OK, but loginctl doesn't show the seat anywhere. $ [-] ...
0
votes
1answer
38 views

systemd create root service

I need to create a systemd service to start some owfs-daemon automatically. I can manually start the daemon with sudo /opt/owfs/bin/owfs --i2c=ALL:ALL --allow_other /mnt/1wire/. Then there are ...
0
votes
0answers
24 views

After systemd upgrade, why does /dev/null always have the wrong permissions?

After upgrading my Debian system, this happens: # ls -l /dev/null crw-rw-r-- 1 root plugdev 1, 3 Feb 20 18:17 /dev/null ...which is bad. I can manually change the permissions, but it doesn't ...
0
votes
0answers
63 views

systemd-networkd: how to create a virtual bridge?

I am trying to create a purely virtual bridge for testing some problematic network services. On an older Debian system I could accomplish this from /etc/network/interfaces using something similar ...
3
votes
0answers
113 views

How to start a systemd service after user login and stop it before user logout

I have a Fedora 23 Machine. I have a directory/file synchronizing bash script that synchronizes my local /home directory to a remote directory (in a NAS machine). I run it manually but I would like ...
0
votes
0answers
23 views

How do I wait for network manager in init.d

I'm getting a startup error with the nmbd service. It can't bind to a particular port. However, if I manually bounce the service after the computer comes up, it's fine. I'm running Ubuntu 15.10. That ...
0
votes
0answers
18 views

How to listen for system level services in user level instance of systemd

Is there a way to use WantedBy, Requires, etc from a user level systemd instance to a system level systemd unit? I'd like to add WantedBy=<system_level_target>.target in my user level instance. ...
0
votes
2answers
40 views

How do I use ENV{SYSTEMD_USER_WANTS}= in udev rule?

I want to set up a docked.target in my user level systemd. The idea is to run some services to configure my external displays. I currently have this as my rule: SUBSYSTEM=="usb", ACTION=="add", ...
0
votes
1answer
27 views

Run script when systemd service fails

I'm running Debian 8 on a server. How do I run a bash script if a systemd controlled service fails to start or restart? Similarly if a service suddenly stops and cannot continue. In effect I want ...
1
vote
1answer
46 views

Mount a NFS share after user login

I want to mount a NFS-Share after the login, since mounting it via fstab will prolong my boot process if the NAS isn't reachable. So I thought about a systemd --user service. [Unit] ...
0
votes
0answers
50 views

How to run a virtual machine with no graphics card (VGA) configured in VirtualBox

I want to use the following feature of Linux (which one of my virtual machines): If no console device is specified, the first device found capable of acting as a system console will be used. At ...
1
vote
0answers
22 views

systemd-timesyncd: Show NTP status

When using systemd-timesyncd, how do you show more detailed NTP status? Specifically, I'm looking for the IP addresses of the peers I'm using (presumably aquired via DHCP). This does not show what ...
0
votes
0answers
41 views

systemd TaskMax reached in arch linux image in google compute cloud but not in fresh install on hw

I have a custom systemd service on an arch linux machine. The service uses lots of child processes and threads. On systems I have installed from scratch running on physical hw this is not a problem ...
0
votes
1answer
51 views

Why is systemd not bringing down dependencies?

I have created a systemd service file, whose task is nothing, but just to bring up other services, and bring them down as well. Since it does nothing, other than bringing up other services, i have ...
0
votes
1answer
148 views

Start a systemd user service at boot

I am trying to start a systemd service for a specific user (service name/goal is not relevant). I do that because I need to have a per user process of an application running at startup. Here is what ...
2
votes
0answers
387 views

How do i make systemd-networkd ignore DHCP pushed default route?

I want systemd-networkd ignore the default route/s pushed by DHCP on one interface. My work setup has 3 network interfaces. I have one .network file for each interface: eth0) internet [Match] ...
1
vote
1answer
94 views

Why is systemd stopping service immediately after it is started?

I created a systemd service which should invoke a shell script, when started or on reboot. [Unit] Description=Starts the DCCA index software [Install] WantedBy=multi-user.target [Service] ...
0
votes
0answers
18 views

Runing fsck triggers udev rule

On a Debian stable system with udev and systemd (215-17+deb8u2) I have the following udev rule that I use to start a systemd service that runs a backup script: KERNEL=="sd?1", ...
0
votes
1answer
40 views

Which Systemd target should I use to start a service at boot but not delay user login

While running systemd-analyze critical-chain I noticed that the Samba daemon is on the path to user login. Although I would like Samba to start automatically on boot, I don't care if it happens before ...
1
vote
1answer
60 views

systemd keeps stopping and restarting a service

Before systemd, my /etc/init.d/referee script would start/stop/restart a service without issue. Converting to systemd, which calls the same init.d script, the service starts without an error and then ...
1
vote
1answer
175 views

how to know if I am using systemd on my linux?

How could I know if my linux starts with systemd or whatever package?
2
votes
1answer
433 views

How do I run a script before everything else on shutdown with systemd?

Note: Briefly formulated question can be found at the bottom. I have a script which makes a backup of my files onto an external USB drive. Executing it can take a while, depending on the amount of ...
0
votes
1answer
151 views

Run a script during shutdown/termination of an aws instance

I need to execute a script during shutdown/termination of an AWS instance(debian). I added my script to the /etc/init.d/myscript and a symlink to /etc/rc0.d/K01myscript however I noticed that when I ...
1
vote
1answer
44 views

How to change the niceness of openvpn on debian?

I am currently using debian 8.2 with systemd. $ cat /etc/default/openvpn ... # WARNING: If you're running systemd the rest of the # options in this file are ignored. ... # Optional arguments to ...
0
votes
1answer
156 views

How to skip startup jobs for fstab? No timeout CENTOS7

So I was working on CentOS7 by encrypting one of my drives which worked perfectly manually. However, after making a mistake in the /etc/fstab and /etc/crypttab for mounting automatically it will get ...
0
votes
1answer
10 views

Does systemd honour KILL order from chkconfig

Title of the question is just what I needed to ask. I don't see it actually following that. Is there a way, in which I can make systemd follow the KILL order. From what I see, it just reverses the ...
0
votes
1answer
126 views

How to run script before the network configuration?

The unit file for that is supposed to be like that: [Unit] Description=@CPACK_PACKAGE_DESCRIPTION_SUMMARY@ Before=network-pre.target Wants=network-pre.target [Service] Type=oneshot ...
0
votes
1answer
336 views

networkd is not bringing eth0 up at boot

I've installed Debian 8 on a gigabyte brix pro and everything seems to work properly except for networking. I've enabled systemd-networkd.service, disabled networking.service and created the ...
0
votes
1answer
175 views

shell environment setup for virtualenv/virtualenvwrapper

The question is about shell setup for virtualenvwrapper, an extension to virtualenv (python guide). Similar questions had been asked many times but with a lot with different answers: Environment ...
1
vote
1answer
50 views

Systemd service successful but did not start script

I created a script that has to start on boot. So for this script I created a systemd service and enabled it in systemctl. The script is creating a folder in /mnt, then mounts a cd to it, copies files, ...
0
votes
1answer
128 views

Can't suspend laptop using systemd while Slack is started

Sometimes when I'm trying to suspend a laptop using systemctl hybrid-sleep, I get response like this: Failed to put system into hybrid sleep via logind: Sleep verb not supported But after reboot ...
0
votes
1answer
299 views

Tor hidden service settings failing to allow tor.service to start on CentOS/Fedora

I am attempting to set up a Tor hidden service on CentOS 7 (with systemd), using the tor package from the EPEL repository. Previously this was working fine until a few days ago when it stopped ...
3
votes
0answers
765 views

How do I figure out why systemctl service “systemd-modules-load” fails?

For some time I've seen some red text flashing by during boot. Today I decided to look into it. The systemctl service systemd-modules-load.service is failing with this text: tomas@bonus-debian:~$ ...