summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* util-lib: move main() definition macros to its own header fileLennart Poettering2018-11-1935-23/+60
| | | | | | | | | This way, we can extend the macro a bit with stuff pulled in from other headers without this affecting everything which pulls in macro.h, which is one of our most basic headers. This is just refactoring, no change in behaviour, in prepartion for later changes.
* Merge pull request #10811 from keszybz/define-main-through-macroLennart Poettering2018-11-1932-701/+472
|\ | | | | Define main through macro
| * volatile-root: define main through macroZbigniew Jędrzejewski-Szmek2018-11-171-22/+12
| |
| * tty-ask-password-agent: define main through macroZbigniew Jędrzejewski-Szmek2018-11-171-21/+18
| |
| * sysv-generator: configure logging before use and define main through macroZbigniew Jędrzejewski-Szmek2018-11-171-21/+16
| |
| * stdio-bridge: define main through macroZbigniew Jędrzejewski-Szmek2018-11-171-94/+48
| |
| * sleep: define main through macroZbigniew Jędrzejewski-Szmek2018-11-171-9/+8
| |
| * remount-fs: configure logging before use and define main through macroZbigniew Jędrzejewski-Szmek2018-11-171-44/+31
| |
| * random-seed: configure logging before use and define main through macroZbigniew Jędrzejewski-Szmek2018-11-171-46/+27
| |
| * quotacheck: configure logging before use and define main through macroZbigniew Jędrzejewski-Szmek2018-11-171-11/+12
| |
| * portabled: add missing STOPPING=1 notificationZbigniew Jędrzejewski-Szmek2018-11-171-0/+3
| |
| * portabled: define main through macroZbigniew Jędrzejewski-Szmek2018-11-171-16/+9
| |
| * path: define main through macroZbigniew Jędrzejewski-Szmek2018-11-171-6/+7
| |
| * makefs: define main through macroZbigniew Jędrzejewski-Szmek2018-11-171-19/+14
| |
| * notify: define main through macroZbigniew Jędrzejewski-Szmek2018-11-171-40/+25
| |
| * machined: define main through macroZbigniew Jędrzejewski-Szmek2018-11-171-15/+9
| |
| * user-runtime-dir: define main through macroZbigniew Jędrzejewski-Szmek2018-11-171-14/+11
| |
| * logind: define main through macroZbigniew Jędrzejewski-Szmek2018-11-171-19/+11
| |
| * inhibit: define main through macroZbigniew Jędrzejewski-Szmek2018-11-171-21/+12
| |
| * cat: define main through macroZbigniew Jędrzejewski-Szmek2018-11-171-15/+10
| |
| * import: define mains through macroZbigniew Jędrzejewski-Szmek2018-11-174-35/+25
| |
| * id128: define main through macroZbigniew Jędrzejewski-Szmek2018-11-171-6/+5
| |
| * hwdb: define main through macroZbigniew Jędrzejewski-Szmek2018-11-171-6/+5
| |
| * hostnamectl: define main through macroZbigniew Jędrzejewski-Szmek2018-11-171-10/+7
| |
| * fsck: configure logging before use and define main through macroZbigniew Jędrzejewski-Szmek2018-11-171-60/+36
| | | | | | | | | | | | | | There's a slight change in logic: before, when rebooting the machine, we could also request quotacheck (by touching /run/systemd/quotacheck) if the fsck helper set FSCK_ERROR_CORRECTED. This is just a race, and doesn't matter much in practice.
| * escape: use free_and_replaceZbigniew Jędrzejewski-Szmek2018-11-171-5/+3
| |
| * escape: define main through macroZbigniew Jędrzejewski-Szmek2018-11-171-50/+30
| |
| * detect-virt: define main through macroZbigniew Jędrzejewski-Szmek2018-11-171-31/+17
| |
| * coredump: define main through macroZbigniew Jędrzejewski-Szmek2018-11-171-14/+10
| |
| * boot-check-no-failures: define main through macroZbigniew Jędrzejewski-Szmek2018-11-171-14/+9
| |
| * ac-power: define main through macroZbigniew Jędrzejewski-Szmek2018-11-172-8/+17
| | | | | | | | | | | | I decided to use a separate definition for this because it's too easy to return positive from functions which don't need this distinction and only return negative on error and success otherwise.
| * Introduce main definer and use it in cgtopZbigniew Jędrzejewski-Szmek2018-11-172-29/+25
| | | | | | | | This actually fixes one bogus return code in error path.
* | pam_systemd: suppress LOG_DEBUG log messages if debugging is offLennart Poettering2018-11-191-2/+4
| | | | | | | | | | | | | | | | | | In the PAM module we need to suppress LOG_DEBUG messages manually, if debug logging is not on, as PAM won't do this for us. We did this correctly for most log messages already, but two were missing. Let's fix those too. Fixes: #10822
* | Merge pull request #10698 from yuwata/udevd-replace-udev-deviceLennart Poettering2018-11-191-356/+450
|\ \ | | | | | | udevd: replace udev_device by sd_device
| * | udevd: replace udev_device in struct event by sd_deviceYu Watanabe2018-11-171-66/+130
| | |
| * | udevd: update several log messagesYu Watanabe2018-11-171-50/+49
| | |
| * | udevd: decrease indentationYu Watanabe2018-11-171-10/+6
| | |
| * | udevd: rename event sources in struct eventYu Watanabe2018-11-171-6/+7
| | |
| * | udevd: capitalize log messages in on_sigchld()Yu Watanabe2018-11-171-9/+13
| | |
| * | udevd: also use sd_device_monitor_start() in worker_main()Yu Watanabe2018-11-171-67/+53
| | |
| * | udevd: use sd_device_monitor_start() in manager_new()Yu Watanabe2018-11-171-16/+9
| | |
| * | udevd: replace udev_monitor by sd_device_monitorYu Watanabe2018-11-171-51/+62
| | |
| * | udevd: use safe_fork() to spawn worker processYu Watanabe2018-11-171-27/+20
| | |
| * | udevd: make worker_process_device() take sd_device instead of udev_deviceYu Watanabe2018-11-171-8/+17
| | |
| * | udevd: make worker_lock_block_device() take sd_device instead of udev_deviceYu Watanabe2018-11-171-16/+38
| | | | | | | | | | | | Also adds many debug logs.
| * | udevd: split worker_spawn() and manager_free() in small piecesYu Watanabe2018-11-171-171/+187
| | |
* | | Merge pull request #10809 from keszybz/unit-log-resultLennart Poettering2018-11-199-34/+16
|\ \ \ | | | | | | | | Add helper function for logging unit results
| * | | TODO: add entryZbigniew Jędrzejewski-Szmek2018-11-161-0/+2
| | | |
| * | | core: introduce a helper function to wrap unit_log_{success,failure}Zbigniew Jędrzejewski-Szmek2018-11-168-34/+14
| | | | | | | | | | | | | | | | | | | | It's inline so that the compiler can easily optimize away the call to get status string.
* | | | Merge pull request #10814 from poettering/logind-suspend-fallbackLennart Poettering2018-11-191-1/+9
|\ \ \ \ | | | | | | | | | | if we need to hibernate/suspend-then-hibernate/hybrid-sleep due to keypress/lid switch but can't, fallback to regular suspend