Systemd یک سیستم اولیه جدید و مدیر سیستم است که در کلیه توزیع‌های اصلی لینوکس از طریق سیستم‌های اولیه SysV به دلیل وجود مشکلات زیاد و نیاز به بهبود در سیستم‌های sysVinit پیاده سازی شده است. تمام سرویس‌ها در /etc/init.d/ دردسترس هستند.

بنابراین برای راه‌اندازی، توقف، راه‌اندازی مجدد، فعال‌سازی، بارگیری مجدد و مشاهده وضعیت سرویس می‌توانید از دستورالعمل‌های زیر استفاده نمایید. دقت کنید که برای اجرای دستورات زیر به root و یا مجوز sudo نیاز دارید.

 

 

راه‌اندازی سرویس cPanel

برای راه‌اندازی سرویس cPanel در لینوکس از دستورات زیر استفاده کنید.

# service cpanel start
or
# /etc/init.d/cpanel start
Starting cPanel services: Waiting for cpsrvd,cpsrvd-ssl,whostmgrd,cpaneld,webmaild to shutdown ... not running.
Starting cpsrvd.
                                                           [  OK  ]
Starting cPanel brute force detector services:             [  OK  ]
Starting cPanel dav services:                              [  OK  ]
Starting pop3 services: Waiting for (?^:^cppop(?:-ssl)?$) to shutdown ... not running.
                                                           [  OK  ]
Starting cPanel Chat services:

Starting cPanel ssl services: Waiting for (?^:^(?:stunnel$|stunnel-[0-9\.]+local)) to shutdown ... not running.
Using Native SSL support (stunnel not needed)
                                                           [  OK  ]
Starting cPanel Queue services:                            [  OK  ]
Starting tailwatchd:

[Thu Dec 19 07:23:59 2013] Starting /usr/local/cpanel/libexec/tailwatch/tailwatchd daemon
Log is at /usr/local/cpanel/logs/tailwatchd_log
                                                           [  OK  ]
Starting cPanel Log services: ==> cPanel Log Daemon version 26.0
                                                           [  OK  ]
Starting mailman services:                                 [  OK  ]

 

متوقف کردن سرویس cPanel

برای متوقف کردن سرور cPanel در لینوکس از دستورات زیر استفاده نمایید.

# service cpanel stop
or
# /etc/init.d/cpanel stop
Stopping tailwatchd:  [22178] [2013-12-19 07:23:44 +0000] [main] Current process '11636' stopped
                                                           [  OK  ]
Stopping cPanel services:  Waiting for cpsrvd,cpsrvd-ssl,whostmgrd,cpaneld,webmaild to shutdown ..... terminated.
                                                           [  OK  ]
Stopping cPanel dav services:  [Thu Dec 19 07:23:45 2013] Current process '11658' stopped
Waiting for cpdavd,cpdavd-ssl to shutdown ... not running.
                                                           [  OK  ]
Stopping cPanel queue services:  Graceful shutdown of cPanel TaskQueue Daemon requested. complete
                                                           [  OK  ]
Stopping cPanel brute force detector services:  Waiting for cphulkd.pl,cPhulkd,cphulkd to shutdown ... not running.
                                                           [  OK  ]
Stopping pop3 services:  Waiting for (?^:^cppop(?:-ssl)?$) to shutdown ... not running.
                                                           [  OK  ]
Stopping cPanel log services:
Stopping cPanel Chat services:                             [FAILED]

Stopping cPanel ssl services:  Waiting for (?^:^(?:stunnel$|stunnel-[0-9\.]+local)) to shutdown ... not running.
                                                           [  OK  ]
Stopping mailman services:  Shutting down Mailman's master qrunner
PID unreadable in: /usr/local/cpanel/3rdparty/mailman/data/master-qrunner.pid
[Errno 2] No such file or directory: '/usr/local/cpanel/3rdparty/mailman/data/master-qrunner.pid'
Is qrunner even running?
mailmanctl: no process killed
                                                           [FAILED]

 

راه‌اندازی مجدد سرویس cPanel

برای راه‌اندازی مجدد سرور cPanel در لینوکس از دستورات زیر استفاده کنید.

# service cpanel restart
or
# /etc/init.d/cpanel restart
Stopping tailwatchd:  [22350] [2013-12-19 07:24:18 +0000] [main] Current process '22325' stopped
                                                           [  OK  ]
Stopping cPanel services:  Waiting for cpsrvd,cpsrvd-ssl,whostmgrd,cpaneld,webmaild to shutdown ..... terminated.
                                                           [  OK  ]
Stopping cPanel dav services:  [Thu Dec 19 07:24:19 2013] Current process '22240' stopped
Waiting for cpdavd,cpdavd-ssl to shutdown ... not running.
                                                           [  OK  ]
Stopping cPanel queue services:  Graceful shutdown of cPanel TaskQueue Daemon requested. complete
                                                           [  OK  ]
Stopping cPanel brute force detector services:  Waiting for cphulkd.pl,cPhulkd,cphulkd to shutdown ... not running.
                                                           [  OK  ]
Stopping pop3 services:  Waiting for (?^:^cppop(?:-ssl)?$) to shutdown ... not running.
                                                           [  OK  ]
Stopping cPanel log services:
Stopping cPanel Chat services:                             [FAILED]

Stopping cPanel ssl services:  Waiting for (?^:^(?:stunnel$|stunnel-[0-9\.]+local)) to shutdown ... not running.
                                                           [  OK  ]
Stopping mailman services:  Shutting down Mailman's master qrunner
PID unreadable in: /usr/local/cpanel/3rdparty/mailman/data/master-qrunner.pid
[Errno 2] No such file or directory: '/usr/local/cpanel/3rdparty/mailman/data/master-qrunner.pid'
Is qrunner even running?
mailmanctl: no process killed
                                                           [FAILED]
Starting cPanel services: Waiting for cpsrvd,cpsrvd-ssl,whostmgrd,cpaneld,webmaild to shutdown ... not running.
Starting cpsrvd.
                                                           [  OK  ]
Starting cPanel brute force detector services:             [  OK  ]
Starting cPanel dav services:                              [  OK  ]
Starting pop3 services: Waiting for (?^:^cppop(?:-ssl)?$) to shutdown ... not running.
                                                           [  OK  ]
Starting cPanel Chat services:

Starting cPanel ssl services: Waiting for (?^:^(?:stunnel$|stunnel-[0-9\.]+local)) to shutdown ... not running.
Using Native SSL support (stunnel not needed)
                                                           [  OK  ]
Starting cPanel Queue services:                            [  OK  ]
Starting tailwatchd:

[Thu Dec 19 07:24:23 2013] Starting /usr/local/cpanel/libexec/tailwatch/tailwatchd daemon
Log is at /usr/local/cpanel/logs/tailwatchd_log
                                                           [  OK  ]
Starting cPanel Log services: ==> cPanel Log Daemon version 26.0
                                                           [  OK  ]
Starting mailman services:                                 [  OK  ]

 

مشاهده وضعیت سرویس cPanel

برای مشاهده وضعیت سرور cPanel در لینوکس از دستورات زیر استفاده نمایید.

# service cpanel status
or
# /etc/init.d/cpanel status
cpsrvd (pid  22402) is running...
entropychat is stopped
stunnel is stopped
qrunner is stopped

 

 

منبع:

2daygeek