ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Xen Orchestra on Ubuntu 15.10 - Complete installation instructions

    IT Discussion
    how to xen orchestra ubuntu 15.10 debian xen open source ubuntu linux xenserver
    24
    609
    280.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      Where the problem lies is that npm does not appear to store the PID anywhere on its own. Could we had that manually to the cron job? Of course, but that would not be universal by any stretch and we'd be left with a script that only worked with that specific means of starting.

      travisdh1T 1 Reply Last reply Reply Quote 1
      • DustinB3403D
        DustinB3403 @DustinB3403
        last edited by

        kill $(ps aux | grep "npm start" | grep -v grep | cut -d' ' -f8)
        

        Doesn't work.

        1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller
          last edited by

          What is your output of...

          ps aux | grep "npm start" | grep -v grep | cut -d' ' -f8
          

          and...

          ps aux | grep "npm"
          
          1 Reply Last reply Reply Quote 0
          • travisdh1T
            travisdh1 @scottalanmiller
            last edited by

            @scottalanmiller said:

            Where the problem lies is that npm does not appear to store the PID anywhere on its own. Could we had that manually to the cron job? Of course, but that would not be universal by any stretch and we'd be left with a script that only worked with that specific means of starting.

            This sounds like one of those "It would be really easy to do with an init/systemd script", that nobody has the time to spend working on currently. (If I did, I'd write one.)

            1 Reply Last reply Reply Quote 0
            • DanpD
              Danp
              last edited by Danp

              This appears to work:

               kill $(ps aux | grep "node bin/xo-server" | grep -v grep | cut -d' ' -f8)
              
              scottalanmillerS DustinB3403D 2 Replies Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller
                last edited by

                That is exactly what is needed. If this was the old init style, I know it pretty well. Have made a lot of those. Don't know how it works on Ubuntu 15.10.

                Although we'd need to package this all up, but that's not that hard.

                We are getting closer and closer to making an RPM here.

                1 Reply Last reply Reply Quote 1
                • scottalanmillerS
                  scottalanmiller @Danp
                  last edited by

                  @Danp said:

                  This appears to work:

                   kill $(ps aux | grep "node bin/xo-server" | grep -v grep | cut -d' ' -f8)
                  

                  Interesting. Good call.

                  1 Reply Last reply Reply Quote 1
                  • DustinB3403D
                    DustinB3403 @Danp
                    last edited by

                    @Danp said:

                    This appears to work:

                     kill $(ps aux | grep "node bin/xo-server" | grep -v grep | cut -d' ' -f8)
                    

                    Confirmed.

                    1 Reply Last reply Reply Quote 0
                    • DustinB3403D
                      DustinB3403
                      last edited by

                      So this script should work.

                      Going to update my script and test.

                      DanpD 1 Reply Last reply Reply Quote 0
                      • DustinB3403D
                        DustinB3403
                        last edited by

                        I'm going to modify the update script to reboot immediately when done updating, 2 minutes just feels way to long.

                        1 Reply Last reply Reply Quote 0
                        • dafyreD
                          dafyre
                          last edited by

                          Or better yet... now that we know how...

                          Stop the XO server... do the updates... start the XO Server... no reboot required. 🙂

                          1 Reply Last reply Reply Quote 2
                          • DustinB3403D
                            DustinB3403
                            last edited by

                            Reboots are kind of critical to know if anything is broken.....

                            dafyreD 1 Reply Last reply Reply Quote 0
                            • dafyreD
                              dafyre @DustinB3403
                              last edited by

                              @DustinB3403 said:

                              Reboots are kind of critical to know if anything is broken.....

                              Only in Windows, lol.

                              scottalanmillerS 1 Reply Last reply Reply Quote 0
                              • DustinB3403D
                                DustinB3403
                                last edited by

                                And since we're using cron to start the job, it's more easily handled there.

                                Uptime of weeks or months is no good for any system.

                                Regardless of how awesome it is.

                                1 Reply Last reply Reply Quote 0
                                • scottalanmillerS
                                  scottalanmiller @dafyre
                                  last edited by

                                  @dafyre said:

                                  @DustinB3403 said:

                                  Reboots are kind of critical to know if anything is broken.....

                                  Only in Windows, lol.

                                  Any system that is getting properly patched.

                                  http://www.smbitjournal.com/2011/02/why-we-reboot-servers/

                                  1 Reply Last reply Reply Quote 1
                                  • DanpD
                                    Danp
                                    last edited by

                                    Can't seem to get the startup script working with cron. Entered the command:

                                    chmod +x xo-start.sh
                                    

                                    What did I miss?

                                    coliverC DustinB3403D 2 Replies Last reply Reply Quote 0
                                    • coliverC
                                      coliver @Danp
                                      last edited by

                                      @Danp Did you run it with sudo?

                                      1 Reply Last reply Reply Quote 1
                                      • DustinB3403D
                                        DustinB3403 @Danp
                                        last edited by

                                        @Danp said:

                                        Can't seem to get the startup script working with cron. Entered the command:

                                        chmod +x xo-start.sh
                                        

                                        What did I miss?

                                        That just makes the script executable.

                                        1 Reply Last reply Reply Quote 0
                                        • dafyreD
                                          dafyre
                                          last edited by

                                          Try it from /etc/rc.local ?

                                          1 Reply Last reply Reply Quote 0
                                          • DanpD
                                            Danp
                                            last edited by

                                            @coliver said:

                                            @Danp Did you run it with sudo?

                                            Yes, current octal on the file is 0755 so it would appear that the executable flag is set for everyone.

                                            @DustinB3403 said:

                                            That just makes the script executable.

                                            No kidding?! 😏

                                            I followed your earlier guide, but it isn't working for some reason.

                                            DustinB3403D 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 23
                                            • 24
                                            • 25
                                            • 26
                                            • 27
                                            • 30
                                            • 31
                                            • 25 / 31
                                            • First post
                                              Last post