Home WebServer PanelDirectAdmin Changing startup services with DirectAdmin

Changing startup services with DirectAdmin

Published: Last Updated on

In this tutorial, AZDIGI will guide you through changing the startup services with DirectAdmin and the services you want to monitor with dataskq.

I. Introduction

By default, when we install DirectAdmin automatically, it will install all the basic services such as:

  • da-popb4smtp
  • directadmin
  • dovecot
  • exim
  • httpd
  • mysqld or mariadb
  • named
  • php-fpmXX
  • pure-ftpd

And sometimes there are some services that you do not want to use and want to turn off by default to free up resources or for other reasons, then this article is for you.

II. Changing startup services with DirectAdmin

To change the startup services with DirectAdmin, we will follow these 2 steps.

Step 1: SSH into your server

To install pre-release DirectAdmin, first, we need to SSH or access your VPS/server with root privileges. Or at least log in to the server with a user with sudo privileges. If you don’t know how to SSH into your VPS/Server, you can refer to the following tutorial:

After successfully SSH, we continue with step 2 to change the startup services with DirectAdmin.

tep 2: Changing startup services with DirectAdmin

From version 1.24.0 onwards, DirectAdmin 1.24.0 has a file containing applications that dataskq will monitor and allow to start according to the system if you want. To edit this file, you just need to use the following command:

AZDIGI Tutorial
vi /usr/local/directadmin/data/admin/services.status

Below is a list of services that DirectAdmin is currently monitoring on its system:

Changing startup services with DirectAdmin

If you want to disable a service from starting with the system, just switch it to OFF. If you want dataskq to stop monitoring that service, simply delete the corresponding service.

When a service is being monitored by dataskq , even if it is accidentally shut down, dataskq will attempt to restart it immediately. If a service cannot be started, you will receive Messages on the DirectAdmin interface.

You can also add a new service for dataskq to monitor by adding a new line. The following example shows the changes made before and after adding the netdata=ON line to monitor the netdata service.

image 30
Before adding a new service
Changing startup services with DirectAdmin
After adding the netdata service to the monitoring list.

When adding a new service, you can start/stop/restart it directly on the DirectAdmin > Service Monitor interface.

III. Summary

Hopefully, through this article on changing the services that start with DirectAdmin, you have learned how to limit the services that start with the system, add new services to monitor, and manage those services directly on the DirectAdmin interface.

Hope this article will be of help to you. Wishing you success!

See more useful articles about DirectAdmin at the following link:

If you need assistance, you can contact support in the ways below:

Đánh giá

Tham gia nhóm hỗ trợ Server - Hosting

Tham gia nhóm Hỗ trợ Server - Hosting & WordPress để cùng nhau hỏi đáp và hỗ trợ các vấn đề về WordPress, tối ưu máy chủ/server.

Tham gia ngay

Bài viết cùng chuyên mục

AZDIGI – Không chỉ là đơn vị hàng đầu trong lĩnh vực Web Hosting và Máy chủ, chúng tôi mong muốn mang lại những kiến thức bổ ích nhất và luôn cập nhật thường xuyên cho cộng đồng người đam mê thiết kế website, công nghệ,…

Vui lòng không sao chép nội dung nếu chưa xin phép. Designed and Developed by PenciDesign