summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2012-04-10dbus: make the service property StartLimitAction writeableMichael Olbrich
2012-04-10dbus: add generic DEFINE_BUS_PROPERTY_SET_ENUM() macro for enum propertiesMichael Olbrich
The defined function can be used as BusPropertySetCallback.
2012-04-10dbus: add data argument to BusPropertySetCallbackMichael Olbrich
BusPropertyCallback already has the argument. It is necesary for the callback to know what data to access.
2012-04-10watchdog: really return the actual watchdog timeoutMichael Olbrich
In the current code setting the return argument is never reached.
2012-04-10move list.h, macro.h, ioprio.h to shared/Kay Sievers
2012-04-10move pager.[ch] to shared/Kay Sievers
2012-04-10move cgroup-util.[ch] to shared/Kay Sievers
2012-04-10udev: fix gcc warnings showing up after adding $(AM_CFLAGS)Kay Sievers
2012-04-10util: move ACL code into internal libraryKay Sievers
2012-04-10util: move all to shared/ and split external dependencies in separate ↵Kay Sievers
internal libraries Before: $ ldd /lib/systemd/systemd-timestamp linux-vdso.so.1 => (0x00007fffb05ff000) libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f90aac57000) libcap.so.2 => /lib64/libcap.so.2 (0x00007f90aaa53000) librt.so.1 => /lib64/librt.so.1 (0x00007f90aa84a000) libc.so.6 => /lib64/libc.so.6 (0x00007f90aa494000) /lib64/ld-linux-x86-64.so.2 (0x00007f90aae90000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f90aa290000) libattr.so.1 => /lib64/libattr.so.1 (0x00007f90aa08a000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f90a9e6e000) After: $ ldd systemd-timestamp linux-vdso.so.1 => (0x00007fff3cbff000) libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f5eaa1c3000) librt.so.1 => /lib64/librt.so.1 (0x00007f5ea9fbb000) libc.so.6 => /lib64/libc.so.6 (0x00007f5ea9c04000) /lib64/ld-linux-x86-64.so.2 (0x00007f5eaa3fc000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f5ea9a00000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f5ea97e4000)
2012-04-10udev: set errno = ENOSYS for removed interfacesKay Sievers
2012-04-09udev: remove RUN+="socket:.." and udev_monitor_new_from_netlink()Kay Sievers
2012-04-09udev: convert 'uaccess' to a builtinKay Sievers
2012-04-08udev: keymap: remove rootprefix mangling from scriptKay Sievers
2012-04-08udev: fix test-udev binaryKay Sievers
2012-04-08udev: remove support for /lib/udev/devices/; tmpfiles should be usedKay Sievers
2012-04-08udev: fix rules sort orderTom Gundersen
Commit 91418155ae9034f466d436c314cd136309bc557d moved around the code, but did not chang ethe array index.
2012-04-08udev: switch to systemd logging functionsKay Sievers
2012-04-05systemd: add hardware watchdog supportLennart Poettering
This adds minimal hardware watchdog support to PID 1. The idea is that PID 1 supervises and watchdogs system services, while the hardware watchdog is used to supervise PID 1. This adds two hardware watchdog configuration options, for the runtime watchdog and for a shutdown watchdog. The former is active during normal operation, the latter only at reboots to ensure that if a clean reboot times out we reboot nonetheless. If the runtime watchdog is enabled PID 1 will automatically wake up at half the configured interval and write to the watchdog daemon. By default we enable the shutdown watchdog, but leave the runtime watchdog disabled in order not to break independent hardware watchdog daemons people might be using. This is only the most basic hookup. If necessary we can later on hook up the watchdog ping more closely with services deemed crucial.
2012-04-05job: use a lookup table for merging of job typesMichal Schmidt
It is easier to see what job_type_merge() is doing when the merging rules are written in the form of a table. job_type_is_superset() contained redundant information. It can be simplified to a simple rule: Type A is a superset of B iff merging A with B gives A. Two job types are conflicting iff they are not mergeable. Make job_type_lookup_merge() the core function to decide the type merging. All other job_type_*() are just short wrappers around it. They can be inline. test-job-type gives the same results as before. btw, the systemd binary is smaller by almost 1 KB.
2012-04-04udev: replace UDEV_EXPORT with _public_Kay Sievers
2012-04-04udev: ata_id - remove assert() until we switch over to systemd loggingKay Sievers
2012-04-04udev: enable loggingKay Sievers
2012-04-04keymap: Add support for Lenovo v480 touchpad toggle hotkey.Ayan George
Signed-off-by: Martin Pitt <martinpitt@gnome.org>
2012-04-04udev: fix gcc warningsKay Sievers
2012-04-04Merge branch 'master' of ssh://git.freedesktop.org/git/systemd/systemdKay Sievers
2012-04-04udev: fix gcc warningsKay Sievers
2012-04-04move imported udev into placeKay Sievers
2012-04-04journal: don't export the boot id twice per entryLennart Poettering
2012-04-03man: update documentation of special unitsLennart Poettering
2012-04-03man: document special journal fieldsLennart Poettering
2012-04-03import udev repositoryKay Sievers
2012-04-03logind: log with AUTH facilityLennart Poettering
2012-04-03fix a couple of AF_UNIX connect() callsLennart Poettering
2012-04-03journal: in json and export mode use double underscores to prefix location ↵Lennart Poettering
fields Many programming languages don't allow variable names beginning in dots, hence let's use double underscores for the location fields instead. This gets us the simple rule: __ is the prefix for location fields (i.e. fields that are used to identify entries, rather than part of the entries) _ is the prefix for trusted fields (i.e. those fields journald itself adds to all entries) no prefix for unrusted fields (i.e. all fields normal client code sends us)
2012-04-03systemctl: make -f short for both --follow and --forceLennart Poettering
2012-04-03service: schedule JOB_RESTART from SERVICE_AUTO_RESTART stateDavid Ward
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=45511
2012-04-02analyze: Cosmetic exit when the bootup is not yet complete when plotting.Colin Guthrie
This is just a nicer message than a python traceback.
2012-04-02Revert "socket: if we fail to create an instantiated service for a socket, ↵Michal Schmidt
don't put the socket in failure mode" This reverts commit 9586cdfab6a2638078702b7fea7e16b3a71899e2. (but not the TODO hunk). The bug was already fixed by 1a710b43. And if other errors occur, we don't want to leave the socket active in order to avoid having socket tarpits.
2012-04-02install: check for proper return from dirent_ensure_typeDave Reisner
Fixes 'systemctl list-unit-files', which previously returned only: Failed to issue method call: No such file or directory
2012-04-02journal: implicitly add code location to all messages logged with the native ↵Lennart Poettering
interface This logic can be turned off by defining SD_JOURNAL_SUPPRESS_LOCATION before including sd-journal.h. This also saves/restores errno in all logging functions, in order to be useful as logging calls without side-effects. This also adds a couple of __unlikely__ around the early checks in the logging calls, in order to minimize the runtime impact.
2012-04-02journal: decrease default mmap window size to allow a bigger number of ↵Lennart Poettering
journals to be traversed in parallel
2012-04-02bash-completion: update naming of loginctlDave Reisner
18b754d3 changed the name of systemd-loginctl to loginctl, but didn't update the bash-completion to match.
2012-03-30rename /etc/systemd/systemd-{login,journal}d.conf to {login,journal}d.confKay Sievers
2012-03-28job: add debug prints where job type gets changedMichal Schmidt
2012-03-28job: fix loss of ordering with restart jobsMichal Schmidt
Suppose that foo.service/start is a job waiting on other job bar.service/start to finish. And then foo.service/restart is enqueued (not using --ignore-dependencies). Currently this makes foo.service start immediately, forgetting about the ordering to bar.service. The runnability check for JOB_RESTART jobs looks only at dependencies for stopping. That's actually correct, because restart jobs should be treated the same as stop jobs at first. The bug is that job_run_and_invalidate() does not treat them exactly the same as stop jobs. unit_start() gets called without checking for the runnability of the converted JOB_START job. The fix is to simplify the switch in job_run_and_invalidate(). Handle JOB_RESTART identically to JOB_STOP. Also simplify the handling of JOB_TRY_RESTART - just convert it to JOB_RESTART if the unit is active and let it fall through to the JOB_RESTART case. Similarly for JOB_RELOAD_OR_START - have a fall through to JOB_START. In job_finish_and_invalidate() it's not necessary to check for JOB_TRY_RESTART with JOB_DONE, because JOB_TRY_RESTART jobs will have been converted to JOB_RESTART already. Speeding up the restart of services in "auto-restart" state still works as before. Improves: https://bugzilla.redhat.com/show_bug.cgi?id=753586 but it's still not perfect. With this fix the try-restart action will wait for the restart to complete in the right order, but the optimal behaviour would be to finish quickly (without disturbing the start job).
2012-03-27journal: properly handle if we interleave files with different boot idsLennart Poettering
If we try to locate a monotonic time in a file that doesn't have any entries with the matching boot id, then don't fail on it, simply fall back to calendar time.
2012-03-27cat: fix priority typeLennart Poettering
Needs to be "int", not "char". Spotted by Frederic Crozat.
2012-03-27journalctl: add --local switchLennart Poettering
2012-03-26man: minor typo in reference to manual pageElan Ruusamäe