Comments (3)
- Running
cpud
on a Linux machine requires PID 1 - why? Shouldn'troot
privileges be enough? This makes it impossible to run on pretty much any ordinary Linux distribution (which I'd say defeats the major use case "to seamlessly perform work on running remote machines").
You can run cpud -d -init
, especially if you use systemd.
from cpu.
Thanks for the suggestion @Rubo3 . What is it expected to do? On the Linux machine I currently sit in front of (Arch Linux with systemd), this is what happens (i.e. the daemon doesn't run neither in foreground nor in background):
0$ sudo systemctl status sshd
○ sshd.service - OpenSSH Daemon
Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor pres>
Active: inactive (dead) since Fri 2022-05-27 09:53:38 CEST; 1min 11s ago
Process: 589 ExecStart=/usr/bin/sshd -D (code=exited, status=0/SUCCESS)
Main PID: 589 (code=exited, status=0/SUCCESS)
CPU: 149ms
...
$
$ ps -Afl | grep -Ei cpud
0 S xxx 3573884 3573065 0 80 0 - 2627 - 09:50 pts/2 00:00:00 grep --color=auto -Ei cpud
$ echo $?
0
$ cpud -d -init
2022/05/27 09:50:23
CPUD:Args [cpud -d -init] pid 3573910 *runasinit true *remote false
2022/05/27 09:50:23
CPUD:Running as Init
2022/05/27 09:50:23
CPUD:Kicked off startup jobs, now serve ssh
2022/05/27 09:50:23
CPUD:Start the process reaper
2022/05/27 09:50:23 CPUD:starting ssh server on port 23
2022/05/27 09:50:23 CPUD:err listen tcp :23: bind: permission denied
2022/05/27 09:50:23
CPUD:server.ListenAndServer returned
2022/05/27 09:50:23 CPUD: All startup jobs exited
2022/05/27 09:50:23 CPUD: Syncing filesystems
2022/05/27 09:50:23
CPUD:Reaped 1 procs
$ echo $?
0
$ ps -Afl | grep -Ei cpud
0 S xxx 3573939 3573065 0 80 0 - 2627 - 09:50 pts/2 00:00:00 grep --color=auto -Ei cpud
$ echo $?
0
from cpu.
Ok, cpud -d -init
under root seems to fix the bind issue and I can connect with cpu localhost
on the same machine. Thanks for the pointer!
Would you know something about the other points?
from cpu.
Related Issues (20)
- cpu command does not work in non-interactive environment HOT 1
- crash on IO copy HOT 1
- `cpud` command hang when `dsEnabled` is false HOT 2
- doc.go's out of date
- private key inline
- cmd/cpud doesn't build on osx HOT 1
- Update README HOT 1
- running dbench fails on cpu due to unimplemented functions HOT 1
- makefile fails on missing gox command HOT 1
- Missing move, check on lock
- \r \n line insertions on Darwin to Linux in terminal HOT 3
- forward p9p services into remote
- Missing much of /etc in Docker cpud? HOT 2
- opportunities to improve cpu performance? HOT 2
- No file locking complicates running some programs from cpu HOT 2
- Using cpu as a module in another application
- Docker example not working on Debian 12 amd64
- Running the docker server changes permissions of /dev/ptmx, crashing tmux
- cpud did not connect for more than 100ms HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpu.