Re: [Mojolicious] Using hypnotoad with upstart
If you run hypnotoad in the foreground, you can't do hot reload. I would say you're better off with prefork unless you need hot reload: $ yourapp.pl prefork -h If you know of an "init script to upstart adapter", you could use Toadfarm https://metacpan.org/pod/Toadfarm#SYNOPSIS which provide the same interface as a init script. On Tuesday, August 18, 2015 at 10:57:20 PM UTC+2, Carson Anderson wrote: > > Super delayed response here but you need to add the "-f" after hypnotoad > not after your script. > > hypnotoad -f /data/web/mojo/router > > > On Wednesday, February 5, 2014 at 4:22:04 PM UTC-7, Stefan wrote: >> >> Can someone provide a sample upstart conf file for >> starting/stopping/restarting hypnotoad? >> >> This isn't doing it. (I tried with and without -f) >> >> description "mojo upstart job" >> >> start on runlevel [2345] >> stop on runlevel [!2345] >> >> pre-start exec hypnotoad /data/web/mojo/router -f >> pre-stop exec hypnotoad /data/web/mojo/router -f >> post-stop exec hypnotoad /data/web/mojo/router -s >> >> >> On Monday, May 14, 2012 6:44:10 AM UTC-5, koorchik wrote: >>> >>> -f, --foreground Keep manager process in foreground. >>> >>> 2012/5/14 Konstantin Cherkasoff : >>> > Hi All! >>> > Can I get hypnotoad to NOT become a daemon and stay connected with >>> parent >>> > process? >>> > It is useful when running under superdaemon control like upstart. >>> >>> -- >>> Viktor Turskyi >>> http://webbylab.com >>> http://koorchik.blogspot.com >>> >> -- 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 http://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.
Re: [Mojolicious] Using hypnotoad with upstart
Super delayed response here but you need to add the "-f" after hypnotoad not after your script. hypnotoad -f /data/web/mojo/router On Wednesday, February 5, 2014 at 4:22:04 PM UTC-7, Stefan wrote: > > Can someone provide a sample upstart conf file for > starting/stopping/restarting hypnotoad? > > This isn't doing it. (I tried with and without -f) > > description "mojo upstart job" > > start on runlevel [2345] > stop on runlevel [!2345] > > pre-start exec hypnotoad /data/web/mojo/router -f > pre-stop exec hypnotoad /data/web/mojo/router -f > post-stop exec hypnotoad /data/web/mojo/router -s > > > On Monday, May 14, 2012 6:44:10 AM UTC-5, koorchik wrote: >> >> -f, --foreground Keep manager process in foreground. >> >> 2012/5/14 Konstantin Cherkasoff : >> > Hi All! >> > Can I get hypnotoad to NOT become a daemon and stay connected with >> parent >> > process? >> > It is useful when running under superdaemon control like upstart. >> >> -- >> Viktor Turskyi >> http://webbylab.com >> http://koorchik.blogspot.com >> > -- 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 http://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.
Re: [Mojolicious] Using hypnotoad with upstart
Can someone provide a sample upstart conf file for starting/stopping/restarting hypnotoad? This isn't doing it. (I tried with and without -f) description "mojo upstart job" start on runlevel [2345] stop on runlevel [!2345] pre-start exec hypnotoad /data/web/mojo/router -f pre-stop exec hypnotoad /data/web/mojo/router -f post-stop exec hypnotoad /data/web/mojo/router -s On Monday, May 14, 2012 6:44:10 AM UTC-5, koorchik wrote: > > -f, --foreground Keep manager process in foreground. > > 2012/5/14 Konstantin Cherkasoff >: > > Hi All! > > Can I get hypnotoad to NOT become a daemon and stay connected with > parent > > process? > > It is useful when running under superdaemon control like upstart. > > -- > Viktor Turskyi > http://webbylab.com > http://koorchik.blogspot.com > -- 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 http://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/groups/opt_out.