Comments (10)
I honestly forgot I already had these implemented in the config. Do you use a rustysd_config.toml? You can specify a path to it with the "-c" "--config" cli args.
So rustysd -c /etc/rustysd
will load a rustysd_config.toml from this directory. In this you can specify
notifications_dir
to point to any directory which will contain all notification socketsunit_dirs
which you can point to a number of directories to load unit files from
See config/rustysd_config.toml for examples :)
from rustysd.
So currently you can use a config file (see config/rustysd_config.toml). The path to that must be given with the -c / --config argument. In the future the default path should be something like /etc/rustysd_config.toml but for now it's "./config/rustysd_config.toml"
from rustysd.
Or you could of course edit the default path in src/config.rs to be /etc/rustysd_config.toml if you'd like :D
from rustysd.
Possibility to configure some paths would be great!
At the moment all directories need to be at "/".
- /unitfiles ( -> /etc)
- /notifications ( -> /var/run ?)
For the moment it's ok and works fine (if needed with symlink to the directories)
from rustysd.
You mean something like a "runtime_dir" cinfoguration/argument?
from rustysd.
Different config options / arguments like -unitfiles_dir=/etc/unitfiles
oder -unitfiles_dir=/etc/rustysd/units
instead of hardcoded(?) ./unitfiles/
or -socket_dir=/var/run/rustysd
instead of ./notifications
.
Would be nice to have configurable directories and files.
from rustysd.
unit_dir, notifications_dir works fine! Thanks!
from rustysd.
rustysd isn't log to a own file. Isn't implemented yet?
logging_dir = "/var/log"
log_to_stdout = false
log_to_disk = true
notifications_dir = "var/run/rustysd"
unit_dirs = [ "etc/unitfiles" ]
target_unit = "default.target"
Do I need to set a file to logging_dir
?
Services logging to /var/log/<SERVICE_NAME>.log by unitfile option. But rustysd itself isn't logging to a file.
from rustysd.
This is a leftover from when this was implemented. But it was not good enough, so i removed that feature again
from rustysd.
I removed the options and redirect the stdout / stderr to /var/log/rustysd.log.
Ok for the moment
from rustysd.
Related Issues (20)
- Shutdown should honor dependencies HOT 3
- Removing units HOT 3
- Weaken dependencies if only 'wanted' not 'required' HOT 1
- macos support (osx) HOT 2
- rustybox and supervising process riffol HOT 2
- Container based OS: busybox + rustysd + crun + gpm build with linuxkit HOT 9
- ".service" should be optional to start a service? HOT 4
- Restarting units over the control interface does not report dependency issues HOT 1
- Restarted units wait for socket activation but the sockets are not watched HOT 1
- Redesign/Rewrite to move from the explorative code to a well designed system HOT 10
- Restarting of services and socket activation HOT 1
- create an actual UI for rsdctl HOT 3
- Missing control commands HOT 2
- Stop commands might get ignored if the unit is currently restarting HOT 1
- The exit handler should not do reactivation if the status is 'Starting' (or any other operation is currently running) HOT 1
- Refactor the way service executables are started HOT 5
- Great name for the project - share your thoughts and ideas. HOT 9
- [Offtopic] Busybox like applet structure / routing HOT 15
- socket instead of tcp port and default socket / port? HOT 3
- Quick and easy way to get this installed on a bare-metal non-container Linux 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 rustysd.