summaryrefslogtreecommitdiff
path: root/src/dbus-manager.c
AgeCommit message (Collapse)Author
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-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-01-16dbus: more efficient implementation of propertiesMichal Schmidt
The way the various properties[] arrays are initialized is inefficient: - only the .data members change at runtime, yet the whole arrays of properties with all the fields are constructed on the stack one by one by the code. - there's duplication, eg. the properties of "org.freedesktop.systemd1.Unit" are repeated in several unit types. Fix it by moving the information about properties into static const sections. Instead of storing the .data directly in the property, store a constant offset from a run-time base. The small arrays of struct BusBoundProperties bind together the constant information with the right runtime information (the base pointer). On my system the code shrinks by 60 KB, data increases by 10 KB.
2012-01-16unit: remove union UnitMichal Schmidt
Now that objects of all unit types are allocated the exact amount of memory they need, the Unit union has lost its purpose. Remove it. "Unit" is a more natural name for the base unit class than "Meta", so rename Meta to Unit. Access to members of the base class gets simplified.
2011-09-23coverity: change a few things so that coverity doesn't show so many false ↵Lennart Poettering
positives
2011-08-24dbus: 'directrion' is not a valid attributeTero Roponen
$ gdbus introspect --system --dest org.freedesktop.systemd1 --object-path /org/freedesktop/systemd1 Error parsing introspection XML: 115:64: attribute 'directrion' invalid for element 'arg'
2011-08-17convert int to boolean for dbus_bool_tKay Sievers
2011-08-02dbus: fix MaskUnitFiles bus callLennart Poettering
2011-07-28dbus: the changes array might actually be NULL when ti is emptyLennart Poettering
2011-07-25systemctl: hook up new install logicLennart Poettering
This adds a number of new options to systemctl, for presets, reenabling, masking/unmask, and runtime operations.
2011-07-23bus: expose installer functionsLennart Poettering
2011-07-13unit: accept empty defaults for kill who/mode argsLennart Poettering
2011-06-27dbus: send our finished signal when we are finished bootingLennart Poettering
2011-06-21dbus: introduce UnsetAndSetEnvironment()Lennart Poettering
2011-04-28dbus: make daemon reexecution synchronousLennart Poettering
We simply keep open copies of the dbus connections across the reexecution and close them as last step of it. A client can thus simply wait until its connection is dropped to know when the reexecution is finished. https://bugzilla.redhat.com/show_bug.cgi?id=698198
2011-04-27dbus: don't hit assert when dumping propertiesLennart Poettering
https://bugs.freedesktop.org/show_bug.cgi?id=36472
2011-04-16dbus: split out object management code into dbus-common, and simplify itLennart Poettering
2011-04-07dbus: expose monotonic timestamps on the busLennart Poettering
2011-04-07don't make up buffer sizes, use standard LINE_MAX insteadLennart Poettering
2011-03-31src: our lord is coverityLennart Poettering
2011-03-30taint: add missing cgroups taint flagLennart Poettering
2011-03-30manager: fix taint check for /usrLennart Poettering
2011-03-24tainted: don't check if /usr is a mount point, only if it's not already ↵Kay Sievers
mounted at startup
2011-03-09dbus: properly generate UnknownInterface, UnknownProperty and ↵Lennart Poettering
PropertyReadOnly errors
2011-03-07add org.freedesktop.DBus.Properies.Set methodAndrey Borzenkov
The patch adds framework for processing Set requests on properties and as first consumers allows setting of LogTarget and LogLevel on interface org.freedesktop.systemd1.Manager of org.freedesktop.systemd1. The code should be generic enough to allow processing of any property on other objects and interfaces as well. No systemctl visible interface is added so far. The LogTarget and LogLevel are meant for debugging in the first place; user interface can be added if other usage emerge. Set on systemwide systemd is restricted to root; I am not sure how session level access is controlled.
2011-03-04dbus: add 'Tainted' property to Manager objectLennart Poettering
2011-03-04dbus: expose distribution name and features on manager object as propertiesLennart Poettering
2011-02-24dbus: pass along information why a job failed when it failed (dbus api change!)Lennart Poettering
2011-02-15exec: introduce global defaults for the standard output of servicesLennart Poettering
2010-11-23build-sys: allow cross-compilationThierry Reding
When cross-compiling systemd, the introspection XML files fail to be generated because the systemd host binary is not executable. This patch works around this by putting the introspection XML data into separate ELF sections and extracting them from the binary when generating the XML files. The extracted XML data is passed through the strings utility in order to strip the trailing NUL character. A small AWK script is used to prepend the doctype and add the opening and closing node tags respectively. Finally, the C preprocessor is used to substitute the correct doctype information from the D-Bus header files.
2010-11-18manager: make list of default controllers configurableLennart Poettering
2010-11-15drop support for MANAGER_SESSION, introduce MANAGER_USER insteadLennart Poettering
2010-11-10manager: parse RD_TIMESTAMP passed from initrdLennart Poettering
2010-10-22systemctl: introduce systemctl killLennart Poettering
2010-10-19fsck: atomically replace base.target by rescue.target/reboot.target when ↵Lennart Poettering
fsck fails
2010-10-14dbus: expose shutdown helper via D-BusLennart Poettering
2010-09-27sysv: optionally disable of SysV init/rcN.d support at compile timeFabiano Fidencio
This patch adds a cpp definition HAVE_SYSV_COMPAT that is used to isolate code dealing with /etc/init.d and /etc/rcN.d for systems where it does not make sense (one that does not use sysv or one that is fully systemd native). The patch tries to be as little intrusive as possible, however in order to minimize the number of #ifdef'ed regions I've reordered some code in path-lookup.c:lookup_paths_init() where all code dealing with sysv is now isolated under running_as == MANAGER_SYSTEM as well. Moreover, In struct Service, some fields were rearranged to reduce the number of ifdefs. Lennart's suggestions were fixed and squashed with the original patch, that was sent by Gustavo Sverzut Barbieri (barbieri@profusion.mobi).
2010-09-23dbus: export number of total failed jobs on D-Bus interfaceLennart Poettering
2010-09-21dbus: add Progress property to introspectionGustavo Sverzut Barbieri
2010-09-21manager: calculate progress value while bootingLennart Poettering
2010-09-21manager: measure startup timesLennart Poettering
2010-09-21manager: count how many jobs we executedLennart Poettering
2010-08-31manager: add missing second part of s/maintenance/failed/Matthew Miller
2010-08-25mount: rework automatic mounting to follow the 'nofail' option in fstabLennart Poettering
2010-08-25mount: add global configuration options for handling of auto mountsLennart Poettering
2010-08-20dbus: follow standardized fdo PropertiesChanged signal specLennart Poettering
2010-08-18dbus: small typo in introspection dataMatthias Clasen
Hey, here is a patch to fix a small typo in the systemd dbus introspection data. I found this while trying to explore the systemd dbus API via bash completion with gdbus. You should try this, it is really fun, and, evidently, helps to find some bugs... Matthias
2010-08-14emacs: make sure nobody accidently adds tabs to our sourcesLennart Poettering
2010-08-13service: rename Type=finish to Type=oneshot and allow multiple ExecStart= ↵Lennart Poettering
lines for oneshot services In contrast to the other service types oneshot services are usually not long lasting and there's not necessarily a single clean main process for them. This change allows multiple ExecStart= lines for this type of services so that the admin/developer doesn't have to arbitrarily pick on of various sequential commands as the "main one".
2010-08-13systemctl: when calling 'status' accept a PIDLennart Poettering