title: How to Disable Services
created at: Wed Nov 20 2024 09:53:25 GMT+0000 (Coordinated Universal Time)
updated at: Sat Feb 08 2025 14:22:38 GMT+0000 (Coordinated Universal Time)
---
# How to Disable Services
# Overview
This document describes how to disable a service.
The `/usr/local/cpanel/scripts/maintenance` script runs during the [nightly cPanel & WHM update process](https://docs.cpanel.net/whm/scripts/the-upcp-script) . The script provides security updates and automatically restarts services. However, automatic restarts may cause essential services to lose connection to the server. If these services lose connection to the server, that server may become inaccessible.
Disabled services reside in the `/var/cpanel/disabled` directory.
# Disable Services
To disable a service, log in to your server’s command line as the `root` user and add one of the following touch files to the `/var/cpanel/disabled` directory:
| File | Description |
| ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `secureit` | Disables the [`/usr/local/cpanel//scripts/secureit`](https://docs.cpanel.net/whm/scripts/the-secureit-script) script, which secures permissions on your server. |
| `securetmp` | Disables the [`securetmp`](https://docs.cpanel.net/knowledge-base/security/tips-to-make-your-server-more-secure/#harden-your-tmp-partition) service, which secures your `/tmp` partition. |
| `terminal-colors` | Disables the color output in WHM’s [*Terminal*](https://docs.cpanel.net/whm/server-configuration/terminal-in-whm) interface (*WHM » Home » Server Configuration » Terminal*). |
| `cloudlinux` | Prevents CloudLinux’s installation on the server. |
| `auto-restart-services` | Disables any services that the system automatically restarts. |