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
54 views

What is the [PATTERN] parameter for “systemctl list-units”

The man page for systemctl says: Unit Commands list-units [PATTERN...] List known units (subject to limitations specified with -t). If one or more PATTERNs are specified, only units ...
0
votes
0answers
30 views

Cron, init.d and systemd service file installation through CMAKE

I'm trying to take advantage of the CMAKE built in package generation. My debian package uses debhelper to install the respective cron, init.d and systemd service scripts. I thought that I can push ...
0
votes
0answers
17 views

systemd script to enable/disable gnome shell extensions depending on connection status

As subject, I would like to write a systemd script which runs at startup and disables the weather shell extension if the laptop is not connected to the internet. When the system shuts down, it should ...
4
votes
1answer
75 views

How do you disable a service in systemd?

I know what the command is sytemctl disable NAME but I have a question about the NAME parameter. For example the bluetooth service[1] on Fedora 21. For the NAME parameter should you put bluetooth or ...
0
votes
1answer
22 views

Mysql init.d to systemd

I have two mysql instances on a centos 7 machine. init.d handles start on boot. problem is, only one instance starts on boot. both instances uses two different ports. Can someone help me with how to ...
0
votes
0answers
68 views

How to make resolvconf / dnscrypt / unbound work together on systemd - and respect openVPN routes?

I'm finding it tremendously confusing to appropriately setup Unbound.service on systemd. Use Case I am trying to get my Debian Jessie laptop to use DNScrypt as default DNS and Unbound as the local ...
2
votes
1answer
40 views

Set WorkingDirectory using a variable

How can I set the Service WorkingDirectory using an environment variable? Here is an example service config: [Service] Environment=MYWORKINGDIR=/tmp WorkingDirectory=${MYWORKINGDIR} This generates ...
2
votes
1answer
67 views

kong needs to start after cassandra, but cassandra is slow to actually accept connections so kong fails to start

I am setting up kong as an API gateway. It requires cassandra. I am using Centos 7, and I created systemd unit file for each with kong starting after cassandra, and requiring cassandra. Here are my ...
1
vote
1answer
55 views

How to start a service after a specified time in SystemD?

I'm trying to convert a SysV init script to systemd. The SysV configuration is spawning different process in such a way: su -l $USER_A -c "$CMD_A &" usleep 600000 su -l $USER_B -c "$CMD_B &" ...
3
votes
2answers
36 views

How to split FHS read-only and read/write directories across two disks with Linux/systemd, without partitioning the raed/write disk?

My objective is to have the physical storage for the Linux FHS read/write directories (/home, /srv, /tmp, /var) on a separate (logical or physical) disk from the potentially read-only rest of the root ...
0
votes
0answers
70 views

Does systemd-modules-load.service recognise modprobe.blacklist option on the kernel command line?

I put modprobe.blacklist=configs into my kernel command line booting from gummiboot, and I checked if systemd is still trying to load the module configs, and indeed it is, because a module error ...
3
votes
0answers
30 views

Symlink as WorkingDirectory in systemd service

I have a service with WorkingDirectory=/srv/ctr/current which is a symlink. It seems the service doesn't pick up changes in the symlink when restarted. The error log reports /srv/ctr/releases/69 as ...
2
votes
1answer
321 views

Debian boot: breaking ordering cycle (systemd)

When I boot my debian desktop I get these warnings: nov 08 22:05:12 Luca-PC systemd[1]: Job paths.target/start deleted to break ordering cycle starting with basic.target/start nov 08 22:05:12 Luca-PC ...
1
vote
3answers
442 views

How to disable useless “audit success” log entries in dmesg

Short version: How to disable audit messages (dmesg) on a Fedora system? A Fedora system keeps logging "audit: success" messages in dmesg - in such an extreme way that dmesg has become unusable ...
1
vote
1answer
157 views

Why is init listening on port 80?

My Debian Sid installation has init listening :::80 and is prevent nginx from starting. root@server01:~# systemctl status nginx.service * nginx.service - A high performance web server and a reverse ...
0
votes
1answer
79 views

How do I make systemd service pause the booting when waiting for user input? [closed]

Both read and sleep (with openvt -w) are executed (read -p message gets displayed) but fail to pause the booting. I tried many combinations of options in /etc/systemd/system/<service>: ...
0
votes
0answers
46 views

Systemd restarts my service a couple of times and then leaves it running

So, I converted some init scripts over to systemd unit files, and to allow one to start all of the servers at once, I made a dummy service that you can start that depends on all of the services that ...
1
vote
0answers
65 views

How to have an /etc/xdg/autostart/app.desktop service wait for a (systemd) service?

TLDR: How to have an /etc/xdg/autostart/app.desktop service wait for a systemd service? Long: I have an app started by /etc/xdg/autostart/app.desktop that requires a systemd service to be started ...
1
vote
0answers
28 views

Bluetooth activated after resuming from suspend

After resuming from suspend, gnome 3 activates "graphically" the bluetooth i.e. bluetooth service is still disabled but the icon of the bluetooth is present if I click on the top right of the screen ...
1
vote
1answer
41 views

migrating to systemd a startup-shutdown script that works with tmpfs and bindmounts

BACKGROUND INFORMATION : I have an init script that allows me to mount a folder to tmpfs, while bind-mounting the folder on drive to another location, so I can sync the contents (on startup, ...
0
votes
1answer
30 views

Systemd.service: Use the output of a bash function to set up network

I try to write a service to set up the network interface. In Sysvinit I used a script: IP=$(fw_printenv -n ipaddr) ifconfig eth0 $IP netmask 255.255.254.0 up Now I want to do this in a Service: ...
1
vote
0answers
53 views

Customizing TimeoutStopSec in a systemd unit file

Is there any way to customize the value in TimeoutStopSec in a systemd unit? I need it to be 24 hours in some cases, but that's completely inappropriate in others. I'd like to customize it via an ...
1
vote
0answers
35 views

systemd how to run service after docker.service

I have a service file, which executes a shell script, and the script needs to be executed after docker is started. Here is what I tried, but the script is started without waiting for the ...
1
vote
1answer
124 views

Apache and systemd

I've just started using Debian 8 which has introduced systemd. I'm not interested in the politics around SysV vs systemd, but I am confused, especially around Apache (2.4). There are now two ways to ...
2
votes
0answers
124 views

systemd: running a script on shutdown after filesystems are mounted read-only

Is there a way to run a script on shutdown, after the file system is remounted as read-only? I've a raspberry pi connected to a wireless socket, which I can control via a sender and a script. I want ...
1
vote
0answers
25 views

monitor network status for systemd script

I am writing service script under systemd which logs bandwidth usage every 1 hour. If network goes down, something should tell this script that network is down and the script will stop temporarily. ...
2
votes
1answer
336 views

systemd service and multiple haproxy instances

I have a requirement to run a couple of instances of haproxy and I need to update the haproxy.service file to add the second command / instance. Google lead me to adding the second command on the same ...
1
vote
0answers
11 views

Is it possible to make my system boot if systemd-networkd fails?

Is it possible to make an interface optional in case it is managed by systemd-networkd? I am using Debian GNU/Linux (unstable) on a Raspberry Pi 2 and I want to make my system continue booting in ...
3
votes
1answer
61 views

Systemd Boot Optimization dev-mmcblk0p2.device

I'm working on an embedded system and want to make it boot faster. I already stripped a lot of things. Now I don't know how to improve it further. Here is my systemd-analyze blame: 4.457s ...
0
votes
1answer
43 views

Knowing the service that opens the port

I want to close unnecessary ports in debian 8.2. $ nmap localhost | grep open 25/tcp open smtp 631/tcp open ipp Searching the service that corresponds to smtp, $ lsof -i:25 $ sudo systemctl ...
1
vote
1answer
47 views

systemctl not running scripts under system-sleep

systemctl hybrid-sleep or anything similar is, according to the manual, supposed to execute all scripts found in /lib/systemd/system-sleep and after that continue it's own execution. Instead it ...
1
vote
1answer
83 views

How to run a command inside a running systemd container

I have a systemd container running, and I can login into it with machinectl login <container>. How can I execute a command inside the container directly, i.e. without first logging in, executing ...
1
vote
0answers
147 views

Multiple DHCP services on Debian Jessie (systemd)

Since I want to add an IPv6 DHCP server (using ISC's dhcpd) additionally to run parallel to my IPv4 DHCP server on my Debian Jessie (systemd) box another instance of dhcpd needs to be started but this ...
0
votes
0answers
47 views

How to delete gateway from default routing table use systemd

There are two physical interfaces on my machine, both with DHCP, so my default routing table looks like this: Destination Gateway Genmask Flags Metric Ref Use Iface default ...
1
vote
1answer
95 views

How to enable ohasd.service using systemctl

RHEL 7.1 and Oracle 12c, I am not able to find what is wrong ? Please explain. [root@lrma086 grid]# systemctl enable ohasd.service The unit files have no [Install] section. They are not meant to be ...
2
votes
1answer
90 views

Where to find the logs of the services started by systemd at computer boot?

I am running a Debian unstable with systemd, at boot I have a few services which are marked as FAILED (and not OK), but the log is too fast for me to grab the name of the failed service. I wonder if ...
2
votes
1answer
167 views

Systemd weirdness: Cannot add dependency, file exists

I have a Debian armel machine running wheezy, upgraded to Debian Testing today. As you can guess from the title, systemd is weird in two ways: 1) On boot, a swath of errors "Cannot add dependency X ...
0
votes
1answer
154 views

how to configure multiple interfaces with systemd-networkd

I have three physical network interfaces one my machine, they are all connected to different subnets, the first interface is eno1 with IP 10.10.24.157/24, the second one is eno2 with IP ...
2
votes
1answer
61 views

“askfirst” getty with systemd (“press enter to activate this console”)

On a Debian Jessie system with systemd, how can I configure the terminals so that a message like Press enter to activate this console is displayed and the login prompt does not appear before hitting ...
2
votes
1answer
84 views

Run script every 15 minutes 9-4 using Systemd.timer

Is there a way to configure Systemd.timer so that it runs a script every 15 minutes Mon-Fri between 9AM and 4 PM. This is what my timer file looks like [Unit] Description=Execute every 15 minutes ...
0
votes
0answers
209 views

Why is there a systemd related error when starting X server?

I've installed Arch Linux. After a system uprgade pacman -Syu I checked my /var/log/X11/Xorg.0.log and see the following: [ 17.768] (EE) systemd-logind: failed to get session: PID 321 does not ...
0
votes
0answers
107 views

use systemd to run a script before shutdown or reboot

I want to run a few scripts for shutdown sound, logging network bandwidth usage. Irrespective of script is there anyway to run a script on shutdown or reboot using systemd? I am on Ubuntu 15.04 in ...
1
vote
0answers
175 views

Systemd unit file for daemon not working on boot

I am trying to make the transmission-daemon start on boot on my Raspberry Pi model B using systemd. I am at a point where I can stop and start the daemon using sysctl, but automatic startup on boot is ...
2
votes
0answers
71 views

Triggering Linux shutdown on power failure

I have an embedded Linux system (currently running Angstrom) with supercapacitor hardware to provide time for writes to complete and avoid corrupted filesystems when external power is removed. ...
4
votes
1answer
90 views

System does not poweroff - how to diagnose

After upgrading to debian jessie my dated desktop system no longer powers off reliably (/sbin/poweroff - via systemctl on tty1). Instead, it shuts down, pauses and reboots and only powers off if I ...
1
vote
1answer
135 views

Which processes are not needed for boot?

The xUbuntu boot takes 3m compared 1m30s Win 7 or SliTaz 20s (uncomparable) 2m Mac OS X (Hackintosh) My Laptop has a Celeron 64bit CPU 4 gigs of RAM and a old Nvidia Card from late 2009 6400 RPM hard ...
0
votes
0answers
269 views

systemd says permission denied for /bin/sh

When systemd tries to start postfix, I see: окт 11 15:19:28 fs.tld local[32063]: fatal: execl /bin/sh: Permission denied I also can't start mysql and redis-server; everything else seems fine. ...
1
vote
0answers
84 views

Random packet loss with bonded interfaces?

I'm trying to setup a LACP bond using systemd-networkd on an arch server. When I try to ping the gateway I seem to be getting intermittent package loss which lead me to believe the LACP isn't setup ...
0
votes
0answers
46 views

Power Button script runs only for the first time

I'm using Debian 8 and I'm booting my system with Linux 4.1.2 with systemd. I had a working script that does something and suspends the pc. After upgrades, the script was not working anymore. When I ...
1
vote
1answer
113 views

systemd timer OnUnitActiveSec vs OnCalendar for anacron replacement

I need to run oneshot bash script once a day (log rotation and cleaning). I saw some examples stated to use: OnCalendar=daily Persistent=true and another examples using: OnBootSec=20min ...