XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Xen Orchestrta as systemd service

    Scheduled Pinned Locked Moved Xen Orchestra
    5 Posts 2 Posters 1.1k Views 2 Watching
    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.
    • A Offline
      Alexander 0
      last edited by Alexander 0

      Could you please add a way to run xen orchestra as service via systemd in xen orchestra manual?
      For example I'm using script like this:

      root@xoa-test:~# cat /usr/lib/systemd/system/xo-server.service
      
      [Unit]
      Description= XO Server
      After=network-online.target
      
      [Service]
      WorkingDirectory=/opt/xen-orchestra/packages/xo-server/
      ExecStart=/usr/bin/yarn start
      Restart=always
      SyslogIdentifier=xo-server
      
      [Install]
      WantedBy=multi-user.target
      
      
      1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        Hi,

        The way you run Xen Orchestra with a service inside your VM is entirely up to you 🙂 You can use forever, systemd or whatever you like. It's not related to XO itself but the way you use it!

        A 1 Reply Last reply Reply Quote 0
        • A Offline
          Alexander 0 @olivierlambert
          last edited by

          @olivierlambert I think using just systemd is more straightforward then forever via systemd.

          1 Reply Last reply Reply Quote 0
          • olivierlambertO Offline
            olivierlambert Vates 🪐 Co-Founder CEO
            last edited by

            Again, it's up to you 🙂

            We provide a template inside our repo for those who want to use it: https://github.com/vatesfr/xen-orchestra/blob/8921d7861026a11a2e7007d8451489eee508bdf7/packages/xo-server/xo-server.service

            A 1 Reply Last reply Reply Quote 0
            • A Offline
              Alexander 0 @olivierlambert
              last edited by

              @olivierlambert it is pretty outdated 😉
              And this is only proposition to add such option to docs.

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post