Skip to content

senfix/process-overseer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Process overseer

Simple application what spawn processes and keeps them alive. It have easy option for scale process into more workers.

Just setup overseer as service in your system and use REST API or config storage.json to control spawned processes.

Build

dep ensure
make build

Start

./cmd/process_overseer --listen :3100 --emit-delay 500 --storage ./

Setup

Mac OSX

Create new service custom.process.overseer.plist

/Library/LaunchDaemons/ for one instance per pc ~/Library/LauchAgents/ for user only

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>Label</key>
    <string>custom.process.overseer</string>
    <key>RunAtLoad</key>
    <true/>
    <key>KeepAlive</key>
    <true/>
    <key>ProgramArguments</key>
    <array>
        <string>./process_overseer</string>
    </array>
    <key>WorkingDirectory</key>
    <string>/path/to/compiled/process_overseer</string>
    <key>StandardErrorPath</key>
    <string>/path/to/log/stderr.log</string>
    <key>StandardOutPath</key>
    <string>/path/to/log/stdout.log</string>
  </dict>
</plist>

to load configuration into lauchctl

sudo launchctl load custom.process.overseer.plist

Linux

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors