Letractively / rubycas-server

Automatically exported from code.google.com/p/rubycas-server
GNU Lesser General Public License v2.1
0 stars 0 forks source link

how daemonize rubycas-server ? #124

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

With old version of rubycas-server (0.7.999999.20100202) i used rubycas-server 
with the option -d (daemonize)

And I run rubycas-server with su to run rubycas-server with another user than 
root :

su -c "rubycas-server -d -c $CONFFILE -P $PIDFILE" casserver

With new version of rubycas-sever (1.1.2)  this option has disappeared.

I try daemons gem with a little script :

#!/usr/bin/env ruby
# this is rubycas-server-control

require 'rubygems'        # if you use RubyGems
require 'daemons'

Daemons.run('rubycas-server')

But if I call this script with su, it does not work !

Can you help me ?
Thanks.

Original issue reported on code.google.com by jeanluc....@gmail.com on 4 Oct 2012 at 2:00