Questions tagged [systemd]

systemd is a modern replacement for the traditional Linux init. Its main features include the ability to express dependencies between services and aggressive parallelization of service startup.

systemd, created by Lennart Poettering and Kay Sievers, is a modern replacement for the traditional Linux init, whether System-V or BSD-style initscripts. Its main features include the ability to express dependencies between services and aggressive parallelization of service startup.

1471 questions
12
votes
1 answer

How to use systemd-firstboot.service?

I'm making an image of Debian Jessie. On boot the system has no /etc/machine-id file. This causes some problems with the journald that doesn't start. I've found that in the systemd repo: # This file is part of systemd. # # systemd is free…
Velkan
  • 344
  • 3
  • 19
12
votes
5 answers

Correctly setting the hostname - Fedora 20 on Amazon EC2

Context I have a Fedora 20 cloud image running on Amazon EC2 (henceforth called the "instance"). And I have some uncertainty about persistently setting its hostname. Goal In this case, let's say I want to set the instance's hostname to…
David Tonhofer
  • 960
  • 1
  • 10
  • 31
11
votes
1 answer

Increase disk detection timeout at boot with Linux/Systemd

I have a machine with a lot of disks, and an extra SAS controller in HBA mode. This seems to cause Linux to think for at least 8-10 seconds once in initramfs before the disks actually appear. The timeout for disk detection is 10 seconds. This…
Alex
  • 389
  • 9
  • 23
11
votes
4 answers

systemctl start trafficserver wait for start

I have a script that installs and sets up traffic server: yum install -y trafficserver systemctl start trafficserver traffic_line -s proxy.config.url_remap.remap_required -v 0 traffic_line -s proxy.config.reverse_proxy.enabled -v 0 The problem is,…
BenMorel
  • 4,507
  • 10
  • 57
  • 85
11
votes
1 answer

Systemd: Supervising process XXXX which is not our child. We'll most likely not notice when it exits

I've created a custom service file which looks like this: cat /etc/systemd/system/aaa.service [Unit] Description=aaa main application After=syslog.target…
ktopaz
  • 111
  • 1
  • 1
  • 4
11
votes
3 answers

systemd: how to selectively disable wpa_supplicant for a specific WLAN interface?

On a Linux system with systemd and networkd I need to operate a WLAN access point on one WLAN interface, while operating further (hotplug) WLAN interfaces in normal station ("client") mode. As it turns out, wpa_supplicant.service goes live on all my…
TheDiveO
  • 561
  • 1
  • 6
  • 17
11
votes
1 answer

What is the systemd-networkd equivalent of post-up? (dynamic bridge MAC configuration)

In Linux distributions that use /etc/network/interfaces (such as Debian) I could get a (kernel) bridge to use the MAC48 address of one of its static bridge slave interfaces, such as a built in wlan0, using post-up, as in: post-up ip link set br0…
TheDiveO
  • 561
  • 1
  • 6
  • 17
11
votes
1 answer

foo.service holdoff time over, scheduling restart --> Where can I change the holdoff time

I see this message in my logs: systemd[1]: foo.service holdoff time over, scheduling restart. I could not find the term "holdoff time" in here: https://www.freedesktop.org/software/systemd/man/systemd.service.html Where can I change the holdoff…
guettli
  • 3,591
  • 17
  • 72
  • 123
11
votes
2 answers

varnish daemon not listening on configured port

I'm trying to install varnish on ubuntu 16.04, I read several article none are working. From what I read, since ubuntu 15.04, the way of configuring varnish has changed (because of systemd). Now on I've got a real mess wich don't work :…
Bruno
  • 213
  • 1
  • 2
  • 7
11
votes
1 answer

Systemd : Run a Python Script At Startup (virtualenv)

I have a python script that I normally run it with this command: (environment) python run.py I want to run this script at start. (I'm using ubuntu) Here is my service: [Unit] Description=My Script…
Jasmine
  • 243
  • 1
  • 3
  • 9
11
votes
4 answers

How can you distinguish between a crash and a reboot on RHEL7?

Is there a way to determine whether a RHEL7 server was rebooted via systemctl (or reboot / shutdown aliases), or whether the server crashed? Pre-systemd this was fairly easy to determine with last -x runlevel, but with RHEL7 it's not so clear.
kwb
  • 173
  • 1
  • 8
11
votes
3 answers

How to limit memory for a service managed by systemd

I am aware of ulimit and I know how to limit memory for a process that I explicitly start, or start using a script. But in this case I have a service that is managed and launched by systemd. How can I limit its max memory and have it killed (or even…
Petr
  • 324
  • 2
  • 4
  • 10
11
votes
2 answers

journalctl - stop following without exiting pager

If I do: journalctl -u my-service then a Shift-F to follow while paging, how do I (interrupt to abort) without exiting the pager? With less, I typically just ^C, but if I do that in journalctl, it exits the entire pager.
MikeKusold
  • 231
  • 2
  • 5
11
votes
4 answers

Can I make systemd show service status after starting or stopping a service?

I am trying to get systemd to do what init.d scripts would do, showing the status of a service automatically after being manually given a command to start or stop. Is this somehow possible? systemd unfortunately pops right back since it runs in the…
ck_
  • 459
  • 1
  • 7
  • 20
11
votes
2 answers

Make systemd user service depend on system target

I have a user service in ~/.config/systemd/user/example.service like so: [Unit] Description=Example service After=network.target [Service] ExecStart=/bin/bash -c 'host google.com > /var/tmp/example' [Install] WantedBy=default.target The actual…
dflemstr
  • 573
  • 1
  • 5
  • 8