Browse code

pkg/kamailio/deb: add --atexit=no

This helps with openssl1.1 see #2912

Victor Seva authored on 11/01/2022 08:32:38
Showing 23 changed files
... ...
@@ -118,7 +118,7 @@ if [ ! -d $HOMEDIR ]; then
118 118
     chown ${USER}:${GROUP} $HOMEDIR
119 119
 fi
120 120
 
121
-OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP"
121
+OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP --atexit=no"
122 122
 
123 123
 case "$1" in
124 124
   start|debug)
... ...
@@ -15,7 +15,7 @@ EnvironmentFile=-/etc/default/kamailio.d/*
15 15
 # PIDFile requires a full absolute path
16 16
 PIDFile=/run/kamailio/kamailio.pid
17 17
 # ExecStart requires a full absolute path
18
-ExecStart=/usr/sbin/kamailio -P /run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY
18
+ExecStart=/usr/sbin/kamailio -P /run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY --atexit=no
19 19
 Restart=on-failure
20 20
 # /run/kamailio in tmpfs
21 21
 RuntimeDirectory=kamailio
... ...
@@ -118,7 +118,7 @@ if [ ! -d $HOMEDIR ]; then
118 118
     chown ${USER}:${GROUP} $HOMEDIR
119 119
 fi
120 120
 
121
-OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP"
121
+OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP --atexit=no"
122 122
 
123 123
 case "$1" in
124 124
   start|debug)
... ...
@@ -15,7 +15,7 @@ EnvironmentFile=-/etc/default/kamailio.d/*
15 15
 # PIDFile requires a full absolute path
16 16
 PIDFile=/run/kamailio/kamailio.pid
17 17
 # ExecStart requires a full absolute path
18
-ExecStart=/usr/sbin/kamailio -P /run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY
18
+ExecStart=/usr/sbin/kamailio -P /run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY --atexit=no
19 19
 Restart=on-failure
20 20
 # /run/kamailio in tmpfs
21 21
 RuntimeDirectory=kamailio
... ...
@@ -118,7 +118,7 @@ if [ ! -d $HOMEDIR ]; then
118 118
     chown ${USER}:${GROUP} $HOMEDIR
119 119
 fi
120 120
 
121
-OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP"
121
+OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP --atexit=no"
122 122
 
123 123
 case "$1" in
124 124
   start|debug)
... ...
@@ -15,7 +15,7 @@ EnvironmentFile=-/etc/default/kamailio.d/*
15 15
 # PIDFile requires a full absolute path
16 16
 PIDFile=/run/kamailio/kamailio.pid
17 17
 # ExecStart requires a full absolute path
18
-ExecStart=/usr/sbin/kamailio -P /run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY
18
+ExecStart=/usr/sbin/kamailio -P /run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY --atexit=no
19 19
 Restart=on-failure
20 20
 # /run/kamailio in tmpfs
21 21
 RuntimeDirectory=kamailio
... ...
@@ -118,7 +118,7 @@ if [ ! -d $HOMEDIR ]; then
118 118
     chown ${USER}:${GROUP} $HOMEDIR
119 119
 fi
120 120
 
121
-OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP"
121
+OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP --atexit=no"
122 122
 
123 123
 case "$1" in
124 124
   start|debug)
... ...
@@ -15,7 +15,7 @@ EnvironmentFile=-/etc/default/kamailio.d/*
15 15
 # PIDFile requires a full absolute path
16 16
 PIDFile=/run/kamailio/kamailio.pid
17 17
 # ExecStart requires a full absolute path
18
-ExecStart=/usr/sbin/kamailio -P /run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY
18
+ExecStart=/usr/sbin/kamailio -P /run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY --atexit=no
19 19
 Restart=on-failure
20 20
 # /run/kamailio in tmpfs
21 21
 RuntimeDirectory=kamailio
... ...
@@ -118,7 +118,7 @@ if [ ! -d $HOMEDIR ]; then
118 118
     chown ${USER}:${GROUP} $HOMEDIR
119 119
 fi
120 120
 
121
-OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP"
121
+OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP --atexit=no"
122 122
 
123 123
 case "$1" in
124 124
   start|debug)
... ...
@@ -15,7 +15,7 @@ EnvironmentFile=-/etc/default/kamailio.d/*
15 15
 # PIDFile requires a full absolute path
16 16
 PIDFile=/run/kamailio/kamailio.pid
17 17
 # ExecStart requires a full absolute path
18
-ExecStart=/usr/sbin/kamailio -P /run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY
18
+ExecStart=/usr/sbin/kamailio -P /run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY --atexit=no
19 19
 Restart=on-failure
20 20
 # /run/kamailio in tmpfs
21 21
 RuntimeDirectory=kamailio
... ...
@@ -118,7 +118,7 @@ if [ ! -d $HOMEDIR ]; then
118 118
     chown ${USER}:${GROUP} $HOMEDIR
119 119
 fi
120 120
 
121
-OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP"
121
+OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP --atexit=no"
122 122
 
123 123
 case "$1" in
124 124
   start|debug)
... ...
@@ -15,7 +15,7 @@ EnvironmentFile=-/etc/default/kamailio.d/*
15 15
 # PIDFile requires a full absolute path
16 16
 PIDFile=/run/kamailio/kamailio.pid
17 17
 # ExecStart requires a full absolute path
18
-ExecStart=/usr/sbin/kamailio -P /run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY
18
+ExecStart=/usr/sbin/kamailio -P /run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY --atexit=no
19 19
 Restart=on-failure
20 20
 # /run/kamailio in tmpfs
21 21
 RuntimeDirectory=kamailio
... ...
@@ -118,7 +118,7 @@ if [ ! -d $HOMEDIR ]; then
118 118
     chown ${USER}:${GROUP} $HOMEDIR
119 119
 fi
120 120
 
121
-OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP"
121
+OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP --atexit=no"
122 122
 
123 123
 case "$1" in
124 124
   start|debug)
... ...
@@ -15,7 +15,7 @@ EnvironmentFile=-/etc/default/kamailio.d/*
15 15
 # PIDFile requires a full absolute path
16 16
 PIDFile=/run/kamailio/kamailio.pid
17 17
 # ExecStart requires a full absolute path
18
-ExecStart=/usr/sbin/kamailio -P /run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY
18
+ExecStart=/usr/sbin/kamailio -P /run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY --atexit=no
19 19
 Restart=on-failure
20 20
 # /run/kamailio in tmpfs
21 21
 RuntimeDirectory=kamailio
... ...
@@ -118,7 +118,7 @@ if [ ! -d $HOMEDIR ]; then
118 118
     chown ${USER}:${GROUP} $HOMEDIR
119 119
 fi
120 120
 
121
-OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP"
121
+OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP --atexit=no"
122 122
 
123 123
 case "$1" in
124 124
   start|debug)
... ...
@@ -118,7 +118,7 @@ if [ ! -d $HOMEDIR ]; then
118 118
     chown ${USER}:${GROUP} $HOMEDIR
119 119
 fi
120 120
 
121
-OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP"
121
+OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP --atexit=no"
122 122
 
123 123
 case "$1" in
124 124
   start|debug)
... ...
@@ -15,7 +15,7 @@ EnvironmentFile=-/etc/default/kamailio.d/*
15 15
 # PIDFile requires a full absolute path
16 16
 PIDFile=/run/kamailio/kamailio.pid
17 17
 # ExecStart requires a full absolute path
18
-ExecStart=/usr/sbin/kamailio -P /run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY
18
+ExecStart=/usr/sbin/kamailio -P /run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY --atexit=no
19 19
 Restart=on-failure
20 20
 # /run/kamailio in tmpfs
21 21
 RuntimeDirectory=kamailio
... ...
@@ -118,7 +118,7 @@ if [ ! -d $HOMEDIR ]; then
118 118
     chown ${USER}:${GROUP} $HOMEDIR
119 119
 fi
120 120
 
121
-OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP"
121
+OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP --atexit=no"
122 122
 
123 123
 case "$1" in
124 124
   start|debug)
... ...
@@ -15,7 +15,7 @@ EnvironmentFile=-/etc/default/kamailio.d/*
15 15
 # PIDFile requires a full absolute path
16 16
 PIDFile=/run/kamailio/kamailio.pid
17 17
 # ExecStart requires a full absolute path
18
-ExecStart=/usr/sbin/kamailio -P /run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY
18
+ExecStart=/usr/sbin/kamailio -P /run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY --atexit=no
19 19
 Restart=on-failure
20 20
 # /run/kamailio in tmpfs
21 21
 RuntimeDirectory=kamailio
... ...
@@ -118,7 +118,7 @@ if [ ! -d $HOMEDIR ]; then
118 118
     chown ${USER}:${GROUP} $HOMEDIR
119 119
 fi
120 120
 
121
-OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP"
121
+OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP --atexit=no"
122 122
 
123 123
 case "$1" in
124 124
   start|debug)
... ...
@@ -118,7 +118,7 @@ if [ ! -d $HOMEDIR ]; then
118 118
     chown ${USER}:${GROUP} $HOMEDIR
119 119
 fi
120 120
 
121
-OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP"
121
+OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP --atexit=no"
122 122
 
123 123
 case "$1" in
124 124
   start|debug)
... ...
@@ -118,7 +118,7 @@ if [ ! -d $HOMEDIR ]; then
118 118
     chown ${USER}:${GROUP} $HOMEDIR
119 119
 fi
120 120
 
121
-OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP"
121
+OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP --atexit=no"
122 122
 
123 123
 case "$1" in
124 124
   start|debug)
... ...
@@ -15,7 +15,7 @@ EnvironmentFile=-/etc/default/kamailio.d/*
15 15
 # PIDFile requires a full absolute path
16 16
 PIDFile=/run/kamailio/kamailio.pid
17 17
 # ExecStart requires a full absolute path
18
-ExecStart=/usr/sbin/kamailio -P /run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY
18
+ExecStart=/usr/sbin/kamailio -P /run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY --atexit=no
19 19
 Restart=on-failure
20 20
 # /run/kamailio in tmpfs
21 21
 RuntimeDirectory=kamailio