Xen Orchestrta as systemd service
-
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
-
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! -
@olivierlambert I think using just systemd is more straightforward then forever via systemd.
-
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
-
@olivierlambert it is pretty outdated
And this is only proposition to add such option to docs.