[Spce-user] Disable Services

Alex Lutay alutay at sipwise.com
Mon Mar 9 06:38:20 EDT 2020


Hi,

The command "systemctl disable" will prevent services from starting on
boot. Keep on mind NGCP systems have configuration
framework called "ngcpcfg" it cares about boot process as well.
It means every "ngcpcfg apply" performs 'systemctl preset-all'. to have
all necessary services enabled/started on boot.

The proper and safe way to disable some services is to use config.yml,
example:

> root at spce:~# ngcpcfg set --diff /etc/ngcp-config/config.yml prosody.enable=no
> diff --git a/config.yml b/config.yml
> index 6b663d5..2170614 100644
> --- a/config.yml
> +++ b/config.yml
> @@ -1012,7 +1012,7 @@ pbx:
>    session_processor_threads: 1
>  prosody:
>    ctrl_port: '5582'
> -  enable: yes
> +  enable: no
>    limit_auth:
>      enable: yes
>      max: '5'
> root at spce:~# 

Sure, do NOT forget to apply your changes using:
> ngcpcfg apply "disable prosody"

P.S. not all serviced can be disabled through config.yml,
keep in mind disabling prosody might cause issues on domain creation
stage. You should be 100% sure about the changes you are doing here.

BTW, why do you need to disable some services?
Maybe you are looking for low performance mode?
> ngcp-toggle-performance-config --low-performance>
Have fun!

On 3/9/20 10:54 AM, Raúl Alexis Betancor Santana wrote:
> As any other service on a Debian distro powered ty systemd
> 
> systemctl disable <service>
> 
> Better you know excactly what you are doing disabling them.
> 
> ------------------------------------------------------------------------
> *From: *"Ferds Calma" <admin at voipmax.us>
> *To: *"spce-user" <spce-user at lists.sipwise.com>
> *Sent: *Monday, March 9, 2020 9:36:21 AM
> *Subject: *[Spce-user] Disable Services
> 
> How to properly disable/remove the following services without causing
> any issues?
> 
> influxdb
> influxdb-relay
> grafana-server
> telegraf
> exim4
> asterisk
> prosody
> 
>  
> 
> Thanks

-- 
Alex Lutay




More information about the Spce-user mailing list