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
31 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
11 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
22 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: # ...
1
vote
1answer
32 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
25 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
17 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
50 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
21 views
+50

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
53 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
82 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
30 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
16 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
28 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
22 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
62 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
22 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
33 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
34 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
25 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
45 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
15 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 ...
1
vote
1answer
26 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
14 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
67 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
33 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 ...
1
vote
0answers
50 views

Elasticsearch periodically going down: how to avoid it? [closed]

I am using Elasticsearch on Ubuntu 14.10 and it's periodically going down (entering a failed state). When down, this throws exceptions on my website, users can't search, connect or update database ...
1
vote
0answers
44 views

Running a systemd service file after the network is up to bypass an OpenVPN default gateway

I would like to add a static route using a systemd service file on system boot. I have a DMZ network on a separate 192.168 class C network reachable via my default gateway. I also use OpenVPN to ...
1
vote
0answers
12 views

Plugged mouse increases boot time

I was going through the output of dmesg -e and found that my logitech mouse is increasing boot time by around 7 seconds and my total boot time is around 45 seconds. [ +7.334661] usb 1-1: new ...
0
votes
0answers
49 views

How can I publish the IP addresses of Docker containers as local hosts?

I have a CoreOS server with a few Docker containers. (Right now I'm using local systemd unit files to run the containers, I have yet to approach fleetd.) What is the best way to connect to the (non ...
0
votes
0answers
36 views

Yocto systemd service script problem

I have a c code which I kept in systemd service for boot time start. After restart it started successfully but after a while it got killed and again started successfully as the type set is forking. ...
1
vote
2answers
45 views

Systemd dependency tree saving

As I know systemd stores dependencies between services in unit files. I need to know how systemd behaves on boot: Does it load unit files from specific paths and recalculate dependencies every time ...
1
vote
1answer
81 views

Yocto linux service script problem

I have written a systemd script mqtt.service which is in /home/root directory This is my mqtt.service script : # This file is part of systemd. # # systemd is free software; you can redistribute ...
0
votes
1answer
44 views

Which systemd service starts text console on the framebuffer device?

I'm working with an embedded platform and need to have /dev/fb0 clear for my own use (the device accessible over serial console while the screen is used to display information, without X.). I've ...
3
votes
1answer
34 views

Can I use a symbolic link as a service of systemd?

For instance, I have a service named mysshd.service under /usr/lib/systemd/system/ directory. Can I create a symbolic link such as: ln -s /usr/lib/systemd/system/mysshd.service ...
3
votes
0answers
41 views

What is the difference between “systemctl restart” and “systemctl start”?

I have two services A and B where B is dependent on A which means in the A's service unit i have After and Requires set to B After=B.service Requires=B.service Now when i stop the service B the ...
0
votes
1answer
45 views

Configure systemd-journal-gateway on CentOS7

I installed systemd-journal-gatewayd on CentOS7 and started it. If I connect to the given port the HTTP server is answering but the response is always emtpy. Neither /entries?follow nor /entries?boot ...
1
vote
1answer
58 views

generic methodology to debug ordering cycles in systemd

I am aware of following thread and supposedly an answer to it. Except an answer is not an answer in generic sense. It tells what the problem was in one particular case, but not in general. My ...
0
votes
0answers
63 views

Why does PostgreSQL 9.4 on CentOS7 not run via the `systemd` service file on boot?

As root, if I change to the postgres user with su -l postgres then run /usr/pgsql-9.4/bin/pg_ctl start -D ${PGDATA} -s -w -t 300, PostgreSQL starts successfully. As root, if I run systemctl start ...
2
votes
1answer
35 views

Figure out at what time the machine was suspended

I suspended my machine and now got back to work. I want to figure out at what time I suspended the machine. Is there any way to somehow look up the time?
4
votes
2answers
89 views

How could we allow non-root users to control a system.d service?

With sysvinit, a sudoers entry like this would suffice: %webteam cms051=/sbin/service httpd * This would allow for commands such as: sudo service httpd status sudo service httpd restart Now, ...
1
vote
0answers
36 views

How to set SyslogIdentifier in [SERVICE] section of systemd service file as empty?

I want to set SyslogIdentifier in [SERVICE] section of systemd service file as empty, so that nothing is prefixed in the logs. I tried below options: 1) Mentioning nothing: SyslogIdentifier= ...
2
votes
1answer
97 views

When saving INTO OUTFILE from mysql on a systemd based system, the output file is grabbed by systemd — why?

I regularly run simple reports from a mysql (actually, mariaDB) database: MariaDB [acts]> SELECT resolution, title FROM acts ORDER BY resolution INTO OUTFILE '/tmp/acts-titles.txt'; Recently I ...
0
votes
0answers
29 views

Systemd user specific service and timer

I have installed arch recently and added a few of my own services, for example the acpi_call commands and such. Now I want to create a systemd service that runs every 5 minutes and execute a script. ...
0
votes
1answer
103 views

systemd service using 100% of my CPU when it doesn't if I start it without systemd

I'm using Debian Jessie with the latest updates. I made a systemd service to run a script when my server starts. Here's its configuration: [Unit] Description=(my description) [Service] ...
1
vote
0answers
47 views

What systemd target or service populates /dev/disk/by-uuid on el7?

On EL7 (RedHat 7, CentOS 7, etc) I have a systemd unit file to mount a filesystem (/usr/lib/systemd/system/srv-data.mount) that looks like this: [Unit] After=sysinit.target [Mount] ...
2
votes
1answer
74 views

Why is my systemd journal not persistent across reboots?

I'm experiencing a very weird issue with a fresh Fedora 21 image on a Linode instance. I cannot reproduce it outside of Linode. The issue is that my systemd journal is not persistent across reboots. ...
0
votes
1answer
68 views

systemd timer every X days at 04:00

I have been reading on OnCalendar= Sadly, I found no info on how to schedule an event on a day other way than defining a day of the week, which would make it run every week at the rarest. I need ...
1
vote
1answer
55 views

Runlevel3 (systemd) - target on Opensuse 13.2 starts GUI

From my understanding, setting the default target to /usr/lib/systemd/system/runlevel3.target should not start the GUI--but it does. Also the file runlevel3.target looks exactly the same as ...
0
votes
0answers
36 views

Howto start a service at the beginning of the systemd boot sequence

How can I get a service started right at the beginning of the systemd boot sequence? shortly after the kernel has finished? At the moment all my costum services get started at the end of systemd ...
3
votes
1answer
100 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 ...