From: Iuri S. <iu...@iu...> - 2016-10-14 22:11:26
|
Thanks Gustaf, The script install.oacs.sh didn't setup NS starting automatically, but I won't bother debuging it for now. I'll will add one update-rc.d, to start on boot, plus an upstart script will do the job. Best wishes On 14-10-2016 05:02, Gustaf Neumann wrote: > Dear Iuri, > > One has to use probably foreground mode (-f, see > http://openacs.org/forums/message-view?message_id=187728) for > daemontools. We have not used daemontools for ages, i would not > recommend it. > > The install-oacs.sh script [1] installs either a systemd file for > naviserver/openacs, or an upstart file (or both) depending on the > system it is running on. if for some reason, you do not want to run > the script, fill in the variables manually. This way, > naviserver/openacs can be started/restarted/... like all other system > services. > > all the best > -gn > > [1] https://github.com/gustafn/install-ns/blob/master/install-oacs.sh#L342 > > Am 12.10.16 um 19:00 schrieb Iuri Sampaio: >> Thanks Cyan, >> >> Good that you mentioned it, but I tried after I've sent the email. >> Both have the same behavior. >> >> #### >> sleep 4 >> exec /usr/local/ns/bin/nsd -it /usr/local/ns/iurix.tcl -u iurix -g >> web -b 192.199.241.135:80 <http://192.199.241.135:80> >> #### >> >> >> Best wishes >> >> >> >> >> On 12-10-2016 13:52, Cyan Ogilvie wrote: >>> Maybe add -i >>> >>> Cyan >>> >>> On Wed, Oct 12, 2016 at 5:59 PM, Iuri Sampaio <iu...@iu... >>> <mailto:iu...@iu...>> wrote: >>> >>> Hi there, >>> >>> In order to get NS to start automatically, I installed >>> daemontools (i.e. >>> debian server - apt-get install). However, when I start the >>> supervisor, >>> it starts to boot up hundreds of NS instances until that it eats >>> up all >>> the memory and crashes the whole server. My intuition tells that >>> there's >>> a problem with apt-get installation but I'm still digging in. >>> The script >>> is a simple line as bellow: >>> >>> #### >>> sleep 4 >>> exec /usr/local/ns/bin/nsd -t /usr/local/ns/iurix.tcl -u iurix >>> -g web -b >>> 192.199.241.135:80 <http://192.199.241.135:80> >>> #### >>> >>> How do I setup NS automatically start supervisor correctly? >>> >>> Best wishes >>> Iuri >>> > > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > > > _______________________________________________ > naviserver-devel mailing list > nav...@li... > https://lists.sourceforge.net/lists/listinfo/naviserver-devel |