-
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 #573
User Services #573
Commits on Jul 19, 2024
-
openrc: dynamic paths for user services
add two api functions, `rc_service_dir` and `rc_sysconf_dir`, both are generate paths (and sub-paths) for resources, and meant to replace the hardcoded variables like `RC_SVCDIR`. those functions differ by dynamically switching between the system path, or the user path, set in their home folder or runtime directory. this lays out the intial support for user services. Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c34fcd6 - Browse repository at this point
Copy the full SHA c34fcd6View commit details -
openrc-user: init script for users
adds a new multiplexed script for starting user sessions. it also sets up XDG_RUNTIME_DIR. Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fd961d2 - Browse repository at this point
Copy the full SHA fd961d2View commit details
Commits on Jul 20, 2024
-
openrc-pam: auto-launch user services via pam
Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ad169aa - Browse repository at this point
Copy the full SHA ad169aaView commit details -
openrc-run: allow multiplexed symlinks to live outside init.d
use the realpath of the target to locate which sysconf dir it's in, using it as a base to load the config file. the service path is then normalized from the symlink without dereferencing it. Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f03a640 - Browse repository at this point
Copy the full SHA f03a640View commit details -
librc/librc-depend.c: small refactor
some changes for code redability, and fixing leaking the whole internals of the deptree at the end of rc_deptree_update. Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 18be0d7 - Browse repository at this point
Copy the full SHA 18be0d7View commit details -
librc, openrc-pam: instantiate user.<username> service automatically
it's created in /run/openrc/dynamic and linked to the service in /etc at login. Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c3ccaee - Browse repository at this point
Copy the full SHA c3ccaeeView commit details -
librc-misc.c, rc.c, rc-status.c: fix memory leaks
Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f4d7946 - Browse repository at this point
Copy the full SHA f4d7946View commit details -
Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a8dd10c - Browse repository at this point
Copy the full SHA a8dd10cView commit details -
openrc/rc-logger.c: set log path for user dynamically
since it's not possible to differentiate the option set from an user configuration file versus the system wide, for user-mode openrc, use XDG_STATE_DIR (~/.local/state) unconditionally for now. Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5caae0d - Browse repository at this point
Copy the full SHA 5caae0dView commit details -
openrc-pam: use 'shared_module' for pam_openrc
fixes the undefined reference build failure on freebsd, allowing the module to build while referencing 'environ' in misc.c. it also is the more correct meson function for pam modules. Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a9a26fe - Browse repository at this point
Copy the full SHA a9a26feView commit details -
openrc-shutdown: simplify broadcast function
Get rid of the alarm/setjmp/longjmp. Trust that the kernel will not block with O_NDELAY. Use write() instead of stdio. Bug: https://bugs.gentoo.org/923326 Signed-off-by: Mike Gilbert <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3586a89 - Browse repository at this point
Copy the full SHA 3586a89View commit details -
Generate pkg-config files directly
- Remove 'pkgconfig' subdir - use meson 'pkgconfig' module to generate and install appropriate .pc files when required. - add `rc_path` variable to installed pkgconfig files Signed-off-by: Matt Jolly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1485cfb - Browse repository at this point
Copy the full SHA 1485cfbView commit details -
shared/plugin.c: fix incompatible function warning.
Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 15de84d - Browse repository at this point
Copy the full SHA 15de84dView commit details -
start-stop-daemon: open syslog
The stop schedule code calls syslog, so we need to open a syslog connection so the process name will get properly logged on musl, and we can ensure the pid gets logged and the right facility is used.
Configuration menu - View commit details
-
Copy full SHA for e46a163 - Browse repository at this point
Copy the full SHA e46a163View commit details -
openrc-run.c: allow --user on shebangs
Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 26314e9 - Browse repository at this point
Copy the full SHA 26314e9View commit details -
Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9432319 - Browse repository at this point
Copy the full SHA 9432319View commit details -
user-guide.md add user-services documentation
Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for df50d89 - Browse repository at this point
Copy the full SHA df50d89View commit details -
librc.c: use rc_runlevel_dir for rc_service_add
Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e849ef3 - Browse repository at this point
Copy the full SHA e849ef3View commit details -
openrc-pam: fix session count logic
Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9cde77f - Browse repository at this point
Copy the full SHA 9cde77fView commit details -
openrc-pam: do not start a login shell
Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d5ebe7c - Browse repository at this point
Copy the full SHA d5ebe7cView commit details -
Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e29e284 - Browse repository at this point
Copy the full SHA e29e284View commit details -
openrc-pam: use full path to mark the service
Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0fb6b73 - Browse repository at this point
Copy the full SHA 0fb6b73View commit details -
librc.c: return "none" from rc_runlevel_get when in user mode.
Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6b0d03e - Browse repository at this point
Copy the full SHA 6b0d03eView commit details -
Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7de84f2 - Browse repository at this point
Copy the full SHA 7de84f2View commit details
Commits on Jul 21, 2024
-
meson.build: restore pkg-config filename to openrc.pc
Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 99a5507 - Browse repository at this point
Copy the full SHA 99a5507View commit details -
openrc-run: fix check for argument count
Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 980bfe6 - Browse repository at this point
Copy the full SHA 980bfe6View commit details -
Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 255138d - Browse repository at this point
Copy the full SHA 255138dView commit details -
user_init.c: use a single argument for -c
Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0dcc569 - Browse repository at this point
Copy the full SHA 0dcc569View commit details -
Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 12b194b - Browse repository at this point
Copy the full SHA 12b194bView commit details -
Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8e25129 - Browse repository at this point
Copy the full SHA 8e25129View commit details -
user-init.sh: print message on error
Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for dce704d - Browse repository at this point
Copy the full SHA dce704dView commit details -
rc.c: remove superuser error message
Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 232c398 - Browse repository at this point
Copy the full SHA 232c398View commit details -
Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fdb1d0d - Browse repository at this point
Copy the full SHA fdb1d0dView 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. Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 53de57e - Browse repository at this point
Copy the full SHA 53de57eView commit details -
rc-logger.c: fix log path for user-mode
Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6221248 - Browse repository at this point
Copy the full SHA 6221248View commit details -
Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 056f6df - Browse repository at this point
Copy the full SHA 056f6dfView commit details
Commits on Jul 22, 2024
-
user-init.c: redirect stdin to /dev/null and start a login shell
Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 114bf66 - Browse repository at this point
Copy the full SHA 114bf66View commit details