
Security News
CISA’s 2025 SBOM Guidance Adds Hashes, Licenses, Tool Metadata, and Context
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
= App::Service
A library for service application daemonize.
== Features
== Installation
Add this line to your app's Gemfile:
And then execute:
$ bundle install
Or install it yourself as:
$ gem install app-service
or
$ gem install -l app-service-x.x.x.gem
== Usage
=== Example
require "app/service"
App::Service.setup( ARGV.shift )
ruby sample.rb run
ruby sample.rb start
ruby sample.rb stop
ruby sample.rb restart
== Reference
=== Setup App::Service.
Result: ** none.
Parameter: ** mode: Run mode. [run start stop restart status] ** argv: Commandline arguments. (default: ARGV) ** app_dir: Application working directory. (default: "..") ** tmp_dir: Temporary directory. (default: "tmp") ** log_dir: Logging directory. (default: "log") ** log_sync: Logging sync mode. (default: false) ** shift_age: Log file count, or log change event. [0.., "daily", "weekly", "monthly"] (default: 0) ** shift_size: Log rotation limit size. (default: 1048576) ** log_level: Log level. (default: Logger::Severity::DEBUG) [0:DEBUG, 1:INFO, 2:WARN, 3:ERROR, 4:FATAL, 5:UNKNOWN] ** progname: (default: nil) ** formatter: (default: Formatter.new) ** datetime_format: (default: '%Y-%m-%d %H:%M:%S') ** shift_period_suffix: (default: '%Y%m%d')
=== Shutdown App::Service.
Result: ** none.
Parameter: ** cond: process exit condition. (default: 0)
=== Get run mode.
Result: ** String: Run mode. [run start stop restart status]
Parameter: ** none.
=== Get logger instance.
Result: ** Logger instance.
Parameter: ** none.
== Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/arimay/app-service.
== License
The gem is available as open source under the terms of the http://opensource.org/licenses/MIT[MIT License].
Copyright (c) ARIMA Yasuhiro arima.yasuhiro@gmail.com
FAQs
Unknown package
We found that app-service demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.