Commit Graph

142 Commits

Author SHA1 Message Date
Lennart Poettering a08dab55f2 manager: when running in test mode, do not write generated unit files to /run/systemd/generator 2011-04-19 22:17:54 +02:00
Lennart Poettering 4fe60156fc manager: drop all pending jobs when isolating 2011-04-16 02:03:34 +02:00
Lennart Poettering c8f4d7642b manager: introduce IgnoreOnIsolate flag so that we can keep systemd-logger around when isolating 2011-04-16 02:03:34 +02:00
Lennart Poettering d718bbb51b manager: downgrade a few log messages 2011-04-16 02:03:34 +02:00
Lennart Poettering f1d19aa412 manager: no need to use randomized generator dir when running as system manager 2011-04-07 21:22:41 +02:00
Lennart Poettering 20c03b7be2 don't make up buffer sizes, use standard LINE_MAX instead 2011-04-07 18:48:50 +02:00
Lennart Poettering 01d67b43b0 manager: serialize/deserialize max job id and /usr taint flag 2011-04-07 18:46:39 +02:00
Lennart Poettering a8049b7a7c manager: don't garbage collect jobs when isolating, to change global state 2011-04-07 18:45:34 +02:00
Lennart Poettering cebe0d41e4 job: fix deserialization of jobs: do not ignore ordering 2011-04-06 19:09:33 +02:00
Lennart Poettering 67370238b5 manager: don't show PID for incoming signals if it is 0 2011-04-06 01:33:34 +02:00
Michal Schmidt 4466ee6a71 manager: fd must be int, not char
This should fix the crash reported by Dan Horak on s390x which
does not have VTs.
2011-04-04 15:34:53 +02:00
Lennart Poettering da19d5c19f src: our lord is coverity 2011-03-31 15:35:40 +02:00
Lennart Poettering fac9f8df1f analyze: beautify output a bit 2011-03-30 20:15:45 +02:00
Lennart Poettering 72bc8d0056 manager: fix taint check for /usr 2011-03-30 00:47:50 +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 f1dd0c3f9b syslog: rework syslog detection so that we need no compile-time option what the name of the syslog implementation is 2011-03-18 04:53:31 +01:00
Lennart Poettering dfa7f7e139 main: check if we have a valid PID before getting the name of it 2011-03-16 02:55:55 +01:00
Lennart Poettering e03ae6615a manager: don't show kernel boot-up time for containers 2011-03-14 21:47:41 +01:00
Lennart Poettering 72fe22f930 manager: show who killed us 2011-03-14 21:30:54 +01:00
Lennart Poettering 391ade8606 audit: give up sending auditing messages when it failed due to EPERM 2011-03-14 17:48:48 +01: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 b925e72633 dev: use /dev/.run/systemd as runtime directory, instead of /dev/.systemd 2011-03-09 22:45:47 +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 c77bc38d28 job: when cancelling jobs, make sure to propagate this properly to depending jobs 2011-02-24 03:23:14 +01:00
Lennart Poettering 312732cfaf job: start job timeout on enqueuing not when we start to process a job
This practically reverses 23e1e0c4a3.

This makes it easier to timeout individual jobs so that this timeout can
be relied on, since blocked dependencies will not influence the timeout.
2011-02-24 02:41:38 +01:00
Lennart Poettering 23e1e0c4a3 job: start job timer when we begin running the job, not already when we add it to the queue of jobs 2011-02-23 18:46:57 +01:00
Lennart Poettering e67c3609b1 systemctl: introduce --ignore-dependencies 2011-02-16 21:59:31 +01:00
Lennart Poettering 3aea3b3597 manager: don't consider transaction jobs conflicting with queued jobs redundant 2011-02-16 19:34:38 +01:00
Lennart Poettering 934da03599 service: change default std output to inherit 2011-02-15 12:28:01 +01:00
Lennart Poettering 0a494f1ff3 exec: introduce global defaults for the standard output of services 2011-02-15 11:52:29 +01:00
Lennart Poettering 83cc030fad shutdown: execute all binaries in /lib/systemd/system-shutdown as last step before invoking reboot() 2011-02-15 00:30:11 +01:00
Lennart Poettering 6a3b1508f7 getty: don't parse console= anymore, use /sys/class/tty/console/active instead 2011-02-14 19:57:18 +01:00
Lennart Poettering 0658666bac manager: if we receive SIGRTMIN+20/21 enable/disable showing of status on the console 2011-02-09 12:12:30 +01:00
Lennart Poettering bd40a2d830 clang: fix some issues found with clang-analyzer 2011-01-22 02:19:16 +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 06d4c99ab3 manager: make list of default controllers configurable 2010-11-18 00:42:35 +01:00
Lennart Poettering 967072694d plymouth: use updated socket name 2010-11-16 03:12:54 +01:00
Lennart Poettering af2d49f70b drop support for MANAGER_SESSION, introduce MANAGER_USER instead 2010-11-15 22:13:26 +01:00
Lennart Poettering 40dde66fa0 manager: ignore invalid epoll events 2010-11-15 22:13:26 +01:00
Lennart Poettering 9b3d909074 manager: consider jobs already installed as redundant when reducing new transactions 2010-11-15 03:44:11 +01:00
Lennart Poettering 6210e7fc31 manager: always pull 'following' units into transaction 2010-11-14 23:48:21 +01:00
Lennart Poettering 41242c42bf manager: don't fail transaction if adding CONFLICTED_BY job fails 2010-11-14 23:48:20 +01:00
Lennart Poettering c5fd1e57e4 manager: be a bit more verbose if we receive unknown epoll event 2010-11-12 03:04:29 +01:00
Lennart Poettering 7f4e08056d cryptsetup: hook up tool with ask-password 2010-11-12 00:40:27 +01:00
Lennart Poettering 5a1e99375d manager: hookup generators 2010-11-12 00:40:26 +01:00
Lennart Poettering e9ddabc246 manager: parse RD_TIMESTAMP passed from initrd 2010-11-10 22:38:44 +01:00
Lennart Poettering 2ce5c8f9ab manager: when isolating undo all pending jobs, too 2010-11-10 22:38:43 +01:00
Lennart Poettering 143072edea manager: only minimize impact if we are in fail mode 2010-11-10 22:38:42 +01:00
Lennart Poettering ead8e4788e unit: get rid of gnoreDependencyFailure= instead treat ConflictedBy= as weaker counterpart of Conflicts=, similar to Wants= vs. Requires= 2010-10-29 16:28:27 +02:00