TT#70475 systemd: remove separate kamailio config check on start

Kamailio always checks configs on start and will NOT start
of configs are NOT OK and/or damaged.

The old kamailio SysV init script also had such check
to prevent kamailio _stop_ in case if configs are not OK.
It is not the case for systemd unit file anyway.

There is no reason to check configs and then start kamailio,
it is just wasting of time (each check 1-2 seconds) on Jenkins VMs.

Change-Id: Ic0d3d8efa0ad2a3fb3f9ea5e13fd1204d95f584f
changes/38/35138/2
Alexander Lutay 7 years ago
parent bafd63c656
commit 3811fc2494

@ -23,8 +23,6 @@ Environment='CFGFILE=/etc/kamailio/lb/kamailio.cfg'
Environment='SHM_MEMORY=64'
# Amount of private memory for each Kamailio process (in MiB)
Environment='PKG_MEMORY=16'
# Check if config OK before starting
ExecStartPre=/usr/sbin/kamailio -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY -c
# -DD means to not daemonise
ExecStart=/usr/sbin/kamailio -P /run/kamailio/kamailio.lb.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY -DD
Restart=on-abort

@ -23,8 +23,6 @@ Environment='CFGFILE=/etc/kamailio/proxy/kamailio.cfg'
Environment='SHM_MEMORY=125'
# Amount of private memory for each Kamailio process (in MiB)
Environment='PKG_MEMORY=32'
# Check if config OK before starting
ExecStartPre=/usr/sbin/kamailio -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY -c
# -DD means to not daemonise
ExecStart=/usr/sbin/kamailio -P /run/kamailio/kamailio.proxy.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY -DD
Restart=on-abort

Loading…
Cancel
Save