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

0
votes
1answer
9 views

NFS mount at boot with autofs on Raspbian Jessie

I'm trying to configure my RPi with Raspbian Jessie to use autofs to mount at boot a NFS share from my QNAP NAS. The manual mount with mount -v -t nfs server://share /mnt/share works and also the ...
3
votes
1answer
23 views

Acpid action works when ran as root but not when started by systemd

On Fedora 23 I wanted to add custom action when laptop lid is opened. I have installed acpid and created three files: /etc/acpi/events/lidconf event=button/lid action=/etc/acpi/actions/lid.sh "%e" ...
5
votes
2answers
456 views

CoreOS can't pull docker container on boot

While following the systemd guide I ran into an issue with this example configuration: [Unit] Description=MyApp After=docker.service Requires=docker.service [Service] TimeoutStartSec=0 ...
1
vote
0answers
12 views

Adding delay between stop and start of a process in systemd

I have a really strange issue with systemd. When I issue a systemctl restart it will start the new process before the previous one finishes. This can be seen in the log, where the final shutdown ...
6
votes
1answer
3k 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, ...
2
votes
1answer
785 views

I can't enable or disable a user service: Failed to execute operation: No such file or directory

I want to debug/test a program in eclipse that uses a Redis server so I decided to turn the server into a user service to have the privilege of running it. What bothers me is that I can start or stop ...
0
votes
1answer
12 views

Start radio with systemd service

On a headless RaspberryPi, I would like to automatically start radio on boot, without any human action. I have written this file as /etc/systemd/system/radio.service : [Unit] Description=Radio ...
0
votes
1answer
44 views

Why does /etc/machine-id changes at reboot?

/etc/machine-id changes at each boot on my recent Debian Jessie install. The docs say it shouldn't: The machine ID is usually generated from a random source during system installation and stays ...
0
votes
0answers
8 views

A lot of warnings and errors from `org.freedesktop.Tracker1`

In my systemd log each boot I can see a lot of warnings and errors from org.freedesktop.Tracker1. I use gnome and this is the ouput of: journalctl -b -t org.freedesktop.Tracker1 ...
2
votes
0answers
55 views

Running a service before log in

I don't like opening a question here for such a, seemingly, simple issue; but I've been stuck on this for a while now and I have no idea what to do next. I'm running a Fedora 22 system on a ...
0
votes
0answers
13 views

Create aMule daemon systemd .service file

I recently moved to Raspbian Jessie on my RPi and now I'd like to move all my services from init.d to systemd. aMule daemon it is now working with init.d but I want to move the script to a ...
0
votes
0answers
37 views

systemd-timesyncd on Debian 8 (fails silently?)

I'm having troubles on a Debian 8 installation to get systemd to synchronise time properly. NTP has been enabled with timedatectl set-ntp true and systemctl status systemd-timesyncd reports: ● ...
4
votes
0answers
16 views

journalctl process eating up memory

I have a process run by root journalctl -b --system showing up on htop that is eating a ton of CPU. I understand journalctl is for querying the journal, so is it safe to kill the job without impact on ...
6
votes
3answers
3k views

How to create user cgroups with systemd

I use unprivileged lxc containers in Arch Linux. Here are the basic system infos: [chb@conventiont ~]$ uname -a Linux conventiont 3.17.4-Chb #1 SMP PREEMPT Fri Nov 28 12:39:54 UTC 2014 x86_64 ...
0
votes
0answers
18 views

Suspend isn't working anymore after upgrade to xubuntu 15.10

Suspend doesn't halt my old computer (DELL Precision T7400) since I updated to xubuntu 15.10. I have a black screen after suspending but the computer is still working (fan, led, ...) I suspect ...
1
vote
1answer
37 views

Run service once a week, not also at boot

I have to run a systemd service only once a week and not also at system boot. These are the .service and .timer files: .service: [Unit] Description=kodi backup [Service] Type=simple ...
4
votes
1answer
814 views

Inherit environment variables in systemd Docker container

I have a Docker container running systemd. I want to pass environment variables to applications under it. When I start systemd from within Docker (/sbin/init as command line), Docker exposes ...
3
votes
2answers
1k views

How to force systemd enter in emergency mode?

I'm using Opensuse 12.3. systemd-195-13.45.1.x86_64 After few problems when I added a disc at btrfs mount I'm trying put my system in emergency mode (which I consider all services will be stopped and ...
1
vote
1answer
111 views

Dependency failed for mount after dist-upgrade

Last weekend, I ran an apt-get dist-upgrade on a home Debian 8.3 system, and was surprised to see that it entered emergency mode on the next boot. The server in question runs LVM on top of a mdadm ...
1
vote
1answer
22 views

Cryptsetup: LVM is missing (on a system without LVM)

So, I have a problem with the partitions setup of my laptop. I will try to include as many details as possible in order to make it easier to help. In the past, I had an ubuntu 15.10 system on my ...
1
vote
1answer
35 views

How is /dev/null created on archlinux

Just wondering how is /dev/null created on my archlinux box. I investigated udev rules under /usr/lib/udev/rules.d, but there are no rules relating to to name null. > ag null ...
1
vote
0answers
19 views

systemd dynamic (runtime) dependencies

In our embedded device we have a main app and several services. Both main app and services are managed by systemd. The main app has a plugin system, its plugins may be enabled or disabled at ...
3
votes
0answers
29 views

How can I have a filesystem mounted during user login?

I would like a file based filesystem (~/Archives/inventory.locker) mounted upon user login and unmounted upon logout (~/Documents/Inventory). pam_mount seems to provide the functionality I am after, ...
0
votes
1answer
33 views

systemd: how to enable a service automatically from the first boot?

I am using systemd to handle some tasks and I have a service file which works fine once enabled with systemctl. Now, I would like to enable it automatically from the first boot. I know that putting ...
1
vote
1answer
24 views

How to create a .deb that deals with different init systems

I'm learning how to create a .deb file using jdeb in order to deliver a maven based java headless application inside debian based distributions. It needs to be installed in such a way it auto start ...
56
votes
1answer
90k views

How to write startup script for systemd

I have 2 graphics cards on my laptop, one is IGP and another discrete, I've written a shell script to to turn off discrete graphics card. How I can convert it to systemd script, to runt at start-up?
0
votes
1answer
2k views

Debian and Systemd: breaking ordering cycle error

I'm a new embedded developer I'm trying to make systemd 37 work with freescale vybrid board (A5 and M4) running on linux-3.0 After boot with some breaking ordering cycle error, I check with ps ...
13
votes
2answers
5k views

What is needed for a minimal systemd boot to launch getty on a virtual console?

For SysV init, I need /etc/inittab respawning getty entries, the /sbin/init binary, the binaries and shared libraries for the shell, login, the getty, the PAM/security/shadow stuff, and a few device ...
1
vote
0answers
44 views

Linux: Why do init and systemd use so much I/O?

This is probably unanswerable. But maybe someone else will have this problem and find this question, append to it, or proffer an answer. I discovered the pidstat command with its -d option, today. ...
0
votes
1answer
29 views

How do I see the iptables logs in systemd

I have a system with Debian Jessie. It comes with systemd. I want to see the kernel logs for iptables. I have a bunch of iptables and at the end I want to log what doesn't get allowed. I do it like ...
0
votes
1answer
2k views

Runtime parameters for a systemd service

I am a little confused about how runtime parameters are normally supplied to a systemd service. The general idea I have is that the following happens: There is a file that contains the environment ...
0
votes
2answers
46 views

Systemd wait for network interface to be up before running service

I have a couple questions about systemd. I'm having issues consistently getting my script to run once the network interface is up. I have tried Requires and After as seen below but is inconsistent ...
0
votes
1answer
18 views

What service executes that sets up the real time clock

I'm looking for the service that runs that sets up the correct time on my system. Does anyone know what service does this?
0
votes
3answers
23 views

How can I tell if service and systemctl are the same command?

I'm trying to run Nginx using Systemd as a process manager. When I run sudo service nginx start and then type ps -aux | grep nginx it appears to be the same process running as when I started it using ...
0
votes
1answer
21 views

After upgrade to Jessie, service control doesn't return result

Actually not debian, but Raspbian Wheezy to Raspbian Jessie. I upgrade it using some commands which found on Raspbian official forum. cat /etc/debian_version = 8.0. The problem is, I can't view any ...
2
votes
1answer
67 views

docker compose create containers without starting them

My docker containers are build with docker-compose and I automatically start them container on my CentOS 7 system using derivatives from the documentation example:: [Unit] Description=condb container ...
1
vote
1answer
2k views

Force fsck check after reboot with single command

I'm looking for systemd's equivalent to the shutdown -F command. I know that I can force fsck by adding fsck.mode=force to kernel options or tweak mount count for disks. I have tried touch /forcefsck ...
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 ...
3
votes
4answers
2k views

What's the best way to have uwsgi create a '/run/uwsgi' folder on reboot?

I have set up a Django project to run with uwsgi and nginx and it's all running as expected, except that when I reboot uwsgi will not launch correctly until the /run/ folder is recreated on the fs. ...
0
votes
0answers
17 views

Systemd user and permissions

I'm trying to deploy an NodeJS app using systemd, the matter is that I've copied my code into /root/dataServer as root. And then I added this service: [Service] ExecStart=/usr/bin/node ...
6
votes
1answer
2k views

Enable systemd-baclight@intel_backlight instead of systemd-backlight@acpi_video0

I have 2 files in /sys/class/backlight/ - acpi_video0 and intel_backlight. intel_backlight is the one which controls my screen brightness (echo/cat), however acpi_video0 is the default. By default ...
11
votes
2answers
7k 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 ...
0
votes
0answers
18 views

systemctl script not able to read and write

I have a script running at start up using systemctl. Shown below. The script that runs just reads and writes data from a txt file. [Unit] Description= Start sample script After=local-fs.target ...
0
votes
0answers
33 views

Autostart TeamSpeak via systemd under Ubuntu

I have a systemd service script to let me start and stop TeamSpeak. It works fine if I manually start and stop it, but it won't autostart TeamSpeak on server reboot. Here's the file: [Unit] ...
1
vote
0answers
16 views

Log on standard output

I'm using Debian Jessie and I'm having big init.d script which starts or stops variety of daemons (more than 10), which list is taken from configuration file. Using systemctl restart parstart.service ...
2
votes
1answer
123 views

Cleaning up coredumpctl list

I'm looking for a way to remove any trace of old coredumps in coredumpctl list. At the moment it lists coredumps beginning at 2014-12-14 - I've updated software so often between then and now that I ...
1
vote
1answer
18 views

whats the best way to remove pid files before starting a service

I have a service that does not always remove its pid files when shutting down. So when it goes to start up again it fails. My system is a RHEL 7.2 system and what I want to do is have the system look ...
8
votes
2answers
2k 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 ...
0
votes
0answers
10 views

wpa_supplicant -u doesn't work, wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf works

Arch linux, up-to-dayte system, Dell Precision M6300 laptop. Short question: Why does wpa_supplicant -u (as run by systemd) not let built-in and USB wireless interfaces work, but wpa_supplicant -c ...
3
votes
1answer
118 views

How to run an executable with systemd before NetworkManager shutsdown

I am trying to run an executable, right before shutdown, that needs NetworkManager running. Here is the service file that I currently have (located in /lib/systemd/system), and it works fine if I have ...