I just use cron for starting on boot: $ crontab -l @reboot /path/to/myserver.sh 1>>/path/to/log/file.log 2>>/path/to/log/file.log
The reason why I have a shell script first is to set up %ENV and friends. If you don't need that, then you can just point directly to the application. I also sometimes add a hack to the shell script to see if a given database is started if the application require that to start up. So... this is a rather hackish solution for the complicated, but (for me) a very simple solution for the simple cases. I would say using upstart. initv or systemd is a lot cleaner though, but it *might* require more work. On Friday, July 22, 2016 at 12:44:57 PM UTC+2, Gabor Szabo wrote: > > Hi, > > I am trying to deploy a Mojolicious-based application on an Ubuntu server. > When I launch the application with hypnotoad everything is fine, but I > wonder what is the recommended way to make the Hypnotoad server launch when > I reboot the Linux box? > > I looked at > http://mojolicious.org/perldoc/Mojolicious/Guides/Cookbook#DEPLOYMENT but > could not find this information. > > regards > Gabor > -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscr...@googlegroups.com. To post to this group, send email to mojolicious@googlegroups.com. Visit this group at https://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.