No commit activity in last 3 years
No release in over 3 years
This gem creation commands makes it easy ( Ruby scripts) to run in the background ( daemon ). It has a friendly CLI to manage processes related to commands.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

>= 0

Runtime

 Project Readme

FclRailsDaemon

This gem was developed to facilitate the creation and management processes in rails projects.

Installation

From Gemfile

gem 'fcl_rails_daemon'

Then run:

$ bundle

Or only install:

$ gem install fcl_rails_daemon

Configuration

After installation you need to create the directories and configuration files for this run

$ fcld --configure

Will be created:

  • config/fcld_rails_daemon.rb (File where the commands are recorded)
  • tmp/pids/fcld.yml (Pids file where the commands are recorded)
  • lib/fcl_rails_daemon/command_sample.rb (A command template)

How to use?

[--create] Create a new command

$ fcld --create my_first_command
  • Add the command file in lib/fcl_rails_daemon
  • Records the command in config/fcl_rails_daemon.rb

[--destroy] Destroy a command

$ fcld --destroy my_first_command
  • Remove the command file in lib/fcl_rails_daemon
  • Remove record of the command in config/fcl_rails_daemon.rb

[--help] Displays the manual for commands and options

$ fcld --help

[--pids] Displays the pids of the commands registered

$ fcld --pids

[--logs] Displays the logs files for each registered command

$ fcld --logs

[start|stop|restart|status] Performs action for all registered commands

$ fcld start

[--env] Sets the environment for Rails application

$ fcld --env production start

[--command] Individual action to run a registered command

$ fcld --command my_first_command start

[--process_name] Sets a name to be assigned to the process (by default the name is the name of the command)

$ fcld --command my_first_command --process_name foo_my_first_command start