[3/3] cups: Reload dbus to load/unload policy

Message ID 20210721144158.25747-3-michael.tremer@ipfire.org
State Accepted
Commit 4cdd12789fa1868efc94eb5b70bc6562dc072e22
Headers
Series [1/3] dbus: Add reload to initscript |

Commit Message

Michael Tremer July 21, 2021, 2:41 p.m. UTC
  Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 src/paks/cups/install.sh   | 1 +
 src/paks/cups/uninstall.sh | 1 +
 2 files changed, 2 insertions(+)
  

Comments

Adolf Belka July 22, 2021, 7:18 p.m. UTC | #1
Hi Michael,

Doesn't this patch also require the pak_ver to be incremented as was done for the avahi addon?

Regards,

Adolf.

On 21/07/2021 16:41, Michael Tremer wrote:
> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
> ---
>   src/paks/cups/install.sh   | 1 +
>   src/paks/cups/uninstall.sh | 1 +
>   2 files changed, 2 insertions(+)
>
> diff --git a/src/paks/cups/install.sh b/src/paks/cups/install.sh
> index 38715f9e8..b3f0f1368 100644
> --- a/src/paks/cups/install.sh
> +++ b/src/paks/cups/install.sh
> @@ -23,6 +23,7 @@
>   #
>   . /opt/pakfire/lib/functions.sh
>   extract_files
> +/etc/init.d/messagebus reload
>   start_service --delay 300 --background ${NAME}
>   ln -svf ../init.d/cups /etc/rc.d/rc0.d/K00cups
>   ln -svf ../init.d/cups /etc/rc.d/rc3.d/S25cups
> diff --git a/src/paks/cups/uninstall.sh b/src/paks/cups/uninstall.sh
> index 744c2062d..01b13de76 100644
> --- a/src/paks/cups/uninstall.sh
> +++ b/src/paks/cups/uninstall.sh
> @@ -25,3 +25,4 @@
>   stop_service ${NAME}
>   remove_files
>   rm -rf /etc/rc.d/rc*.d/*cups
> +/etc/init.d/messagebus reload
  
Michael Tremer July 28, 2021, 11:09 a.m. UTC | #2
Yes it does, I forgot :( Thank you for letting me know.

Since this is merged, I will send another patch.

-Michael

> On 22 Jul 2021, at 20:18, Adolf Belka <adolf.belka@ipfire.org> wrote:
> 
> Hi Michael,
> 
> Doesn't this patch also require the pak_ver to be incremented as was done for the avahi addon?
> 
> Regards,
> 
> Adolf.
> 
> On 21/07/2021 16:41, Michael Tremer wrote:
>> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
>> ---
>>  src/paks/cups/install.sh   | 1 +
>>  src/paks/cups/uninstall.sh | 1 +
>>  2 files changed, 2 insertions(+)
>> 
>> diff --git a/src/paks/cups/install.sh b/src/paks/cups/install.sh
>> index 38715f9e8..b3f0f1368 100644
>> --- a/src/paks/cups/install.sh
>> +++ b/src/paks/cups/install.sh
>> @@ -23,6 +23,7 @@
>>  #
>>  . /opt/pakfire/lib/functions.sh
>>  extract_files
>> +/etc/init.d/messagebus reload
>>  start_service --delay 300 --background ${NAME}
>>  ln -svf ../init.d/cups /etc/rc.d/rc0.d/K00cups
>>  ln -svf ../init.d/cups /etc/rc.d/rc3.d/S25cups
>> diff --git a/src/paks/cups/uninstall.sh b/src/paks/cups/uninstall.sh
>> index 744c2062d..01b13de76 100644
>> --- a/src/paks/cups/uninstall.sh
>> +++ b/src/paks/cups/uninstall.sh
>> @@ -25,3 +25,4 @@
>>  stop_service ${NAME}
>>  remove_files
>>  rm -rf /etc/rc.d/rc*.d/*cups
>> +/etc/init.d/messagebus reload
  

Patch

diff --git a/src/paks/cups/install.sh b/src/paks/cups/install.sh
index 38715f9e8..b3f0f1368 100644
--- a/src/paks/cups/install.sh
+++ b/src/paks/cups/install.sh
@@ -23,6 +23,7 @@ 
 #
 . /opt/pakfire/lib/functions.sh
 extract_files
+/etc/init.d/messagebus reload
 start_service --delay 300 --background ${NAME}
 ln -svf ../init.d/cups /etc/rc.d/rc0.d/K00cups
 ln -svf ../init.d/cups /etc/rc.d/rc3.d/S25cups
diff --git a/src/paks/cups/uninstall.sh b/src/paks/cups/uninstall.sh
index 744c2062d..01b13de76 100644
--- a/src/paks/cups/uninstall.sh
+++ b/src/paks/cups/uninstall.sh
@@ -25,3 +25,4 @@ 
 stop_service ${NAME}
 remove_files
 rm -rf /etc/rc.d/rc*.d/*cups
+/etc/init.d/messagebus reload