Comments (2)
Hmm, but on Linux systems there's no /usr/libexec -- so what is the way to go on Linux for installing daemons and avoiding them to be accidentally started multiple times?
One way would be to look whether the socket exists, and if yes, whether there's something listening upon connect.
Any ideas /cc @reynir
from albatross.
On Linux the systemd scripts use systemd socket activation -- A separate albatross_console.socket systemd file exists that creates the socket and on connection starts up albatross-console --systemd-socket-activation
(via albatross_console.service) and passes the socket as a file descriptor. If used this way then creating the socket is handled by systemd and I think it should avoid recreating/claiming existing sockets. But this of course does not prevent a user from manually running albatross-console
.
I would be in favor of moving the daemon binaries to /usr/libexec/ as that would make it less likely a user would run the binary directly.
from albatross.
Related Issues (20)
- Systemd: include network.target in After= HOT 3
- Provide an "info" subcommand that does not list all secrets (command line parameters)
- use solo5-elftool opam package instead of calling out to solo5-elftool HOT 1
- query manifest failure HOT 7
- albatross-daemon fails to restore unikernels because fifo directory does not exist HOT 2
- exception HOT 2
- add a restart command
- specified bridge(s) does not match with the manifest HOT 2
- albatross.deb for ubuntu 22.04 HOT 2
- rework albatross-stats HOT 2
- debian packaging: should libnl-3-dev and libnl-route-3-dev be a dependency? HOT 1
- Albatross-tls-endpoint HOT 4
- Handle 404 in albatross-client update
- document and smooth the CA experience HOT 1
- Don't fill `syslog` with DEBUG logs from `albatross_influx`
- Record start time and report it in `albatross-client info` HOT 2
- albatross_daemon keeps all unikernels in memory
- for UI add uuids
- tls-inetd merged with tls-endpoint should be nicer
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 albatross.