Git Product home page Git Product logo

Comments (10)

KillingSpark avatar KillingSpark commented on June 4, 2024 1

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

  1. notifications_dir to point to any directory which will contain all notification sockets
  2. unit_dirs which you can point to a number of directories to load unit files from

See config/rustysd_config.toml for examples :)

from rustysd.

KillingSpark avatar KillingSpark commented on June 4, 2024

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.

KillingSpark avatar KillingSpark commented on June 4, 2024

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.

pwFoo avatar pwFoo commented on June 4, 2024

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.

KillingSpark avatar KillingSpark commented on June 4, 2024

You mean something like a "runtime_dir" cinfoguration/argument?

from rustysd.

pwFoo avatar pwFoo commented on June 4, 2024

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.

pwFoo avatar pwFoo commented on June 4, 2024

unit_dir, notifications_dir works fine! Thanks!

from rustysd.

pwFoo avatar pwFoo commented on June 4, 2024

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.

KillingSpark avatar KillingSpark commented on June 4, 2024

This is a leftover from when this was implemented. But it was not good enough, so i removed that feature again

from rustysd.

pwFoo avatar pwFoo commented on June 4, 2024

I removed the options and redirect the stdout / stderr to /var/log/rustysd.log.
Ok for the moment 👍

from rustysd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.