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. 2024-04-28, 17:29:46

Author Topic: Update Kloxo-MR 6.5.0.f-2013081402  (Read 8469 times)

0 Members and 1 Guest are viewing this topic.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Update Kloxo-MR 6.5.0.f-2013081402
« Reply #15 on: 2013-08-15, 03:22:23 »
Hi,

Latest upload using "if $(chkconfig --list|grep $item|grep -i ':on' >/dev/null 2>&1) && [ -f /etc/init.d/$item ] ; then" and previous using "if [ -f /etc/init.d/$item ] ; then".

That it.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Viking

  • Senior Member
  • *
  • Posts: 315
  • Karma: +0/-0
    • View Profile
Re: Update Kloxo-MR 6.5.0.f-2013081402
« Reply #16 on: 2013-08-15, 04:48:37 »
Quote from: "MRatWork"
Hi,

Latest upload using "if $(chkconfig --list|grep $item|grep -i ':on' >/dev/null 2>&1) && [ -f /etc/init.d/$item ] ; then" and previous using "if [ -f /etc/init.d/$item ] ; then".

That it.
That is supposed to be?
Code: [Select]
#!/bin/sh

list=(named djbdns maradns httpd nginx lighttpd hiawatha php-fpm qmail xinetd mysqld mysql kloxo)

for item in ${list[*]}
do
   if  [ -f /etc/init.d/$item ] ; then
      if [ $item == 'qmail' ] ; then
         /etc/init.d/$item stop
         /etc/init.d/$item start
      else
         /etc/init.d/$item restart
      fi
   fi
done
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Update Kloxo-MR 6.5.0.f-2013081402
« Reply #17 on: 2013-08-15, 15:59:59 »
Yes, you can change for awhile with above code until Kloxo-MR update with 'the new code' for restart.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine

Page created in 0.067 seconds with 19 queries.

web stats analysis