1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-07 18:27:04 +03:00
Commit Graph

47 Commits

Author SHA1 Message Date
Lennart Poettering
bfebab7f69 dbus: split out object management code into dbus-common, and simplify it 2011-04-16 02:03:35 +02:00
Lennart Poettering
da19d5c19f src: our lord is coverity 2011-03-31 15:35:40 +02:00
Kay Sievers
2b583ce657 use /run instead of /dev/.run
Instead of the /dev/.run trick we have currently implemented, we decided
to move the early-boot runtime dir to /run.

An existing /var/run directory is bind-mounted to /run. If /var/run is
already a symlink, no action is taken.

An existing /var/lock directory is bind-mounted to /run/lock.
If /var/lock is already a symlink, no action is taken.

To implement the directory vs. symlink logic, we have a:
  ConditionPathIsDirectory=
now, which is used in the mount units.

Skipped mount unit in case of symlink:
  $ systemctl status var-run.mount
  var-run.mount - Runtime Directory
    Loaded: loaded (/lib/systemd/system/var-run.mount)
    Active: inactive (dead)
            start condition failed at Fri, 25 Mar 2011 04:51:41 +0100; 6min ago
     Where: /var/run
      What: /run
    CGroup: name=systemd:/system/var-run.mount

The systemd rpm needs to make sure to add something like:
  %pre
  mkdir -p -m0755 /run >/dev/null 2>&1 || :
or it needs to be added to filesystem.rpm.

Udev -git already uses /run if that exists, and is writable at bootup.
Otherwise it falls back to the current /dev/.udev.

Dracut and plymouth need to be adopted to switch from /dev/.run to run
too.

Cheers,
Kay
2011-03-28 23:00:00 +02:00
Lennart Poettering
6f79c579ec main: remove AF_UNIX sockets before binding 2011-03-14 16:15:31 +01:00
Lennart Poettering
91b22f21f3 core: move abstract namespace sockets to /dev/.run
Now that we have /dev/.run there's no need to use abstract namespace
sockets. So, let's move things to /dev/.run, to make things more easily
discoverable and improve compat with chroot() and fs namespacing.
2011-03-14 03:12:25 +01:00
Lennart Poettering
05feefe0fb dbus: properly generate UnknownInterface, UnknownProperty and PropertyReadOnly errors 2011-03-09 20:01:53 +01:00
Lennart Poettering
34df5a34e1 drop unnecessary suffix NULs as gcc adds them anyway 2011-03-09 19:48:02 +01:00
Andrey Borzenkov
c826cda421 add org.freedesktop.DBus.Properies.Set method
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-07 02:17:31 +01:00
Harald Hoyer
35b8ca3aaf Spelling Corrections
Just some lame spelling corrections with no functionality.
2011-02-28 22:47:38 +01:00
Lennart Poettering
ccc80078fe general: unify error code we generate on timeout 2011-02-24 02:33:57 +01:00
Lennart Poettering
3996fbe2a2 dbus: don't try to connect to the system bus before it is actually up 2011-01-20 19:43:38 +01:00
Lennart Poettering
d83685ac1b dbus: use the right data slot allocator
Thanks to 'trapni' on IRC for tracking this down.
2010-11-25 01:37:24 +01:00
Lennart Poettering
af2d49f70b drop support for MANAGER_SESSION, introduce MANAGER_USER instead 2010-11-15 22:13:26 +01:00
Lennart Poettering
2a8cd298f4 dbus: downgrade activation failure messages 2010-09-06 02:42:42 +02:00
Lennart Poettering
53c6a358a8 dbus: don't send cgroup agent messages directly to system bus to avoid dbus activation loop 2010-09-03 01:45:53 +02:00
Lennart Poettering
8f6df3fa98 dbus: don't accept activation requests anymore if we are going down anyway 2010-09-01 03:30:59 +02:00
Lennart Poettering
c4e2ceae94 dbus: follow standardized fdo PropertiesChanged signal spec 2010-08-20 02:31:54 +02:00
Lennart Poettering
9028d0ecba dbus: downgrade disconnection message 2010-08-17 22:15:02 +02:00
Lennart Poettering
d6c9574fb5 emacs: make sure nobody accidently adds tabs to our sources 2010-08-14 19:59:25 +02:00
Lennart Poettering
91805b3bcb dbus: downgrade a few log messages 2010-08-12 01:02:19 +02:00
Lennart Poettering
b5e9dba8d6 unit: rename OnlyByDependency= to RefuseManualStart= and introduce RefuseManualStop=
Some unit shall never be start on user request (e.g. shutdown.target)
others never be stopped on user request (e.g. auditd.servce), hence
offer options for both.
2010-08-11 01:44:37 +02:00
Lennart Poettering
3c661fadd5 cgroup: if the system bus cannot be found, send cgroup empty msg directly to init proces 2010-08-06 03:21:50 +02:00
Lennart Poettering
9014a8bd7a dbus: suppress duplicate message when reusing bus for system and session 2010-07-11 00:51:28 +02:00
Lennart Poettering
1e001f52d2 main: add a few more useful diagnostic log messages 2010-07-10 04:50:19 +02:00
Lennart Poettering
a821caaae1 main: make it possible to run a system daemon along side an aloready running one for testing purposes 2010-07-09 23:43:16 +02:00
Lennart Poettering
398ef8ba02 dbus: make errors reported via D-Bus more useful 2010-07-08 02:43:18 +02:00
Lennart Poettering
923f8d76dc dbus: shut down bus connection cleanly and fully when a direct client disconnects 2010-07-07 22:28:02 +02:00
Lennart Poettering
54165a3939 log: bump up a number of log messages so that they are shown even if debug logging is disabled, for diagnostic purposes 2010-07-07 17:57:54 +02:00
Lennart Poettering
7b97f47732 dbus: send reload completion message on right connection 2010-07-07 02:21:42 +02:00
Lennart Poettering
a567261a29 dbus: send signals about jobs to the clients having created them unconditionally, and thus get rid of broadcast signals in most cases 2010-07-05 00:58:07 +02:00
Lennart Poettering
fae20b110f dbus: fix unclean shut-down 2010-07-04 21:17:40 +02:00
Lennart Poettering
82c121a475 dbus: complete exec coverage 2010-07-04 16:44:58 +02:00
Lennart Poettering
09c661966c dbus: implement GetAll() with empty interface string properly 2010-07-04 03:43:20 +02:00
Lennart Poettering
4fd5948e74 socket: make various socket/pipe options configurable 2010-07-01 00:29:17 +02:00
Lennart Poettering
a3d4e06dfa manager: get rid of destinction between running_as=system and running_as=init, as there is little value in it and we cannot really test this 2010-06-19 03:15:59 +02:00
Lennart Poettering
5e8d1c9a9f dbus: to make sure that systemd stays controllable during early bootup, register our services on our own micro usb server in addition to the bus 2010-06-19 03:04:04 +02:00
Lennart Poettering
fd0d7f7a6e dbus: fix match 2010-06-15 04:24:16 +02:00
Lennart Poettering
cf3e247193 dbus: tighten match rules a bit 2010-06-15 02:46:07 +02:00
Lennart Poettering
af25ec12e3 dbus: allow systemd to receive activation requests 2010-06-07 04:15:37 +02:00
Lennart Poettering
46018844bc dbus: be a bit more verbose for bus activation 2010-06-04 22:35:31 +02:00
Lennart Poettering
6dded4c705 dbus: there might be names already registered before we can connect, make sure to enumerate them when checking whether a service is already started 2010-06-04 22:03:22 +02:00
Lennart Poettering
a5478cd440 dbus: hide some debug output 2010-06-02 22:18:57 +02:00
Lennart Poettering
0034c15c60 dbus: implement systemd side of dbus activation glue 2010-06-02 04:24:16 +02:00
Lennart Poettering
01f78473b1 path: add .path unit type for monitoring files 2010-05-24 05:25:33 +02:00
Lennart Poettering
871d7de47c timer: fully implement timer units 2010-05-24 01:45:54 +02:00
Lennart Poettering
4288f61921 dbus: automatically generate and install introspection files 2010-05-23 03:45:33 +02:00
Lennart Poettering
e99e38bbdc build-sys: move source files to subdirectory 2010-05-16 18:45:24 +02:00