How to Disable (panel) op_server.pl

Discussion in 'General' started by vaibhavs, Oct 6, 2009.

  1. vaibhavs

    Joined:
    Oct 2, 2009
    Messages:
    95
    Likes Received:
    0
    Hi,

    How should I disable Flash Panel (op_server.pl).
    I do not need FOP.

    I believe there is some command / option attached to the "amportal start"

    Please help!

    Thx
    Sanjay
     
  2. dwells

    Joined:
    Sep 29, 2009
    Messages:
    127
    Likes Received:
    0
    I think you are looking for the command: "amportal stop_fop" <enter>
    you would need to do this every time you restarted your system.

    You would need to remove the line "/usr/sbin/amportal start_fop" out of your /etc/rc.d/rc.local file, to make this permanent.

    -dwellsy
     
  3. vaibhavs

    Joined:
    Oct 2, 2009
    Messages:
    95
    Likes Received:
    0
    Yes.
    Code:
    [root@elastix ~]# amportal stop_fop
    helped.

    My rc.local has this
    Code:
    /usr/sbin/amportal start_fop
    should I replace this command with
    Code:
    /usr/sbin/amportal start
    ?

    Thx
    Sanjay
     
  4. jgibson

    Joined:
    Dec 29, 2008
    Messages:
    78
    Likes Received:
    0
    Just commenting it out, putting a ; in front of that line, will keep that line from being executed. This way if you ever do need to fop all you will have to do is remove the ;
     
  5. vaibhavs

    Joined:
    Oct 2, 2009
    Messages:
    95
    Likes Received:
    0
    But won't I need some amportal command in rc.local to start asterisk on boot ?

    If I hash the current line "/usr/sbin/amportal start_fop", I will have nothing in rc.local to start asterisk

    Sanjay
     
  6. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    To elucidate (hopefully :) ) :

    Quick answer, edit /usr/sbin/amportal to reflect your needs.
    Longer and more boring answer:

    init scripts are run with numeric logic, progressively/regressively on any run level you change to, by default on Elastix' startup, it is 3 as defined in /etc/inittab , look in /etc/rc3.d (run level 3), ( where SNN* means start, and KNN* means kill, these are all softlinks to /etc/init.d/* that can be controlled with chkconfig), for a start for asterisk, if SNNasterisk is lower than S99local, and I guarantee it is, asterisk is started before local, so no worries.

    I don't believe amportal needs to run at all at startup in your scenario, as jgibson said, comment it out, apart from fop, everything else queries /etc/amportal.conf as needed.

    A note (and a nod to FOP):

    Nicolas (asternic/FOP) has fixed that with FOP2, FOP2 has a regular, compliant init script, all of it's own.


    regards

    dicko
     

Share This Page