Skip to content

kliu128/cog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cog

A dead simple user-level service manager for Linux written in Rust.

Why?

Sometimes you want to just run a few programs in the background (e.g. i3 exec) without writing some lengthy systemd user services.

Usage

This repository builds two binaries: cog and cogd. When you first start cogd, it will generate an empty .config/cogd.yml file that you can populate with a list of processes to run. cogd will automatically listen for config file modifications and start/stop the required processes.

All services listed are expected to run forever; if they exit for any reason, cogd will wait 1 second and restart them.

To view the status of your processes, you can run cog, which will print out all processes known to cogd like so:

Services under management by cogd:
- [ RUNNING ] sleep infinity
...

Possible additions

  • cgroup management, a la systemd
  • A more featureful cog tool (currently all it can do is list processes)

About

A dead simple user-level service manager

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages