{"id":18151302,"url":"https://github.com/msantos/unixexec","last_synced_at":"2026-02-26T03:02:36.685Z","repository":{"id":136622101,"uuid":"401663293","full_name":"msantos/unixexec","owner":"msantos","description":"attach stdin/stdout of a command to a Unix socket","archived":false,"fork":false,"pushed_at":"2025-02-24T12:23:30.000Z","size":21,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-24T13:28:54.842Z","etag":null,"topics":["daemontools","exec","inetd","unixsocket"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/msantos.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-31T10:32:43.000Z","updated_at":"2025-02-24T12:23:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"9ff939bf-0093-41e9-a697-65b212bacae3","html_url":"https://github.com/msantos/unixexec","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"eb71c3009a3956f186c1abb3859ed3c27e27c3a8"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msantos%2Funixexec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msantos%2Funixexec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msantos%2Funixexec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msantos%2Funixexec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msantos","download_url":"https://codeload.github.com/msantos/unixexec/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247569003,"owners_count":20959754,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["daemontools","exec","inetd","unixsocket"],"created_at":"2024-11-02T01:07:17.449Z","updated_at":"2026-02-26T03:02:36.586Z","avatar_url":"https://github.com/msantos.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SYNOPSIS\n\nunixexec [*OPTION*] [*PATH*] *COMMAND* *...*\n\n# DESCRIPTION\n\nunixexec: a minimal, [UCSPI](https://jdebp.uk/FGA/UCSPI.html) inetd for\nUnix sockets\n\n`unixexec` attaches the stdin/stdout of a command to a Unix socket:\n\n* immediately exec(3)'s the command: the data is not proxied via another\n  process\n\n* does not multiplex access to a socket\n\n# EXAMPLES\n\n## echo server\n\n```\n$ unixexec /tmp/sock cat\n\n$ nc -U /tmp/sock\n```\n\n## Supervised using daemontools\n\nAn echo server allowing 3 concurrent connections:\n\n```\nservice/\n├── echo1\n│   └── run\n├── echo2\n│   └── run\n└── echo3\n    └── run\n```\n\n* service/echo1/run\n\n```sh\n#!/bin/sh\n\nexec unixsock /tmp/echo1.socket cat\n```\n\n* service/echo2/run\n\n```sh\n#!/bin/sh\n\nexec unixsock /tmp/echo2.socket cat\n```\n\n* service/echo3/run\n\n```sh\n#!/bin/sh\n\nexec unixsock /tmp/echo3.socket cat\n```\n\nThen run:\n\n```\nsvscan service\n```\n\n# Build\n\n```\nmake\n\n#### static executable using musl\n./musl-make\n```\n\n# OPTIONS\n\n-U, --no-unlink\n: do not unlink the socket before binding\n\n-v, --verbose\n: write additional messages to stderr\n\n-h, --help\n: usage summary\n\n# ENVIRONMENT VARIABLES\n\nPROTO\n: protocol, always set to UNIX\n\nUNIXLOCALPATH\n: socket path\n\nUNIXLOCALUID\n: user ID of unixexec process\n\nUNIXLOCALUSER\n: user name of unixexec process\n\nUNIXLOCALGID\n: group ID of unixexec process\n\nUNIXLOCALPID\n: process ID of unixexec process\n\nUNIXREMOTEPID\n: process ID of connecting process (support: Linux, OpenBSD)\n\nUNIXREMOTEEUID\n: user ID of connecting process\n\nUNIXREMOTEUSER\n: user name of connecting process\n\nUNIXREMOTEEGID\n: group ID of connecting process\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsantos%2Funixexec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsantos%2Funixexec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsantos%2Funixexec/lists"}