you need to edit the /etc/init.d/ file by adding a new action or changing the "restart" action.
as you can see, all $ CONFIG_PATH sends a command to all thin instances.
paste the init script somewhere, we will find a decent solution;)
UPDATE:
try adding the following lines below :
restart) $DAEMON restart --all $CONFIG_PATH ;; restart-single) $DAEMON restart -C $2 ;; stop-single) $DAEMON stop -C $2 ;;
I have not tried it, but it should work well. this is a really simple solution (without error checking), we added 2 new actions that should be called as:
service thin restart-single /etc/thin/your_app.yml or service thin stop-single /etc/thin/your_app.yml
let me know if it works;)
amuses A.
source share