WebApp at Ubuntu 18.04 LTS

does a stand alone WebApp made with Xojo 2010R3 start as service unit at Ubuntu 18.04 LTS?

Are you asking whether one can enable a webapp in systemd as a service and have it autostart at boot time?

First check the steps to create a Standalone web app that can run as a daemon:

https://documentation.xojo.com/topics/web/run_web_apps_in_the_background.html

Then follow these instructions here:

https://www.google.ch/amp/s/linoxide.com/linux-how-to/enable-disable-services-ubuntu-systemd-upstart/amp/

However, I use a cron job to run a script which launches my web service in case it went down.

2010r3 makes 32 bit linux apps
As long as you have all the required 32 bit support libs it should start as a service

2010! I should wear my glasses … sigh

i meant at practice, at docu everything works in theory.
with cron job i had always trouble or it need first a user login or the app won’t start as expected or with error.

yes i like to start a web app after boot as absolutely reliable service.

2020 i Consider to use “Strato” with a linux or windows vps.

in theory IF you can find all required 32 bit libs for 18.04 it should work

but just finding the dependent libs may be a challenge

[quote=469249:@Markus Rauch]i meant at practice, at docu everything works in theory.
with cron job i had always trouble or it need first a user login or the app won’t start as expected or with error.

yes i like to start a web app after boot as absolutely reliable service.

2020 i Consider to use “Strato” with a linux or windows vps.[/quote]
Keep in mind that a lot of improvements and bug fixes have happened since 2010r3. That was the first public release of the Xojo web framework.

ups i meant 2019r3, sorry

if youre building 32 bit you’ll need some 32 bit support libs
they may be hard to find

for 64 bit it should work
any dependencies you will have an easier time getting libs

see http://documentation.xojo.com/resources/system_requirements_for_current_version.html under Web Apps > Web Server Requirements and Linux Notes

I have webapps on linux boxes (ubuntu 14.04 and 18.04) since there are xojo webapps. I use cron jobs with shell scripts to start them and keep them alive. Absolutely reliable.

So the script checks if “MyWebApp” is alive and if not it will launch the app. And the cron-job is running this script every other minute. So when I restart the linux box or when the webapp crashes, after two minutes it goes live again.

I use to copy the webapp to a folder within /opt and then create a shell script like this (“startwebapp.sh”, make it executable):

[code]#!/bin/bash

if [[ ! pidof -s MyWebApp ]]; then
sudo /opt/webapps/MyWebApp
fi
[/code]

I use webmin to manage cronjobs, and there I add the startscript like this:

NDR

[quote=469249:@Markus Rauch]i meant at practice, at docu everything works in theory.
with cron job i had always trouble or it need first a user login or the app won’t start as expected or with error.

yes i like to start a web app after boot as absolutely reliable service.

2020 i Consider to use “Strato” with a linux or windows vps.[/quote]

Looks interesting! Thanks for the hint.
https://www.strato.de/server/linux-vserver/

Could be a candidate for my next hosting. I am thinking of switching away from server4you, because they still do not support ubuntu 18.04 on VPS, plus they were bought by HostEurope which themselves were taken over by US provider GoDaddy. And since this happened, there is not much progress at Server4you, let alone my doubts about the security of data.

I have to investigate further into Starto.de

off-topic, it seems it have the best price-performance here in germany.
for me was interesting, small fix price per month, the ssl costs, backup solution.
alternate was alfahosting and ionos.

i think windows hosting with asp .net / iis / ms sql will end up in high license costs.