overwatch

package
v0.0.0-...-89b0189 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2016 License: GPL-3.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bootstrap

func Bootstrap()

Bootstrap starts the environment and reads the config file for services

func ConfigureServices

func ConfigureServices(c *Config)

ConfigureServices stars the services, registers the SIGCHILD handler

func MountCGroupfs

func MountCGroupfs()

MountCGroupfs mounts the cgroup filesystem

func PrepareDisk

func PrepareDisk()

PrepareDisk prepares the disk for the required folders

Types

type Config

type Config struct {
	Version  string
	Title    string
	Services []Service
}

Config is general init config file to be parsed from disk upon boot

type Service

type Service struct {
	Name        string
	Description string
}

Service describes how should a service be run, what its name is and what it does TODO: add respawn and something like runlevels? maybe dependencies

Jump to

Keyboard shortcuts

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