From b8073beec2c7186d332e9fea23fde94e9ecf860c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <joerg.sachse@slub-dresden.de> Date: Thu, 26 Oct 2023 15:46:38 +0200 Subject: [PATCH] feat: stop disapp.service for maintenance by using 'Conflicts=' statement, which is much more systemd-like and resolves an issue with write access to the disapp.log when stopping the service --- .../lib/systemd/system/disapp_maintenance_begin.service.j2 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/templates/usr/local/lib/systemd/system/disapp_maintenance_begin.service.j2 b/templates/usr/local/lib/systemd/system/disapp_maintenance_begin.service.j2 index 9060c3e..d981c8d 100644 --- a/templates/usr/local/lib/systemd/system/disapp_maintenance_begin.service.j2 +++ b/templates/usr/local/lib/systemd/system/disapp_maintenance_begin.service.j2 @@ -1,14 +1,12 @@ [Unit] Description=stop DisApp for monthly maintenance at ZIH After=remote-fs.target +Conflicts=disapp.service [Service] Type=simple Restart=no -Environment="PERL5LIB=/usr/local/perl/" -ExecStart=/usr/bin/perl -I /usr/local/perl/ /usr/local/bin/disapp_rosetta.pl \ - --config-file /home/access/.disapp/disapp.cfg \ - --stop +ExecStart=true User={{ vault_disapp_user }} Group={{ vault_disapp_group }} -- GitLab