-
-
Recent Posts
- It has arrived!
- A letter I wrote to my Senator today about PIPA/SOPA
- Building a new computer is fun!
- Don’t use the default Solr configuration files, ever!
- Authentication with Node.js and Zend Framework.
Recent Comments
- Anthony Wlodarskis Blog: Authentication with Node.js and Zend Framework | Scripting4You Blog on Authentication with Node.js and Zend Framework.
- Anthony Wlodarskis Blog: Authentication with Node.js and Zend Framework on Authentication with Node.js and Zend Framework.
- PHPDeveloper.org: Anthony Wlodarskis Blog: Authentication with Node.js and Zend Framework on Authentication with Node.js and Zend Framework.
- Anthony Wlodarskis Blog: Authentifizierung mit Node.js und Zend Framework | PHP Boutique on Authentication with Node.js and Zend Framework.
- Using Phergie with Upstart — Phergie on Using Phergie with Upstart (a.k.a. Phergie #winning)
Archives
- January 2012
- November 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
Categories
- C
- computer hardware
- database
- fun
- html5
- Java
- JavaScript
- Jetty
- Linux
- node
- PHP
- Security
- Solr
- Uncategorized
- Upstart
- zend framework
Meta
- Log in
- Entries RSS
- Comments RSS
- WordPress.org
Using Phergie with Upstart (a.k.a. Phergie #winning)
Posted on March 2, 2011 by anthony
I use Phergie phergie.org with my server to sit on a few IRC channels and provide features I find useful. However I used to initialize Phergie with a sc command watch it sit behind screen and have to monitor it that way. I got sick of that and wrote a Upstart script to do all this for me now
# This upstart script is provided in the spirit of open source software. # The license is simple: you are free to do whatever you want with this file. # # Phergie init script Anthony Wlodarski <ant92083@gmail.com> # # This will allow you to do: # # service phergie start # service phergie stop # service phergie restart # # and various other different commands specified by the upstart daemon. # Please visit upstart.ubuntu.com/ for more information on how # to customize this script. # Make sure the file system and network devices have started before # we begin the daemon start on (filesystem and net-device-up IFACE!=lo) # Stop the event daemon on system shutdown stop on shutdown # Respawn the process on unexpected termination respawn # The meat and potatoes exec /usr/bin/phergie /usr/share/php/Phergie/Settings.php >> /var/log/phergie.log 2>&1
As you can see that even if you installed from tarball source you can customize the last line to something such as:
“/path/to/php /path/to/phergie.php /path/to/Settings.php”
The logging part is optional and should only be used if “ui.enabled => true” is in the Settings.php.
The next step, writing a plugin for livethesheendream.com/ to provide Charlie Sheen quotes. #winning Phergie does it!
This entry was posted in Uncategorized. Bookmark the permalink.
One Response to Using Phergie with Upstart (a.k.a. Phergie #winning)
Pingback: Using Phergie with Upstart — Phergie