How to Set up service directory
<< Circum | Index | MiddleMouse >>
- mkdir svc/(project name) in source code directory
- create an executable 'run' script under svc/(project name)
- make a symbolic link in /service to the directory 'svc/(project name)', ln -s (full path to the directory) (symbolic name)
- cd /service
- svc -u (symbolic)
- svstat (symbolic)
If the run crashes
- Kill the daemon, svc -k (symbolic)
- just try to execute the executable script directly, and see error message
run script sample
#!/bin/sh
exec 2>&1
ulimit -v 10240000
exec sudo -u apache /usr/bin/ruby -rubygems /hogehoge/bin/migeld