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
7
votes
3 answers

systemd-journald Doesn't start at all

After deleting my /var/log/journal by accident, I am unable to recover from the consequences. systemd-journald keeps failing over and over again every time I try to start it. when I run: $ journalctl --verify PASS:…
lyoko the
  • 241
  • 1
  • 2
  • 6
7
votes
2 answers

How do you configure multiple systemd services to use one timer?

I've noticed some significant variation in approach in some systemd documentation and how-to documents concerning how to configure one or more services to use the same timer. As far as I have been able to piece together (though I may be wrong) this…
SeligkeitIstInGott
  • 179
  • 2
  • 5
  • 19
7
votes
4 answers

mdadm software RAID isn't assembled at boot during initramfs stage

First, I prefer to mention I've found and read this. I'm running Debian Jessie with a standard 3.16 kernel. I've manually defined a RAID1 array. But it is not assembled automatically at boot time. And thus, systemd falls back to some degraded shell…
Sun Wukong
  • 69
  • 1
  • 1
  • 4
7
votes
2 answers

systemd user service doesn't autorun on user login

I have Debian Jessie and connect to it by ssh. I want to autostart shell command on user login by systemd. I've create a simple systemd service ~/.config/systemd/user/foo.service witch contains: [Unit] Description=Systemd autostart…
vdshb
  • 171
  • 1
  • 4
7
votes
1 answer

How can I output logs to a file from the content of a service with systemd

Well, I have a service configured with systemctl. This is the config file: [Unit] Description=The description of the service (: After=network.target [Service] ExecStartPre=/bin/echo 'Starting Service' >>…
robe007
  • 223
  • 1
  • 3
  • 9
7
votes
1 answer

Why is Debian Jessie systemd reloading my Apache server every morning?

After upgrading a web server from Debian Wheezy to Debian Jessie, the following log entries appear in the system log every morning. The times vary somewhat, but it seems to always happen at approximately the same time (plus/minus maybe 10-15 minutes…
user
  • 4,335
  • 4
  • 34
  • 71
7
votes
1 answer

start on vagrant-mounted (upstart) equivalent in systemd

I have a Vagrant box running Ubuntu 15.04, which has an upstart script that starts a service when the system boots. It has a start on vagrant-mounted stanza because the service requires that the /vagrant directory be mounted by Vagrant. I am now…
TJ Mazeika
  • 173
  • 4
7
votes
1 answer

How to group / compose systemd services?

I have three systemd services (Docker containers, but that is not important). All three of these services has to be running for the application to be fully functional. In order to simplify procedures for the ops team I've created a forth systemd…
Kimble
  • 183
  • 1
  • 6
7
votes
1 answer

Is it better to use the systemd service unit's Restart & RestartSec, or use a systemd timer unit?

I have a couple of in-house automated scripts running at periodic intervals. One is every five minutes, the other is every minute. They don't really need to be ran on-the-dot; e.g. I don't care if they run at 12:00, 12:05, etc. or at 12:03, 12:08,…
Carl Bennett
  • 783
  • 3
  • 7
  • 14
7
votes
3 answers

How to set umask for php-fpm in Fedora

I cannot find where to set umask (to set proper permissions to files created by php scripts) in Fedora 19. (specifically, I want new files to have the permissions 664)
leonbloy
  • 2,118
  • 17
  • 23
7
votes
1 answer

How do you automate enabling a service on a debian filesystem without booting into it?

I want to have a custom service that I've placed into /lib/systemd/system start at boot, but th eonly way I know how at the moment is to run systemctl enable myservice.service but I would like to be able to do this without booting into the actual…
ngart
  • 173
  • 1
  • 4
7
votes
1 answer

Is there a way to control two instantiated systemd services as a single unit?

I've got a couple python web services I'm trying to run on a Fedora 15 box. They're being run by paster, and the only difference in starting them is the config file they read. This seems like a good fit for systemd's instantiated services, but I'd…
rascalking
  • 233
  • 3
  • 6
7
votes
2 answers

How to restart service after some time?

We have multiple systems that suffer from a firmware bug. The vendor is aware of the problem and will fix the firmware bug. Until then we have to live with a workaround: restart the relevant service some time after bootup. There are mechanisms in…
uli42
  • 305
  • 1
  • 4
  • 9
7
votes
1 answer

Systemd: how to start service after another service started

I have these two services, one is Google start up script service and second one is redis service, I want to start redis service once the startup script service is started and done, I have these following systemd config but my redis services won't…
Jack
  • 181
  • 1
  • 1
  • 4
6
votes
0 answers

journald memory usage on CentOS 7

I have an AWS EC2 instance running a CentOS 7.7.1908 (systemd 219) with a server application. The server logs quite a lot of information to the system logs (using syslog). I have recently enabled persistent storage of the system logs using this…
MikaDo-
  • 61
  • 1
  • 3