{"id":37122147,"url":"https://github.com/moribellamy/gexe","last_synced_at":"2026-01-14T14:04:49.992Z","repository":{"id":57610056,"uuid":"123987967","full_name":"moribellamy/gexe","owner":"moribellamy","description":"Easy binary runner / re-launcher.","archived":false,"fork":false,"pushed_at":"2018-03-08T22:34:15.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T14:27:42.058Z","etag":null,"topics":["cross-platform","daemon","daemonize","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moribellamy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-05T22:37:13.000Z","updated_at":"2018-03-08T21:39:50.000Z","dependencies_parsed_at":"2022-08-27T21:23:52.447Z","dependency_job_id":null,"html_url":"https://github.com/moribellamy/gexe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/moribellamy/gexe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moribellamy%2Fgexe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moribellamy%2Fgexe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moribellamy%2Fgexe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moribellamy%2Fgexe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moribellamy","download_url":"https://codeload.github.com/moribellamy/gexe/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moribellamy%2Fgexe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28422404,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T13:30:50.153Z","status":"ssl_error","status_checked_at":"2026-01-14T13:29:08.907Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cross-platform","daemon","daemonize","golang"],"created_at":"2026-01-14T14:04:48.813Z","updated_at":"2026-01-14T14:04:49.983Z","avatar_url":"https://github.com/moribellamy.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gexe\n\n[![Documentation](https://godoc.org/github.com/yangwenmai/how-to-add-badge-in-github-readme?status.svg)](https://godoc.org/github.com/moribellamy/gexe)\n\ngexe is a simple, cross-platform daemon to keep your binaries running. It\nalso supports a simple release flow.\n\nAt this time, gexe is _only_ recommended for hobby use (**not** production).\nYou might consider gexe if your binary isn't production critical, or if\nyou don't want to become expert in a new nanny proc every time you run on a new\nplatform.\n\n## Usage\n\n```\n$ go get github.com/moribellamy/gexe\n$ cp $GOPATH/src/github.com/moribellamy/gexe \u003c/next/to/your/deployment/folder\u003e\n$ ./gexe\n```\n\n## Alternatives\n\nConsider your platform's main daemonization solution for production use.\nUbuntu has upstart, older linux has SYSV init, Windows has NSSM, Mac has\n`brew services`, etc...\n\nYAJSW seems to be cross-platform and mature.\n\nThere are also various devops solutions, like kubernetes, your cloud platform.\n\n\n## The model\n\ngexe manages a server \"deployment\" in a folder. The deployment folder is made\nup of multiple \"applications\". Each application is a folder having this structure:\n```\nmyapplication     # A top-level directory, conceptually an \"Application\"\n└── archive       # Old releases\n└── current\n    └── foo.exe   # Exactly one executable file\n    └── any.txt   # Other resources for foo.exe, ignored by gexe\n    └── any.dat\n└── release       # Contents of a new release\n└── command       # Files that appear here are interpreted as commands to gexe\n```\n\n* The `current` dir is where your executable, and any files needed by it, live.\nThe executable is invoked with `CWD=\u003ccurrent\u003e`\n* The `release` dir is where you can stage a new release. Since it will\neventually be moved to `current`, you also want exactly one executable in\nthis folder.\n* The `command` directory is for simple interface with the running gexe daemon.\nTo issue a command, create a file named...\n  * `stop` to temporarily halt your app\n  * `start` to restart your app after a call to stop\n  * `release` to stop your app, archive it, stage the contents of the \"release\"\ndir to the \"current\" dir, then start\n\n## TODO\n* Integration with per-system nannys, so gexe will restart even after a crash.\n* Unit tests\n* Entire component tests with vagrant\n* Per application configuration","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoribellamy%2Fgexe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoribellamy%2Fgexe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoribellamy%2Fgexe/lists"}