Package: prosody
Version: 0.11.7-2
Severity: important
Tags: patch

Hi!

The invoke-rc.d interface is intended to be used only from maintainer
scripts, anything else meant to be executed during the normal operation
of the system needs one of the other interfaces to services, such as
service(8), as the boot process will definitely not honor any
invoke-rc.d policy anyway.

Attached a patch fixing this.

Thanks,
Guillem
From 626b7965b70c94cb487a6f6d640f2f8f2c7b1d46 Mon Sep 17 00:00:00 2001
From: Guillem Jover <gjo...@sipwise.com>
Date: Mon, 18 Jan 2021 20:02:23 +0100
Subject: [PATCH] Do not use invoke-rc.d in logrotate script

The invoke-rc.d interface is intended to be used only from maintainer
script, anything else meant to be executed during the normal operation
of the system needs one of the other interfaces to services, such as
service(8), as the boot process will definitely not honor any
invoke-rc.d policy anyway.
---
 debian/prosody.logrotate | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/prosody.logrotate b/debian/prosody.logrotate
index 6a71283..5407a18 100644
--- a/debian/prosody.logrotate
+++ b/debian/prosody.logrotate
@@ -5,7 +5,7 @@
 	delaycompress
 	create 640 prosody adm
 	postrotate
-		[ ! -e /run/prosody/prosody.pid ] || /usr/sbin/invoke-rc.d prosody reload > /dev/null
+		[ ! -e /run/prosody/prosody.pid ] || service prosody reload > /dev/null
 	endscript
 	sharedscripts
 	missingok
-- 
2.30.0

Reply via email to