jprjr / sockexec Goto Github PK
View Code? Open in Web Editor NEWA small daemon for running programs via UNIX socket
License: ISC License
A small daemon for running programs via UNIX socket
License: ISC License
Sockexec not compatible with skalibs 2.5.0.0 and above because of api changes
From the release page:
skalibs/ushort.h, skalibs/uint.h and skalibs/ulong.h removed. skalibs/types.h is now a generic header for fmtscan primitives for various types.
After this change 63f7939
My CI job fails with error:
src/common.h:21:30: fatal error: skalibs/posixplz.h: No such file or directory
#include <skalibs/posixplz.h>
my env:
alpine:3.7
Dockerfile: https://github.com/metacoma/silverkey-web/blob/master/Dockerfile
Is there a simple client that lets you exec stuff as a client in a blocking way? something similar to doing like:
ssh machine thingy to run
maybe:
sockexec-client foo.sock thingy to run?
I test run tailf /tmp/xx.log
. But no response.
can you build macosx version?
Hi, sockexec does not compile under Ubuntu 18.04, below is the error I receive when I run make
kaliwolf@video:~/sockexec$ make exec gcc -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -iquote src/include-local -Isrc/include -Wall -Wextra -Werror -pipe -Wall -fPIC -std=c99 -O2 -c -o src/sockexec/sockexec.o src/sockexec/sockexec.c src/sockexec/sockexec.c: In function ‘main’: src/sockexec/sockexec.c:150:8: error: implicit declaration of function ‘tain_init’; did you mean ‘tain_uint’? [-Werror=implicit-function-declaration] if(tain_init() <= 0) strerr_diefu1sys(111,"tain_init"); ^~~~~~~~~ tain_uint cc1: all warnings being treated as errors Makefile:130: recipe for target 'src/sockexec/sockexec.o' failed make: *** [src/sockexec/sockexec.o] Error 1 kaliwolf@video:~/sockexec$
Thanks,
Kali~
i tried to install it in FreeBSD 11, but failed..
gcc49 -Wall -Wextra -Werror -O3 -o bin/sockexec -lskarnet
/usr/lib/crt1.o:在函数‘_start’中:
/usr/src/lib/csu/amd64/crt1.c:(.text+0x17b):对‘main’未定义的引用
collect2: error: ld returned 1 exit status
*** Error code 1
Stop.
Hello.
From time to time when polling the server it happens that the call from lua-resty-exec contains the output in stderr instead of stdout.
The sockexec then logs the following warning.
WARNING: IOPAUSE_EXCEPT, closing fd 7
What should I do to make it more reliable?
Thanks.
staff or root run:
sockexec t.sock
sockexec.client t.sock uname
no returns, in latest version: 3.1.0 sockexec-x86_64-apple-darwin.tar.gz
I'm trying to build with skalibs 2.6.4 and it fails with:
ubuntu@server-4:~/src/sockexec-2.0.3_ make
gcc -static -Wall -Werror -c -o src/accept_client.o src/accept_client.c
In file included from src/accept_client.c:1:0:
src/common.h:25:21: error: conflicting types for _environ_
extern const char **environ;
^
In file included from /usr/include/skalibs/webipc.h:16:0,
from src/common.h:9,
from src/accept_client.c:1:
/usr/include/skalibs/posixplz.h:14:15: note: previous declaration of _environ_ was here
extern char **environ ;
^
Makefile:56: recipe for target 'src/accept_client.o' failed
make: *** [src/accept_client.o] Error 1
OS is Ubuntu 16.04.1 LTS
I've try configs as below, but as I run prog({'ngxin','-s', 'reload'})
in openresty worker
It threw permission denied
error.
Could you please fix it?
cat > /etc/systemd/system/sockexec.service <<eof
[Unit]
description=sockexec
After=network.target
[Service]
ExecStart=/usr/local/openresty/nginx/docker/bin/sockexec /tmp/exec.sock
User=root
[Install]
WantedBy=multi-user.target
eof
hey , thanks for good project, but
./sockexec -d /tmp/exec.sock > sockexec.log 2>&1
and
./sockexec.client /tmp/exec.sock bash
tail -f sockexec.log
output is
Connection 0: accepted
Connection 0: reading client data
Connection 0: client sent 0 bytes, closing connection
Connection 0: attempting to close, forced
Connection 0: closing
what is miss? thx~
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.