summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-03-17Release version 219.14.elogind/masterAndy Wingo
2016-03-17Clear pending action after resume from delayed sleep.Andy Wingo
2016-03-16Emit PrepareForSleep when resuming.Andy Wingo
2016-03-06v219.13Andy Wingo
2016-03-06Fixes to user and session savingAndy Wingo
* src/login/logind-dbus.c (method_create_session): No need to save session here, as session_send_create_reply will do it. * src/login/logind-session-dbus.c (session_send_create_reply): On the other hand we do need to save the user here, so the file marks them as being active.
2016-03-06Classify processes from sessions into cgroupsAndy Wingo
Create a private cgroup tree associated with no controllers, and use it to map PIDs to sessions. Since we use our own path structure, remove internal cgroup-related helpers that interpret the cgroup path structure to pull out users, slices, and scopes.
2016-03-06Set up cgroups when logind startsAndy Wingo
This code is from systemd.
2016-03-06Re-add cgroups agent to the buildAndy Wingo
The helper is now named logind-cgroups-agent.
2016-03-06Revert "Remove src/cgroups-agent"Andy Wingo
This reverts commit 024e2f0da33fa05f4d5aa696e9f715264e9cd41f.
2016-03-06Fix check for libcap to re-set LIBS; add -lrt for mq_unlinkAndy Wingo
2015-09-02Update READMEAndy Wingo
2015-09-01v219.12elogind/v219.12Andy Wingo
2015-09-01Fix argument order when checking inhibitorsAndy Wingo
2015-09-01Stop sessions on ReleaseSessionelogind/v219.11Andy Wingo
2015-09-01Fix the login monitorAndy Wingo
* src/login/logind.c (main): Create /run/systemd/machines, so that the login monitor works. * configure.ac: v219.10.
2015-09-01v219.9elogind/v219.9Andy Wingo
2015-09-01PKTTYAGENT make variableAndy Wingo
* Makefile.am (PKTTYAGENT): Define as a variable so that users can make PKTTYAGENT=/whatever to select a specific pkttyagent path.
2015-08-29v219.8Andy Wingo
2015-08-29Add poweroff, suspend etc. loginctl commandsAndy Wingo
* src/login/loginctl.c: Add poweroff, reboot, suspend, hibernate, and hybrid-sleep commands. Normally these are handled by systemctl but since elogind is targeted at the no-systemd use case, we incorporate them here.
2015-08-29Incorporate sleep.conf into logind.confAndy Wingo
* src/login/logind-action.c (shutdown_or_sleep, do_sleep): Take modes from the manager instead of parsing them ourselves. * src/login/logind-dbus.c (execute_shutdown_or_sleep): Adapt to shutdown_or_sleep prototype change. * src/login/logind-gperf.gperf: Add config items from sleep.conf. * src/login/logind.c (manager_new): Wire up defaults for new config items. (manager_free): Free new config items. (manager_parse_config_file): Arrange to parse a single elogind/logind.conf file, not grovelling all over the filesystem. Take the file from the ELOGIND_CONF_FILE environment variable if present.
2015-08-26v219.7elogind/v219.7Andy Wingo
2015-08-26Add --with-libcap optionAndy Wingo
* configure.ac: Add --with-libcap option. * Makefile.am (libelogind_shared_la_LDFLAGS): Add CAP_LDFLAGS.
2015-08-23v219.6elogind/v219.6Andy Wingo
2015-08-23Handle suspend/hibernate/hybrid-suspend/shutdown/reboot directlyAndy Wingo
* configure.ac: Get paths of halt and reboot. * Makefile.am (systemsleepdir, systemshutdowndir): New variables. Look in them for hooks to run. * src/login/logind-action.c: Inline the salient bits from systemd's system-sleep.c here. * src/login/logind-dbus.c (execute_shutdown_or_sleep): Call our own shutdown_or_sleep helper instead of invoking a systemd method. * src/login/logind.h: Declare shutdown_or_sleep.
2015-08-23Beginnings of handling suspend/etc within logindAndy Wingo
Since we are catching the keys, we might as well just do suspend/reboot/etc handling here.
2015-08-23Remove unused manager routinesAndy Wingo
Remove routines to call into systemd to manage jobs and units.
2015-08-23logind.c cleanupAndy Wingo
* src/login/logind.c: Remove unused vcsa dispatch function. Add mkdir_label header. Don't mkdir /run/systemd; we require that it be mounted over ramfs or tmpfs.
2015-08-23Remove systemd subscription and user/session unitsAndy Wingo
This removes attempts by logind to listen to systemd messages over the bus, and to start and/or manage units associated with sessions and users.
2015-08-23Remove support for auto-spawning VTsAndy Wingo
Auto-spawning VTs requires systemd in practice. If you're using systemd you can just use its logind :)
2015-08-20Actually working with pamelogind/v219.5Andy Wingo
* src/login/logind-user.c (user_start): Don't start slices and systemd-user services. * src/login/logind-dbus.c (method_create_session): Send a reply directly instead of waiting on systemd that isn't there. * configure.ac: Bump version.
2015-08-20Don't try to set up cgroups for new userselogind/v219.4Andy Wingo
* src/login/logind-session.c (session_start): Punt on setting up a scope.
2015-08-20Create /run/systemd as neededelogind/v219.3Andy Wingo
* src/login/logind.c (main): Also create /run/systemd at startup. * configure.ac: Bump to 219.3.
2015-08-19Play better with non-FHS distroselogind/v219.2Andy Wingo
* Makefile.am: Remove rootprefix, rootbindir, and rootlibexecdir. udevrulesdir is substed from configure.ac. Adapt distcheck. * autogen.sh: Make more normal. * configure.ac: Add --with-udevrulesdir. Remove --with-rootprefix. Detect bin dir for udev.
2015-08-19Remove sd-path interfaceAndy Wingo
* src/libelogind/sd-path/sd-path.c: * src/systemd/sd-path.h: Remove files. These interfaces are not compatible with Guix. * Makefile.am: Adapt.
2015-08-18v219.1elogind/v219.1Andy Wingo
* configure.ac: Bump version.
2015-08-18Add rules to build and install the public libelogind libraryAndy Wingo
* Makefile.am: Actually build and install libelogind.
2015-08-18Fix distcheckelogind/v219.0Andy Wingo
2015-08-18Fix logind startupAndy Wingo
* src/login/logind.c (manager_connect_bus): Warn instead of error if we can't subscribe to updates from systemd. Perhaps we should remove this entirely.
2015-08-16configure.ac actually defines OUR_CFLAGSAndy Wingo
* configure.ac (OUR_CFLAGS): Actually define. This was preventing test executables from linking as they weren't getting the -fPIE flag.
2015-08-16Remove sd_is_mqAndy Wingo
* src/systemd/sd-daemon.h: * src/libelogind/sd-daemon/sd-daemon.c (sd_is_mq): Remove unused function that depended on librt. Ultimately we should remove this header at some point.
2015-08-15Rename systemd-logind to logind.Ricardo Wurmus
2015-08-15Rename PAM configuration file.Ricardo Wurmus
2015-08-15Remove reference to non-existing file.Ricardo Wurmus
2015-08-15Do not install aliases for units.Ricardo Wurmus
2015-08-15Ignore generated libelogind files.Ricardo Wurmus
2015-08-15rename libsystemd*.pc.in to libelogind*.pc.inRicardo Wurmus
2015-08-15restore libsystemd-pkgconfig.xml as libelogind-pkgconfig.xmlRicardo Wurmus
2015-08-15Replace systemd.version with elogind.version.Ricardo Wurmus
2015-08-15Restore shared XML files.Ricardo Wurmus
* man/less-variables.xml, man/standard-conf.xml, man/standard-options.xml, man/user-system-options.xml: Restore files from upstream (removed in commit d3ad6bf3).
2015-04-20Disable -fltoAndy Wingo
With binutils 2.25, the following error occurred: /tmp/ccx3cAlA.ltrans10.ltrans.o: In function `bus_error_name_to_errno.5271': /home/wingo/src/elogind/src/libelogind/sd-bus/bus-error.c:113: undefined reference to `__stop_BUS_ERROR_MAP' /home/wingo/src/elogind/src/libelogind/sd-bus/bus-error.c:113: undefined reference to `__start_BUS_ERROR_MAP' collect2: error: ld returned 1 exit status