Hypnotoad and the prefork server it's based on launch 4 workers by default. If you don't need the concurrency then you can simply use the plain 'daemon' command. It will not watch for filesystem changes but it will be much less complex to run than morbo. Run like: `./myapp.pl daemon -l 'http://*:8080'`
See https://metacpan.org/pod/Mojolicious::Command::daemon for more info on the daemon command. Like morbo you use ctrl+C or a SIGINT to stop the server. On Sun, Jun 25, 2017 at 2:58 PM, Garry Taylor <[email protected]> wrote: > Hi Stefan, > I am not normally restarting morbo many times a day (or even a week). > It is running on a Raspberry Pi attached to my TV, and whoever is watching > TV is the sole client. Normally I only have to restart morbo if I've got > to update the SQLite database file that keeps a list of TV shows and movies > to add new shows or movies to the list. As to running hypnotoad, I seem to > recall that I tried it when I first wrote the media server code and started > it running, but ran into a situation where morbo actually worked better in > that environment. (I don't remember now if it was due to the more limited > resources on the Pi, or if it was that fact that there is always going to > be only one client, and hypnotoad seemed like overkill...) I considered > putting an "exit" inside the app itself as well but "die", "exit" and > "kill 'INT', $$" did not "quite" exit morbo and return to the command line. > (Also tried 'QUIT', and 'TERM' but no clean exit from them either). > Garry > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/mojolicious. > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.
