On Thu, Dec 06, 2012 at 10:44:13PM +0100, Patrick van Kleef wrote:

Hi Patrick, thanks for the init configuration. Works fine for me ...

ST

> Hi Sebastian,
> 
> > We want to start and supervise (this is important since virtuoso crashes
> > sometimes) our virtuoso instances with upstart, the Ubuntu init process. 
> > I've
> > found a config file at [1] but unfortunately it seems to be not optimal 
> > (e.g.
> > virtuoso forks and upstart can not follow the pid).
> > 
> > My question: What is the optimal upstart configuration for virtuoso and if 
> > it
> > does not exist - can someone from Openlink with enough internal information 
> > can
> > build such a config file?
> > 
> > In my opinion, such a configuration is a big advantage over the init 
> > scripts.
> > 
> > Best regards
> > 
> > Sebastian Tramp
> > 
> >  1. 
> > http://wimmics.inria.fr/projects/dbpedia/doc/index.php/D%C3%A9ploiement_de_Virtuoso#Avec_Upstart
> 
> Please try the following script for upstart:
> 
>       cat /etc/init/virtuoso.conf 
> 
>       # virtuoso - Upstart script for Virtuoso Open Source Edition 6.1
> 
>       description "virtuoso"
>       author "Patrick van Kleef <[email protected]>"
> 
>       # When to start the service
>       start on runlevel [2345]
> 
>       # When to stop the service
>       stop on runlevel [016]
> 
>       # Automatically restart process if crashed
>       respawn
> 
>       # Virtuoso will fork into background
>       expect fork
> 
>       # Start Virtuoso
>       exec /usr/bin/virtuoso-t -c /etc/virtuoso-opensource-6.1/virtuoso.ini 
> +wait
> 
> 
> The -c options should point at the virtuoso.ini file that contains all the 
> parameters for this database. In my case i used the defaults from the Ubuntu 
> 12.04 LTS i have as a test VM.
> 
> The +wait option make virtuoso fork itself into the background, while the 
> foreground process waits until until it receives an OK from the background 
> process that the server has been started successfully. If there is a failure 
> a status code is passed back to the calling process, so it knows whether the 
> server has been started or not.
> 
> 
> Best regards,
> 
> Patrick
> --
> OpenLink Software



-- 
WebID: http://sebastian.tramp.name

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Virtuoso-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

Reply via email to