Skip to content

colstrom/systemized

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Systemized

Overview

Systemized exposes systemd components as Ruby Objects.

Why does this exist?

As an attempt to tame some of the complexity of systemd.

Installation

gem install systemized

Usage

The following will read the last ten log entries for the concourse-worker service.

require 'systemized'

service = Systemized::Service.new 'concourse-worker'

service.journal.read(10)

This will stop the concourse-worker service if it is current active, then start it.

require 'systemized'

service = Systemized::Service.new 'concourse-worker'

service.stop if service.active?

service.start

License

systemized is available under the MIT License. See LICENSE.txt for the full text.

Contributors

About

Exposes systemd components as Ruby Objects.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages