# Script/runner as a single instance

**URL:** <https://www.ruby-forum.com/t/script-runner-as-a-single-instance/123501>\
**Category:** Rails\
**Created:** [December 18, 2007, 8:23am UTC](https://www.ruby-forum.com/t/script-runner-as-a-single-instance/123501 "2007-12-18T08:23:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aantix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f0a364/32.png) [@aantix](https://www.ruby-forum.com/u/aantix)\
**Post date:** [December 18, 2007, 8:23am UTC](https://www.ruby-forum.com/t/script-runner-as-a-single-instance/123501/1 "2007-12-18T08:23:52Z")

</div>

I am utilizing the script/runner script to launch a few models for  
maintenance on my application.

Is there any to ensure that only a single instance of a certain process  
is running? I guess I could have the model check/update a flag in the  
db, but maybe there is an easier way?
