asterisk: send SIGHUP on reload
authorAndre Heider <a.heider@gmail.com>
Thu, 4 Nov 2021 07:15:50 +0000 (08:15 +0100)
committerSebastian Kemper <sebastian_ml@gmx.net>
Sun, 19 Dec 2021 11:43:35 +0000 (12:43 +0100)
asterisk reloads its config upon SIGHUP, use it.

Signed-off-by: Andre Heider <a.heider@gmail.com>
net/asterisk/files/asterisk.init

index 0e267e7144225345be7760a815ed6abbd9267ab9..8ebfa50a427f0228d727a4be70c14221105dfc81 100644 (file)
@@ -61,3 +61,7 @@ start_service() {
   procd_close_instance
 
 }
+
+reload_service() {
+  procd_send_signal $NAME
+}