Koozali.org: home of the SME Server

smeserver-service_control-2.0-2 Test and fix on SME 9.0

Offline paulfung

  • *
  • 38
  • +0/-0
    • http://www.datayard.com
smeserver-service_control-2.0-2 Test and fix on SME 9.0
« on: February 12, 2015, 02:01:32 PM »
Dear All,

One of the add-on I like most is the "smeserver-service_control-2.0-2".  It work fine on SME 8 but are not functioning on SME 9.
(Just test it for 64 bits only... I have no machine for 32 anymore in the time being... or maybe the near future..... 32 bit is a bit too old for me....)

The error are caused by the changing of the FormMagic path in SME9, so, what I have to do, is to copy the file "servicecontrol.pm" from "/usr/lib/perl5/site_perl/esmith/FormMagick/Panel".
And then copy it back to "/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel" in the new SME9, everything will then just work fine.

I guess it can be done via updating the src.RPM and re-do the RPM.  Can anyone who is good at it update the RPM, and feed it back to the contribute area, I guess people may really need it.

Or should I do a bug report ?

Best regards,

Paul
« Last Edit: February 12, 2015, 02:08:34 PM by paulfung »
Best Regards,

Paul T.C.Fung
  :lol:  :hammer:

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: smeserver-service_control-2.0-2 Test and fix on SME 9.0
« Reply #1 on: February 12, 2015, 02:13:50 PM »
Hi paul...look in logs you have more errors....quite sure but i'm available if you want to talk about it
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline paulfung

  • *
  • 38
  • +0/-0
    • http://www.datayard.com
Re: smeserver-service_control-2.0-2 Test and fix on SME 9.0
« Reply #2 on: February 12, 2015, 02:45:08 PM »
Ah..... need your enlightenment...

Which log I should look into ?? I can't see error in message and secure log....

Do I miss anything ??

The DB just change and service did restarts... I really need some help on it....

Best regards,
Best Regards,

Paul T.C.Fung
  :lol:  :hammer:

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: smeserver-service_control-2.0-2 Test and fix on SME 9.0
« Reply #3 on: February 12, 2015, 05:22:56 PM »
From what i recall you can find errors in /var/log/messages and maybe in the httpd/admin-errors.

If you look during the expand-template you should find some template errors and services not restarted.

I started to work on it some month ago, but i have not finished the work mainly because nobody asked about it
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: smeserver-service_control-2.0-2 Test and fix on SME 9.0
« Reply #4 on: February 12, 2015, 06:23:04 PM »
please test and report http://mirror.de-labrusse.fr/Sme-Server/smeserver-service_controle/

wget http://mirror.de-labrusse.fr/Sme-Server/smeserver-service_controle/smeserver-service_control-2.2-3.el6.sme.noarch.rpm
yum install smeserver-service_control

I have debugged a lot, but surely you can find others, please have a go
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline paulfung

  • *
  • 38
  • +0/-0
    • http://www.datayard.com
Re: smeserver-service_control-2.0-2 Test and fix on SME 9.0
« Reply #5 on: February 14, 2015, 02:57:40 AM »
One very simple question, in SME9, I found the path "/etc/e-smith/templates/etc/rc.d/init.d" are all empty.

In SME8, there are about 10 or more templates for masq in "/etc/rc.d/init.d".

Lots of error are coming from it as I have expand-template after install your rpm.....

Are we having an error or is it correct ??

In SME9, we don't need them ??  r(~__~)"
« Last Edit: February 14, 2015, 03:03:09 AM by paulfung »
Best Regards,

Paul T.C.Fung
  :lol:  :hammer:

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: smeserver-service_control-2.0-2 Test and fix on SME 9.0
« Reply #6 on: February 14, 2015, 07:29:10 AM »
Indeed some path are different between sme8 and sme9 but the big error from my point of view is that the expand-template is static....if you add a contrib like roundcube you can not desactivate the service because the links of expand-template are not included.

In the new contrib i would propose i do an expand-tempate with a link to bootstrap-console-save therefore if you provide with a rpm an expand-template with that event .....the new contrib will use it

Moreover a lot of services are restarted without needs, i have also worked on this customisation.

Then for the last panel, you can not see services using a locahost access....this is the worse design conception errors...i changed that.

In brief i have rewritten some part of the contrib....I will release my beta in few days
« Last Edit: February 14, 2015, 07:34:08 AM by stephdl »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline paulfung

  • *
  • 38
  • +0/-0
    • http://www.datayard.com
Re: smeserver-service_control-2.0-2 Test and fix on SME 9.0
« Reply #7 on: February 14, 2015, 03:13:01 PM »
OK, found some really interesting issues.

In my test machine, I do a yum remove the old rpm and install your's rpm, all templates in the path "/etc/e-smith/templates/etc/rc.d/init.d/masq" are gone after that, it cause a lot of error, the iptables rules in the "masq" controls all the firewall behavior, and the server just breaks down after that.

Need to do more test it see if it is the old rpm cause this or the new one, will found it out soon.

Best regards,
Best Regards,

Paul T.C.Fung
  :lol:  :hammer:

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: smeserver-service_control-2.0-2 Test and fix on SME 9.0
« Reply #8 on: February 14, 2015, 07:21:20 PM »
You are right to test in a virtual environment, thanks ;)
The rpm you have installed is the work I did in May 2014, now I have added some new stuffs but you are right to highlight all odd behaviours you can find.

Catch you later
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: smeserver-service_control-2.0-2 Test and fix on SME 9.0
« Reply #9 on: February 15, 2015, 04:59:35 PM »
New version, please test and report
http://mirror.de-labrusse.fr/Sme-Server/smeserver-service_controle/
Code: [Select]
wget http://mirror.de-labrusse.fr/Sme-Server/smeserver-service_controle/smeserver-service_control-2.2-5.el6.sme.noarch.rpm
yum install  smeserver-service_control-2.2-5.el6.sme.noarch.rpm -y
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: smeserver-service_control-2.0-2 Test and fix on SME 9.0
« Reply #10 on: February 21, 2015, 09:52:46 AM »
released in stephdl for sme9
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!