[Spce-user] Disable Services
Ferds Calma
admin at voipmax.us
Mon Mar 9 06:50:33 EDT 2020
Hi Alex and Raúl,
Thank you for your reply.
I'm running a multiple high CPS sipwise instances with our custom billing. I'm jus trying to disable any services that are not being used or necessary.
Thanks again.
-----Original Message-----
From: Spce-user <spce-user-bounces at lists.sipwise.com> On Behalf Of Alex Lutay
Sent: Monday, March 9, 2020 6:38 AM
Cc: spce-user <spce-user at lists.sipwise.com>
Subject: Re: [Spce-user] Disable Services
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
--
Spce-user mailing list
Spce-user at lists.sipwise.com
http://lists.sipwise.com/mailman/listinfo/spce-user_lists.sipwise.com
More information about the Spce-user
mailing list