natcohen commented on issue #2630: Unable to run Clouseau after following the 
documentation
URL: https://github.com/apache/couchdb/issues/2630#issuecomment-594140718
 
 
   @kocolosk I am having some really hard time creating a systemd service in 
CentOS to be able to start Clouseau on server startup. 
   
   I have created the following start.sh script:
   ```sh
   export CLASSPATH=/opt/clouseau/lib/*
     
   /usr/bin/java -server -Xmx2G -Dsun.net.inetaddr.ttl=30 
-Dsun.net.inetaddr.negative.ttl=30 
-Dlog4j.configuration=file:/opt/clouseau/log4j.properties 
-XX:OnOutOfMemoryError="kill -9 %p" -XX:+UseConcMarkSweepGC 
-XX:+CMSParallelRemarkEnabled com.cloudant.clouseau.Main 
/opt/clouseau/clouseau.ini
   ```
   
   starting this script from the command line works but when invoking it in the 
service, it automatically stops it without notice:
   ```sh
   [Unit]
   Description=Clouseau
   After=network.target
   
   [Service]
   Type=simple
   User=root
   WorkingDirectory=/opt/clouseau
   ExecStart=/opt/clouseau/start.sh
   Restart=on-abort
   
   [Install]
   WantedBy=multi-user.target
   ```
   
   It's a bit out of scope but it's been few hours I'm trying to find a 
solution and I can't find any help...Also this thread can help others create a 
service in unix for Clouseau
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to