No Docker xmr.phar as a service ubuntu server

How can I run xmr.phar as a service in an installation without docker.
How to start automatically on reboot
Ubuntu server 14.04 6
Tks.

There’s an upstart service definition provided in the repository, which assumes you’ve installed xmr in /opt/xmr.

As to how to use/configure that, you would need to find documentation for upstart yourself.

I’ve been trying to use the upstart file with all sorts of paramaters to work around the fact that XMR won’t start without being in the Xibo vhost directory.

If I run XMR from the command line while in / :
PHP Fatal error: require(): Failed opening required ‘vendor/autoload.php’ (include_path=’.:/opt/plesk/php/5.6/share/pear’) in phar:///opt/xmr/xmr.phar/index.php on line 15

If I run XMR from the command line while in the Xibo vhost directory, the XMR process does start.

I’ve tried using a pre-start script, chdir, cd, cd as part of the script (; or &&) but none of these options seem to load XMR properly. All I get is a ‘respawning too fast, stopped’ error after the process fires multiple times.

Any thoughts on this?

The Upstart script is know to work on Ubuntu 14.04. I haven’t tested it otherwise I’m afraid.