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

2
votes
2answers
98 views

Start/stop a systemd.service at specific times

I want to start and stop a systemd.service at specific times. Presumably I will use a .timer unit to start the job, but is there a built in way to stop the job after a specific duration, or at a ...
1
vote
0answers
54 views

FUSE hangs trying to mount network filesystem on login

I am using Fedora 23 and I have autofs set to automount some s3fs FUSE filesystems when directories under /mnt/s3 are accessed. Since I set this up, I always experience an additional delay upon ...
1
vote
2answers
155 views

Custom service (systemd) won't run on startup

I'm creating a non-interactive kiosk in Raspbian. I gutted everything I didn't want - desktop managers, various graphical services etc - the script starts X, an absolutely minimal desktop manager and ...
1
vote
1answer
26 views

How to configure options for a systemd unit file?

The systemd blog contains two articles that advice against using /etc/sysconfig or /etc/default: http://0pointer.de/blog/projects/on-etc-sysinit.html ...
1
vote
2answers
39 views

Custom systemd process on debian slow to start up

I'm setting up rtpproxy on a debian 8.3 server through the default package available in the repos. The package comes with the sysvinit script still, and I want to use a keepalive so I'm trying to set ...
0
votes
1answer
65 views

Do I need set ulimit for system services, such as nginx.service(systemd)/nginx(sysv)?

I know, when we run application in shell for a large website, we'd better set ulimit for our shell, But most of the service is started by systemd/sysv. Do I need set the ulimit in the service ...
1
vote
1answer
86 views

How to start a script on tty instead of asking for login in systemd?

I need to start and print a script on tty1 instead of asking for login. In link with : How to parse /proc/cmdline before asking tty login with systemd I tried to make a service which launch a simple ...
2
votes
0answers
88 views

How to parse /proc/cmdline before asking tty login with systemd

First, I'm trying to parse /proc/cmdline with this script: #!/bin/bash for i in $(cat /proc/cmdline) do export $i done I tried to make a systemd service [Unit] Description=Parse cmdline ...
0
votes
2answers
41 views

How to use user-systemctl as root?

I want to start a user service from my root shell without logging into the users shell. I have tried the following command, but it fails: #> su - username -c "systemctl --user" Failed to connect ...
6
votes
0answers
147 views

How to pause (or capture) the messages that fly by at the end of startup sequence?

Towards the end of the "startup sequence"1, I see a longish series of diagnostic messages fly by very quickly, right before I see the login prompt2. AFAICT, most, if not all, of the lines making up ...
1
vote
0answers
47 views

Galera + systemd: wsrep_notify_cmd fails with sudo (unable to change to sudoers gid: Operation not permitted)

We have a Galera cluster operational on CentOS 7 with sysv, and are looking into migrating to systemd. We are invoking a wsrep_notify_cmd to notify our application of changes in the node states, and ...
1
vote
0answers
60 views

Systemd: Running a script before msyql stops on shutdown

On my Ubuntu 14 vagrant box I use this upstart script to run automysqlbackup on every vagrant halt: description "run automysqlbackup" start on stopping mysql task exec automysqlbackup So ...
0
votes
1answer
75 views

systemd service not starting on boot

Whenever I reboot my Debian Jessie box NZBget fails to start. It has already been enabled with sudo systemctl enable nzbget If I do: $ sudo systemctl status nzbget * nzbget.service - NZBGet Loaded: ...
4
votes
3answers
937 views

How to disable X server autostart in Debian Jessie?

I have a remote machine running Debian 8 (Jessie) with lightdm installed. I want it to start in no-GUI mode, but I don't want to remove all X-related stuff to still be able to run it though SSH with ...
1
vote
0answers
118 views

Configure power button - OpenSUSE LEAP 42.1

I use the method described in this question to configure systemd to power off the laptop when the power button is pressed. (I.e., edit /etc/systemd/logind.conf.) This worked perfectly with OpenSUSE ...
0
votes
2answers
47 views

How to set systemd as the default service manager under debian jessie?

In order to take advantage of all the features of systemd under Debian jessie I consulted many websites, but I have not found answers to my questions: How to set systemd as the default service manager ...
1
vote
1answer
137 views

Is that possible for debian users to connect to network through systemd-networkd?

Systemd offers the ability to manage the network by itself without additional tools such as netctl or NetworkManager. I am running debian 8 and i need to configure my network using systemd-networkd ...
1
vote
0answers
51 views

Systemd doesn't start a timer unit

I would like to create a timer that launch a command every 2 months (the first of the month) I already do that with a cron, but I would like to do the same with systemd and get rid of cron. I have a ...
0
votes
3answers
75 views

Force systemd to check status of service after n seconds

I have a systemd service (for heka) which causes me some headaches. The problem is that "start" returns successfully even if the heka daemon dies shortly after starting. This is happening if the ...
0
votes
0answers
340 views

Debian Jessie start rpcbind and nfs-common at boot with systemd

On my Raspbian (based on Debian Jessie), I need to start at boot rpcbind and nfs-common services because I need them to start autofs at boot for a NFS mount. Since Debian Jessie now has moved to ...
0
votes
1answer
23 views

My systemd slices aren't reporting info to systemd-cgtop

I have a centos VM running via KVM on my Debian laptop. This is what I see when I run systemd-cgtop: I know I have a user,system,and machine slice, but I'm only seeing data from the machine slice. ...
0
votes
1answer
72 views

systemd-networkd - how to force new configuration without reboot?

On my Arch box, I had a network bridge. The goal was to remove the bridge and to only use the network adapter not bridged. In order to do so, I removed all the *.netdev and *.network configuration ...
0
votes
2answers
184 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
51 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" ...
1
vote
0answers
35 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 ...
0
votes
1answer
22 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
73 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
1answer
98 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 ...
1
vote
0answers
252 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: ● ...
5
votes
1answer
47 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 ...
1
vote
0answers
114 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 ...
2
votes
0answers
79 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 ...
1
vote
1answer
47 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 ...
1
vote
1answer
243 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
53 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
28 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
54 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
124 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
47 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
0answers
68 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
186 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
24 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
2answers
180 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
3answers
28 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 ...
1
vote
1answer
53 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 ...
0
votes
0answers
47 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 ...
3
votes
1answer
712 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 ...
0
votes
0answers
19 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
117 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 ...