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

How to deal with an ExecStart-script, that backgrounds the actual task and exits?

I'm trying to create a systemd-service for a vendor-provided shell-script, which exits after launching the actual service (a Java-program). I don't want to put the program itself into ExecStart, because the script does a lot of things first (setting…
Mikhail T.
  • 2,338
  • 1
  • 24
  • 55
0
votes
1 answer

Using find -exec in systemd ExecStartPre

I think it's fairly obvious what I'm trying to do here # Rename Log File ExecStartPre=/bin/find /data/db/log/*.log -type f -exec mv {} {}.`date +"%Y%m%d-%H%M"` \; # gzip past log files (is post becuase might take a long time) ExecStartPost=/bin/find…
Loz
  • 1
0
votes
1 answer

Systemd timers will not fire

I have a very weird issue on Debian Buster. I've enabled unattended-upgrades on the server as this is a very bare bones server and it should just update automatically. However, it seems that the apt timers for this never start. When I check all…
Tim Stoop
  • 588
  • 5
  • 20
0
votes
1 answer

Create init.d Apache service for multiple instances on debian

I am trying to install a second instance of apache on debian. I used the multiple instance script. during the installation it says: root@nextcloudpi:/usr/share/doc/apache2/examples# sudo sh setup-instance suitecrm2 Setting up /etc/apache2-suitecrm2…
Stephane
  • 43
  • 3
0
votes
0 answers

systemd: switch between targets without restarting services from third target

i have two custom targets A and…
Martze
  • 101
  • 1
  • 4
0
votes
0 answers

How to have systemctl track the spawned process of a script?

As a followup to one of my previous posts, I'm using systemd to run a GMod server on Ubuntu 18.04. My systemd script looks like this: [Unit] Description=Gmod Server After=network.target [Service] User=rooday # the user I normally run run_gmod.sh…
ROODAY
  • 215
  • 2
  • 5
0
votes
0 answers

Make journalctl keep all logs forever (SystemMaxUse = unlimited)

How do I configure journald so that it never, ever, ever deletes my logs. Yes, what I want to do is tell journald to keep writing until the disk (read: /var partition's filesystem) is full. No, I don't want it to keep storing to memory until the RAM…
Michael Altfield
  • 739
  • 2
  • 8
  • 23
0
votes
1 answer

What is the perfect tomcat virtualization config file?

I am managing tomcat server behind the nginx. In tomcat multiple webapps are there. My OS is Ubuntu 18.04LTS on Digital Ocean. Everything working fine, but suddenly I have one issue popped up. Tomcat is running fine, but webapps are not working !…
0
votes
0 answers

systemd-resolved responds with NOERROR despite DNS server responding with NXDOMAIN

I'm using Fedora 33 and systemd 246. To provide a little background, I'm having trouble with multicast DNS resolution through nss-mdns and have determined the unicast SOA heuristic to be the problem. Then I've noticed that systemd-resolved responds…
Jan Wrona
  • 1
  • 1
0
votes
1 answer

Systemd python script won't log (buffer cause)?

Although the problem exposed here seems very similar, none of the solutions provided work. Context : Raspberry Pi Zero W, Raspbian Lite (2020-08-20) I want to register a python3 script as a service, to run in background I wanted to make it go with…
nbonniot
  • 127
  • 7
0
votes
0 answers

Setting UMask in systemd override.conf is ignored

I'm using amavisd on fedora33 and trying to change the file permissions on the socket it creates so nagios and nrpe can read the file in the amavis group. The file permissions currently are as such: # ls -l /run/amavisd/amavisd.sock srwxr-x--- 1…
Alex Regan
  • 143
  • 6
0
votes
1 answer

systemd tmpfs shadow directory -- copy to/from ram and back when (u)mount-ing

I'd like to keep some directories (e.g. /var/cache/apt, /var/lib/apt/lists, user browser caches or even Mozilla profiles) in RAM, but still backed by disk. The files should be copied to RAM when mounting and copied back to disk when umounting. Short…
usretc
  • 101
  • 1
0
votes
1 answer

Cron jobs stopped working

I have an issue almost identical to what is here: Cron jobs not working anymore However I can't seem to find any memory-related problems as per the accepted answer, so I thought I should open a new question instead of answering on that…
Gábor Major
  • 113
  • 4
0
votes
3 answers

Start systemd service after ansible playbook execution is complete

We are running ansible playbook on every boot and it does bunch of checks and configuration tasks on the host. We also have few systemd services that needs to run on that host. How do I make those services dependent on the ansible playbook…
ram
  • 13
  • 1
  • 6
0
votes
1 answer

SVN server start at boot

I'm configuring Subversion and want it to start at boot. Used following command series: sudo mkdir /var/svn sudo useradd -r -s /bin/false svn sudo mkdir /etc/svn sudo cp /home/zipo/svnserve /etc/svn/svnserve sudo chown root:root…
Index
  • 147
  • 5