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
Lennart Poettering
b81884e746
unit: replace StopRetroactively= by BindTo= dependencies
...
The property StopRetroactively= needs to be per-dependency, not
per-unit, in order to properly express dependencies between .mount units
and its .device and fsck .service units. If the .device unit is
unplugged the mount should go away, but if the fsck process terminates
the .mount should stay.
2010-10-29 00:45:46 +02:00
Lennart Poettering
28c3247e79
manager: show which jobs are actually installed after a transaction
2010-10-28 04:05:09 +02:00
Lennart Poettering
799fd0fd23
service: unify tstamp serialization code
2010-10-28 03:16:03 +02:00
Lennart Poettering
10717a1a8d
unit: serialize active timestamps
2010-10-27 00:01:12 +02:00
Lennart Poettering
da8f9f8cff
errors: refer to systemctl status when useful
2010-10-26 22:40:02 +02:00
Lennart Poettering
1f5558b499
manager: properly parse finish timestamp
2010-10-20 14:41:07 +02:00
Lennart Poettering
f2382a94e0
manager: properly write header marker on serialization
2010-10-20 14:40:44 +02:00
Lennart Poettering
4e4343146a
swap: listen for POLLPRI events on /proc/swaps if available
2010-10-18 23:09:09 +02:00
Lennart Poettering
47a483a1ab
manager: serialize/deserialize finish timestamp
2010-10-18 22:39:06 +02:00
Lennart Poettering
0003d1ab75
manager: hookup shutdown helper and signals
2010-10-14 00:54:48 +02:00
Lennart Poettering
e04aad61bb
swap: major rework, use /sbin/swapon for setting up swaps, fix merging of aliased swap disks
2010-10-12 04:08:04 +02:00
Lennart Poettering
6daf4f9001
unit: rename 'banned' load state to 'masked'
2010-10-08 18:21:52 +02:00
Lennart Poettering
b9c0d4415b
systemctl: fix 'systemctl enable getty@.service'
2010-10-08 03:09:25 +02:00
Lennart Poettering
00dc5d769a
unit: introduce 'banned' load state for units symlinked to /dev/null
2010-10-08 02:31:36 +02:00
Lennart Poettering
0e098b15c7
util: never use sizeof(sa_family_t) when calculating sockaddr sizes
2010-10-07 02:34:17 +02:00
Lennart Poettering
e983b76024
manager: notify plymouth about progress if it is running
2010-10-06 03:55:49 +02:00
Lennart Poettering
b0c918b97f
manager: measure startup times
2010-09-21 04:14:38 +02:00
Lennart Poettering
e409f87570
manager: count how many jobs we executed
2010-09-21 03:51:31 +02:00
Lennart Poettering
e43ac8788b
manager: log job mode when running job
2010-09-14 02:16:14 +02:00
Michal Schmidt
54ec68b6f6
manager: report correctly which job was deleted when breaking cycle
2010-09-11 02:00:27 +02:00
Lennart Poettering
18ffdfda48
unit: unify some code
2010-09-01 03:35:04 +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
fe71c02cf5
manager: reword some error messages regarding "logs"
...
https://bugzilla.redhat.com/show_bug.cgi?id=627785
2010-09-01 00:32:32 +02:00
Lennart Poettering
60dc72b563
manager: make sure we free the dbus error only if we actually use one
2010-08-31 23:51:12 +02:00
Matthew Miller
fdf20a3160
manager: add missing second part of s/maintenance/failed/
2010-08-31 00:23:34 +02:00
Lennart Poettering
c88e7f4e57
manager: don't try to minimize transaction when using isolate
...
We should not avoid stopping services when using isolate, since that
kinda defeats the point of it.
http://bugzilla.redhat.com/show_bug.cgi?id=627014
2010-08-30 23:51:52 +02:00
Lennart Poettering
2528a7a62c
unit: introduce AllowIsolate= switch
2010-08-30 23:04:36 +02:00
Lennart Poettering
b2bb3dbed9
console: rework automatic getty on kernel console logic again
...
It is essential that the gettys are proper dependencies from
getty.target so that they aren't killed and immediately restarted on
runlevel changes. Hence rework the logic to implicitly add console
gettys to getty.target as dependencies.
This also adds an automatic hvc console for virtualizers.
https://bugzilla.redhat.com/show_bug.cgi?id=501720
2010-08-30 23:03:58 +02:00
Lennart Poettering
6309077509
log: pass SCM_CREDENTIALS when logging to syslog
2010-08-21 01:51:16 +02:00
Lennart Poettering
d06dacd002
service/systemctl: don't consider LSB exit codes 5 and 6 as failure, and decode exit codes in systemctl
2010-08-20 02:31:54 +02:00
Lennart Poettering
f614480831
systemctl: add support for delayed shutdown, similar to sysv in style
2010-08-16 15:37:52 +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
bbd3a7ba5c
audit: suppress repeated audit events when deserializing
2010-08-12 03:51:58 +02:00
Lennart Poettering
8821a00fd5
unit: don't show ENOENT configuration file warnings for units that are not essential
2010-08-12 01:05:35 +02:00
Lennart Poettering
e364ad0628
clang: fix numerous little issues found with clang-analyzer
2010-08-11 22:04:25 +02:00
Lennart Poettering
10f8e83cbb
manager: serialize/deserialize startup time, too
2010-08-11 20:19:27 +02:00
Lennart Poettering
e543deaeb5
audit: initialize audit only if it is enabled
2010-08-11 17:52:01 +02:00
Lennart Poettering
830f6caa77
audit: smaller fixes to audit hookup
2010-08-11 15:19:50 +02:00
Lennart Poettering
cd6d0a456b
utmp: enable systemd-update-utmp by default
2010-08-11 04:38:55 +02:00
Lennart Poettering
4927fcae48
audit,utmp: implement audit logic and rip utmp stuff out of the main daemon and into a helper binary
2010-08-11 01:44:38 +02:00
Lennart Poettering
69dd2852bb
manager: when two pending jobs conflict, keep the one that "conflicts", remove the one that is "conflicted"
...
This gives the writer of units control which unit is kept and which is
stopped when two units conflict.
2010-08-09 22:32:30 +02:00
Lennart Poettering
2e81c8a557
manager: downgrade a few log msgs regarding conflicting but fixable jobs
2010-08-06 02:58:46 +02:00
Lennart Poettering
48a21c9b37
manager: fix conflicting job check
2010-08-05 20:49:35 +02:00
Lennart Poettering
674a6e4d0c
manager: when breaking ordering cycle show full cycle loop
2010-08-05 20:39:45 +02:00
Lennart Poettering
d8d5ab981a
manager: write serialization to /dev/.systemd/ instead of /dev/shm
2010-07-20 20:54:33 +02:00
Lennart Poettering
5632e3743d
systemctl: introduce reset-maintenance command
2010-07-19 04:08:07 +02:00
Lennart Poettering
faf919f1eb
job: timeout every job independently of the unit
2010-07-17 04:09:28 +02:00
Lennart Poettering
3dda9fc3a7
manager: always allow stopping of units that failed to load
2010-07-13 20:07:00 +02:00
Lennart Poettering
9f611ad82e
unit: disable retroactive starting/stopping of units when deserializing
2010-07-13 19:01:20 +02:00
Lennart Poettering
f057408c9c
units: introduce emergency.target
2010-07-12 23:49:20 +02:00
Lennart Poettering
b12c1e7cf7
socket: pass minimal abstract socket names
2010-07-11 02:23:11 +02:00
Lennart Poettering
65e92d67b6
manager: free dbus error when ignoring it
2010-07-11 00:52:19 +02:00
Lennart Poettering
fe51822e71
manager: introduce unit path cache to minimize disk accesses
2010-07-11 00:52:00 +02:00
Lennart Poettering
c6c18be35b
cgroup: kill processes, not tasks and other cgroup changes
2010-07-11 00:50:49 +02:00
Lennart Poettering
5509654721
cgroup: make cgroup controller name a constant
2010-07-10 17:38:50 +02:00
Lennart Poettering
582a507f1a
systemctl: show exec status of all exited programs
2010-07-10 15:42:24 +02:00
Lennart Poettering
82c64bf578
snapshot: fix deserialization
2010-07-10 04:51:03 +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
1e3ad081ef
execute: if the main process of a service already owns the TTY, don't wait for acquiring it again in the reload/stop step
2010-07-08 04:09:17 +02:00
Lennart Poettering
398ef8ba02
dbus: make errors reported via D-Bus more useful
2010-07-08 02:43:18 +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
9e58ff9c5c
manager: optionally print status updates to console on boot
2010-07-07 00:00:59 +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
6124958c7b
unit: add new abstracted maintenance state for units
2010-07-01 00:31:53 +02:00
Lennart Poettering
6398320759
core: rename struct timestamp to dual_timestamp to avoid name clash with IP system headers
2010-07-01 00:26:44 +02:00
Lennart Poettering
e6b3f00f66
manager: both rescue and emergency should be started in isolate mode
2010-06-24 03:07:43 +02:00
Lennart Poettering
8c6db83365
pam: implement systemd PAM module and generelize cgroup API for that a bit
2010-06-21 23:27:18 +02:00
Lennart Poettering
399ab2b1ac
unit: make unit casts typesafe
2010-06-19 16:57:29 +02:00
Lennart Poettering
bb00e60409
don't use 'long long' unless we have a really good reason to
2010-06-19 04:35:52 +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
8c40acf7cb
notify: properly NUL-terminate received messages
2010-06-18 23:13:40 +02:00
Lennart Poettering
c952c6ece2
service: add minimal access control logic for notifcation socket
2010-06-18 23:12:48 +02:00
Lennart Poettering
33be102a21
cgroup: make sure the user cannot accidentaly unmount our cgroup filesystem
2010-06-18 20:15:34 +02:00
Lennart Poettering
514f4ef52f
systemctl: add verbs for special units
2010-06-18 04:22:59 +02:00
Lennart Poettering
7d7936059f
manager: expose a few special units via SIGRTMIN+x signals
2010-06-17 23:22:56 +02:00
Lennart Poettering
5b6319dcee
service: optionally call into PAM when dropping priviliges
2010-06-16 21:54:17 +02:00
Lennart Poettering
8c47c7325f
notify: add minimal readiness/status protocol for spawned daemons
2010-06-16 05:10:31 +02:00
Lennart Poettering
84e3543ef4
manager: split off path lookup logic into own .c file
2010-06-15 14:45:15 +02:00
Lennart Poettering
2ded0c0442
manager: recheck unit paths on daemon reload
2010-06-15 14:32:26 +02:00
Lennart Poettering
964e0949dd
unit: when destructing units make sure we don't readd the unit to the gc queue after we already removed it there
2010-06-05 02:16:20 +02:00
Lennart Poettering
a013b84b49
unit: avoid assert on daemon reload
2010-06-04 22:31:33 +02:00
Lennart Poettering
2149e37c79
manager: dump to usual debug channel on SIGUSR2, don't rely on stdin
2010-06-04 19:45:53 +02:00
Lennart Poettering
cca098b095
unit: serialize jobs in addition to units
2010-06-03 14:27:02 +02:00
Lennart Poettering
23e3c58809
manager: when we sweep the tree when looking for ordering cycles, remember and reuse if we already decided a tree was loop free, to improve speed drastically
2010-06-03 03:00:47 +02:00
Lennart Poettering
a1b256b0b5
unit: introduce exit.service for exiting from session instances
2010-05-24 22:32:44 +02:00
Lennart Poettering
871d7de47c
timer: fully implement timer units
2010-05-24 01:45:54 +02:00