Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2021-07-27, 14:52:33

Author Topic: sh /script/ problem  (Read 3436 times)

0 Members and 1 Guest are viewing this topic.

Offline KloxoLittleFish

  • Valuable Member
  • *
  • Posts: 147
  • Karma: +0/-0
    • View Profile
sh /script/ problem
« on: 2016-06-02, 09:45:17 »
 I dont know why but  "/script/restart-all" and "/script/restart-web" ..."dns" (etc) do not work properly.


It do stop services but it don't start them again  :o


sh /script/restart-all
Quote
Desactivando el generador de registros del sistema:        [  OK  ]
Deteniendo named: .                                        [  OK  ]
Stopping php-fpm (PHP Used):                               [  OK  ]
Parando httpd:                                             [  OK  ]
Stopping qmail-toaster: svscan qmail logging.
qmail-send: no process killed
Parando pure-ftpd:                                         [  OK  ]
Stopping kloxo-phpcgi:                                     [  OK  ]
Stopping kloxo-hiawatha:                                   [  OK  ]

- For help, type '/script/restart-all [--help|-h]'


sh /script/sysinfo
Quote
A. Control Panel:
   - Kloxo-MR: 7.0.0.b-2016060105
   - Web: hiawatha-10.2.0-f.7.mr.el6.x86_64
   - PHP: php54s-5.4.40-1.ius.el6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.8 (Final) x86_64
   - Hostname: mydomain.mydomain.com
C. Services:
   1. MySQL: MariaDB-server-10.0.25-1.el6.x86_64
   2. PHP:
      - Branch: php54-cli-5.4.45-1.ius.el6.x86_64
      - Multiple:
        * php52m-5.2.17-102.mr.el6
        * php53m-5.3.29-1.ius.el6
        * php54m-5.4.40-1.ius.el6
        * php55m-5.5.24-1.ius.el6
        * php56m-5.6.8-1.ius.el6
      - Used: --Use PHP Branch--
   3. Web Used: apache
     - Hiawatha: --unused--
     - Lighttpd: --uninstalled--
     - Nginx: --uninstalled--
     - Httpd: httpd-2.2.31-1.mr.el6.x86_64
       - PHP Type: php-fpm_event
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: bind
     - Bind: bind-9.9.7-1.mr.el6.x86_64
     - DJBDns: --uninstalled--
     - NSD: --uninstalled--
     - PowerDNS: --uninstalled--
     - Yadifa: --uninstalled--
   6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.19.mr.el6.x86_64
      - spam: spamassassin

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: sh /script/ problem
« Reply #1 on: 2016-06-02, 10:10:11 »
Try 'sh /script/restart-all -y' (with '-y') instead 'sh /script/restart-all'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline KloxoLittleFish

  • Valuable Member
  • *
  • Posts: 147
  • Karma: +0/-0
    • View Profile
Re: sh /script/ problem
« Reply #2 on: 2016-06-02, 11:56:27 »
it is the same  :(

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: sh /script/ problem
« Reply #3 on: 2016-06-02, 12:09:35 »
I am not sure using different language may trouble with restart process or not.

code inside /script/restart.inc are 'grep' certain words like ':on', 'dead but' and '(pid'. I don't know this words will be translate to other language or not.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline KloxoLittleFish

  • Valuable Member
  • *
  • Posts: 147
  • Karma: +0/-0
    • View Profile
Re: sh /script/ problem
« Reply #4 on: 2016-06-02, 16:31:28 »
it is strange, in webmin console "it works", but in PuTTY doesnt work.
In crontab doesn't work.


Some "scripts" work in webmin:

Quote
> sh /script/restart-web

*** Process for PHP-FPM service ***
  - Process: restart
Stopping php-fpm (PHP Used): [  OK  ]
Starting php-fpm (PHP Used): [  OK  ]
-------------------------------------------------------------------

*** Process for HTTPD service ***
  - Process: restart
Parando httpd: [  OK  ]
Iniciando httpd: [  OK  ]
-------------------------------------------------------------------

- For help, type '/script/restart-web [--help|-h]'
>  sh /script/restart-dns

*** Process for BIND service ***
  - Process: restart
Deteniendo named: .[  OK  ]
Iniciando named: [  OK  ]
-------------------------------------------------------------------

- For help, type '/script/restart-dns [--help|-h]'

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: sh /script/ problem
« Reply #5 on: 2016-06-02, 16:34:19 »
It's your putty problem.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline KloxoLittleFish

  • Valuable Member
  • *
  • Posts: 147
  • Karma: +0/-0
    • View Profile
Re: sh /script/ problem
« Reply #6 on: 2016-06-02, 16:37:23 »
Crontab doesn't work either. I put cronjob and it log:

Quote
Stopping php-fpm (PHP Used): [  OK  ]
Parando httpd: [  OK  ]

- For help, type '/script/restart-web [--help|-h]'

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.045 seconds with 17 queries.

web stats analysis