openfire chat server Daemon not getting started while server starts up every time











up vote
1
down vote

favorite












We are using a Chat server It is installed with openfire, for local office use. Every morning while server getting ON openfire service is not getting started, I have added it in run levels too, Using command , chkconfig , Operating system we are using is CentOS 6.5 final.



chkconfig --level 0123456 openfire on


The output of chkconfig was below



openfire        0:on    1:on    2:on    3:on    4:on    5:on    6:on


And still it is not getting started when ever the Server was up and running, Every time I have to start the service manually using



/etc/init.d/openfire start


So this step has not worked for me, so I edited the rc.local file and added the service too. It too is not working for me



vim /etc/rc.local


Entered as below in the rc.local



sh /etc/init.d/openfire start


If any one faces the same issue, please let me know how can I get the fix.










share|improve this question
























  • Which version of openfire are you using & what are you getting in the error/warn.log.
    – Mongrel
    Mar 22 '16 at 11:38















up vote
1
down vote

favorite












We are using a Chat server It is installed with openfire, for local office use. Every morning while server getting ON openfire service is not getting started, I have added it in run levels too, Using command , chkconfig , Operating system we are using is CentOS 6.5 final.



chkconfig --level 0123456 openfire on


The output of chkconfig was below



openfire        0:on    1:on    2:on    3:on    4:on    5:on    6:on


And still it is not getting started when ever the Server was up and running, Every time I have to start the service manually using



/etc/init.d/openfire start


So this step has not worked for me, so I edited the rc.local file and added the service too. It too is not working for me



vim /etc/rc.local


Entered as below in the rc.local



sh /etc/init.d/openfire start


If any one faces the same issue, please let me know how can I get the fix.










share|improve this question
























  • Which version of openfire are you using & what are you getting in the error/warn.log.
    – Mongrel
    Mar 22 '16 at 11:38













up vote
1
down vote

favorite









up vote
1
down vote

favorite











We are using a Chat server It is installed with openfire, for local office use. Every morning while server getting ON openfire service is not getting started, I have added it in run levels too, Using command , chkconfig , Operating system we are using is CentOS 6.5 final.



chkconfig --level 0123456 openfire on


The output of chkconfig was below



openfire        0:on    1:on    2:on    3:on    4:on    5:on    6:on


And still it is not getting started when ever the Server was up and running, Every time I have to start the service manually using



/etc/init.d/openfire start


So this step has not worked for me, so I edited the rc.local file and added the service too. It too is not working for me



vim /etc/rc.local


Entered as below in the rc.local



sh /etc/init.d/openfire start


If any one faces the same issue, please let me know how can I get the fix.










share|improve this question















We are using a Chat server It is installed with openfire, for local office use. Every morning while server getting ON openfire service is not getting started, I have added it in run levels too, Using command , chkconfig , Operating system we are using is CentOS 6.5 final.



chkconfig --level 0123456 openfire on


The output of chkconfig was below



openfire        0:on    1:on    2:on    3:on    4:on    5:on    6:on


And still it is not getting started when ever the Server was up and running, Every time I have to start the service manually using



/etc/init.d/openfire start


So this step has not worked for me, so I edited the rc.local file and added the service too. It too is not working for me



vim /etc/rc.local


Entered as below in the rc.local



sh /etc/init.d/openfire start


If any one faces the same issue, please let me know how can I get the fix.







services init.d






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 27 '16 at 22:37









Thomas Dickey

51.5k594164




51.5k594164










asked Apr 10 '14 at 4:23









Babin Lonston

1,97111020




1,97111020












  • Which version of openfire are you using & what are you getting in the error/warn.log.
    – Mongrel
    Mar 22 '16 at 11:38


















  • Which version of openfire are you using & what are you getting in the error/warn.log.
    – Mongrel
    Mar 22 '16 at 11:38
















Which version of openfire are you using & what are you getting in the error/warn.log.
– Mongrel
Mar 22 '16 at 11:38




Which version of openfire are you using & what are you getting in the error/warn.log.
– Mongrel
Mar 22 '16 at 11:38










2 Answers
2






active

oldest

votes

















up vote
0
down vote













You really need to dig to find the root cause. Blindly putting chkconfig on every runlevel is not going to resolve the issue.




  1. Check /var/log/messages for startup issues/errors.

  2. Put set -x right after #!/bin/sh in /etc/init.d/openfire -- It will debug the script for you.






share|improve this answer




























    up vote
    0
    down vote













    I have the same question,and solved by stackoverflow



    cd /opt/openfire/jre/bin
    cp java java.bak
    rm java
    ln -s /usr/bin/java java
    service openfire start





    share|improve this answer























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "106"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














       

      draft saved


      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f124029%2fopenfire-chat-server-daemon-not-getting-started-while-server-starts-up-every-tim%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      0
      down vote













      You really need to dig to find the root cause. Blindly putting chkconfig on every runlevel is not going to resolve the issue.




      1. Check /var/log/messages for startup issues/errors.

      2. Put set -x right after #!/bin/sh in /etc/init.d/openfire -- It will debug the script for you.






      share|improve this answer

























        up vote
        0
        down vote













        You really need to dig to find the root cause. Blindly putting chkconfig on every runlevel is not going to resolve the issue.




        1. Check /var/log/messages for startup issues/errors.

        2. Put set -x right after #!/bin/sh in /etc/init.d/openfire -- It will debug the script for you.






        share|improve this answer























          up vote
          0
          down vote










          up vote
          0
          down vote









          You really need to dig to find the root cause. Blindly putting chkconfig on every runlevel is not going to resolve the issue.




          1. Check /var/log/messages for startup issues/errors.

          2. Put set -x right after #!/bin/sh in /etc/init.d/openfire -- It will debug the script for you.






          share|improve this answer












          You really need to dig to find the root cause. Blindly putting chkconfig on every runlevel is not going to resolve the issue.




          1. Check /var/log/messages for startup issues/errors.

          2. Put set -x right after #!/bin/sh in /etc/init.d/openfire -- It will debug the script for you.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 18 '16 at 2:50









          Sokel

          1,40158




          1,40158
























              up vote
              0
              down vote













              I have the same question,and solved by stackoverflow



              cd /opt/openfire/jre/bin
              cp java java.bak
              rm java
              ln -s /usr/bin/java java
              service openfire start





              share|improve this answer



























                up vote
                0
                down vote













                I have the same question,and solved by stackoverflow



                cd /opt/openfire/jre/bin
                cp java java.bak
                rm java
                ln -s /usr/bin/java java
                service openfire start





                share|improve this answer

























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  I have the same question,and solved by stackoverflow



                  cd /opt/openfire/jre/bin
                  cp java java.bak
                  rm java
                  ln -s /usr/bin/java java
                  service openfire start





                  share|improve this answer














                  I have the same question,and solved by stackoverflow



                  cd /opt/openfire/jre/bin
                  cp java java.bak
                  rm java
                  ln -s /usr/bin/java java
                  service openfire start






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited May 23 '17 at 12:40









                  Community

                  1




                  1










                  answered Nov 23 '16 at 3:24









                  user201827

                  1




                  1






























                       

                      draft saved


                      draft discarded



















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f124029%2fopenfire-chat-server-daemon-not-getting-started-while-server-starts-up-every-tim%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      List directoties down one level, excluding some named directories and files

                      list processes belonging to a network namespace

                      list systemd RuntimeDirectory mounts