-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User Services 2.0 #723
base: master
Are you sure you want to change the base?
User Services 2.0 #723
Commits on Oct 26, 2024
-
librc: Add support for user paths.
Adds two functions to librc, rc_set_user() and rc_is_user(). The latter just queries if the former was called. The former instantiates paths for locations that make sense for user services: Script dirs get set to $XDG_CONFIG_HOME/openrc/{init.d,conf.d}, and variations of the system sysconf dirs with "user.d/" as a suffix. Runlevel dir is set to $XDG_CONFIG_HOME/openrc/runlevels, and the svcdir is set to $XDG_RUNTIME_DIR/openrc. XDG_CONFIG_HOME falls back to $HOME/.config should it be unset. XDG_RUNTIME_DIR has no fallback, and thus required for user services.
Configuration menu - View commit details
-
Copy full SHA for 2f74fe9 - Browse repository at this point
Copy the full SHA 2f74fe9View commit details
Commits on Oct 28, 2024
-
Add a new function to librc, `rc_usrconfdir()`, whick returns the location where user-made rc.conf exists. The user-made configuration is loaded first over the global config, so it takes priority when resolving variables, thus "overriding" global configs.
Configuration menu - View commit details
-
Copy full SHA for db32766 - Browse repository at this point
Copy the full SHA db32766View commit details -
openrc: Allow user-specific env vars.
Those variables are required for user scripts to work properly.
Configuration menu - View commit details
-
Copy full SHA for 5a9ef6c - Browse repository at this point
Copy the full SHA 5a9ef6cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 74e9f17 - Browse repository at this point
Copy the full SHA 74e9f17View commit details -
openrc-run: Chdir into HOME for user services.
Some services might expect to be in home, and may behave unexpectedly for the user, e.g. any program started via dbus, and this matches systemd-user behaviour.
Configuration menu - View commit details
-
Copy full SHA for 6d32d9d - Browse repository at this point
Copy the full SHA 6d32d9dView commit details -
misc: Add --user/-U flag to common flags.
Some binaries required to have their `atexit(cleanup)` calls moved to after argument parsing, since setting user mode also adds an atexit call, and cleaning up user paths should only happen after the cleanup of the application is done, thus needs to be set first.
Configuration menu - View commit details
-
Copy full SHA for a896659 - Browse repository at this point
Copy the full SHA a896659View commit details
Commits on Nov 1, 2024
-
openrc-run: Move argument parsing before env setup
We need to handle --user before calling any functions that interact with librc.
Configuration menu - View commit details
-
Copy full SHA for aa90ecd - Browse repository at this point
Copy the full SHA aa90ecdView commit details
Commits on Nov 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3bc175b - Browse repository at this point
Copy the full SHA 3bc175bView commit details