teasvc

command module
v0.0.0-...-a426fde Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2017 License: MIT Imports: 5 Imported by: 0

README

Tea Service

NOTE: There are no guarantees on the reliability of teasvc. See issues.

WARNING: teasvc has not been tested on Windows.

A simple aid for service management

teasvc has two basic roles. One is to run servces, the other is to connect to a service. Service mode involves launching a service as a child process and then exporting an object on D-Bus. Connect mode involves using that exported object to connect back to the service-mode teasvc process. Connect mode primarily involves one of four activities: 1) connecting to the output of the child process; 2) connecting to the input and output of the child process; 3) sending a command to the child process; 4) or listing all launched service-mode teasvc processes.

When the service-mode process is launched, it can connect to the system bus or session bus (the default). If it connects to the session bus, only command-mode processes running as the same user can communicate with it. If it connects to the system bus, any process can talk to it.

Contributing

go fmt before committing.

Vendoring

Tea-Service uses github.com/rancher/trash for managing vendor packages.

Todo

  • Launch a service
  • Connect to stdout/err of a service
  • Send a command (stdin) to a service
  • Open an interactive session with a service
    • Handle multiple interactive sessions (only when line-buffered)
    • Command to kick existing connections
    • Fix connection issues
    • Readline?
  • Launch a service as a daemon
    • Manage pid file
    • Query the status of a daemon
    • Halt a daemon

Known Issues

https://gitlab.com/firelizzard/teasvc/issues?state=opened&label_name[]=bug

Attribution

Icon from http://www.toicon.com/

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
_

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL