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

1050 Commits

Author SHA1 Message Date
Michael Biebl
5b8191986c service: ifdef (more) distro-specific compat logic
This should make it easier to get rid of that compat code later and
avoids problems like stripping of rc. from /etc/init.d/rc.local on
Debian.
2010-12-27 18:44:42 +01:00
Lennart Poettering
5e4ef5e0d2 pam: do not sort user sessions into their own cgroups in the 'cpu' hierarchy by default
While this offers quite a few benefits for normally scheduled processes
this breaks RT scheduling for all user processes, since we do not assign
an RT share to the cgroups created via this mechanism. If the user
cgroups have no RT share assigned no member process can make use of RT
functionality. However, software like JACK and PA/rtkit assume that RT
is available in some way or another, either via RLIMIT_RTPRIO or via
some privileged service. Creating implicit cpu cgroups but not adding
RT shares to them hence breaks these applications.

There is no sane way to implicitly add RT shares to these groups, since
they are pulled from a global, limited pool and it would hence be very
hard to make this work without limiting the number of concurrent
sessions, or constantly rewriting the cpu share settings of already
logged in session cgroups.

Most likely this issue needs to be fixed in-kernel because we can enable
this feature by default again.
2010-12-24 10:48:20 +01:00
Lennart Poettering
501c875bff mount-setup: drop noexec flag from default mount options for /dev/shm
We shouldn't break PROT_EXEC which is a valid mmap() flag.
2010-12-23 22:33:24 +01:00
Lennart Poettering
c8bffa43fd util: properly handle OOM when allocating Debian version string 2010-12-21 14:35:20 +05:30
Michael Biebl
22927a3654 debian: Prefix welcome string with "Debian "
For stable releases /etc/debian_version only contains a version number,
so we add a prefix "Debian ".
2010-12-21 03:07:36 +01:00
Kay Sievers
e1992852c8 service: ifdef distro-specific compat logic 2010-12-16 14:29:34 +01:00
Miklos Vajna
65530632c7 service: drop rc. prefix on frugalware linux 2010-12-16 14:22:21 +01:00
Kay Sievers
0b603b4e76 suse: add 'smtp' LSB facility 2010-12-09 18:50:30 +01:00
Michal Schmidt
67575eef76 path: fix watching the root directory
If you have a path unit with:
  DirectoryNotEmpty=/foo
and "/foo" does not exist, creating it later escapes the attention of systemd.

When adding watches for parent directories, systemd never adds one for the root
directory. It attempts to add a watch for an empty string instead, which fails.

If the path is "/", we must not trim the slash.
2010-12-01 16:39:58 +01:00
Ozan Çağlayan
550c4dcc41 src/quotacheck.c: Fix typo
Fix quota misspelling in quotacheck.c

Signed-off-by: Ozan Çağlayan <ozan@pardus.org.tr>
2010-12-01 16:32:58 +01:00
Miklos Vajna
f5c88ec133 build-sys: frugalware linux support 2010-11-29 17:07:41 +01:00
Kay Sievers
d0ef2204b4 gnome-ask-password-agent: also support libnotify < 0.7 for now 2010-11-26 17:59:53 +01:00
Kay Sievers
2e6081f2ff udev: make sure we aleways read from netlink, if there is data 2010-11-26 16:06:30 +01:00
Kay Sievers
99448c1f01 udev: increase event buffer size, handle -ENOBUFS, handle filtered-out devices 2010-11-26 04:51:30 +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
59d1a83370 manager: bump up max number of units to 128K
https://bugzilla.redhat.com/show_bug.cgi?id=655857
2010-11-24 23:36:40 +01:00
Lennart Poettering
46ff0ed7b0 mount: trivial typo fix 2010-11-24 22:28:28 +01:00
Thierry Reding
9a60da2834 build-sys: allow cross-compilation
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-23 22:38:55 +01:00
Lennart Poettering
aeb70c8d60 logger: fix error handling 2010-11-23 01:36:54 +01:00
Lennart Poettering
cfcfd4aefe swap: order file-based swap devices after remount-rootfs 2010-11-22 21:06:56 +01:00
Kay Sievers
16f6682d0b mount_cgroup_controllers: expect 2 items from fscanf() 2010-11-22 11:06:38 +01:00
Lennart Poettering
be8088a2fb systemctl: don't return LSB status error codes for systemctl show
Use them only for systemctl status.

https://bugzilla.redhat.com/show_bug.cgi?id=637183
2010-11-21 22:40:03 +01:00
Lennart Poettering
600a328fc2 mount: do not try to mount disable cgroup controllers
https://bugzilla.redhat.com/show_bug.cgi?id=655222
2010-11-21 22:29:10 +01:00
Lennart Poettering
c8b2e52cf6 systemctl: redirect enable/disable to chkconfig if applicable 2010-11-21 22:17:04 +01:00
Lennart Poettering
e9ecea8805 Revert "Revert "fsck: add new -l switch to fsck mount options""
This reverts commit c8bc83f5ea.

As Karel pointed out the -l switch doesn't actualy conflict with
per-filesystem options, since those can be seperated by -- in the
command line. Since -l is here to stay we hence enable it again for now.
2010-11-19 04:22:36 +01:00
Lennart Poettering
1cd4a9f0e9 cryptsetup: actually show disk name 2010-11-18 23:40:27 +01:00
Lennart Poettering
b1a2da0a79 cryptsetup: show udev device name when asking for password 2010-11-18 23:34:42 +01:00
Lennart Poettering
24a3597372 sysctl: don't consider missing kernel options fatal 2010-11-18 23:03:42 +01:00
Lennart Poettering
8e1bd70d4c sysctl: implement native sysctl tool to support Debian-style /etc/sysctl.d 2010-11-18 21:52:26 +01:00
Lennart Poettering
40f9afa721 mount: trivial optimization 2010-11-18 19:23:17 +01:00
Lennart Poettering
10aa703482 util: introduce /etc/os-release so that distros don't need to patch systemd to get a welcome message 2010-11-18 04:46:28 +01:00
Lennart Poettering
a45b9fd094 job: make sure we don't fail umount.target if a mount unit failed to stop 2010-11-18 03:52:39 +01:00
Lennart Poettering
9f4527411b cgroup: after killing cgroup processes, ensure the group is really dead gone. wait for 3s at max 2010-11-18 02:37:35 +01:00
Lennart Poettering
2db9ecac35 cgroup: if we couldn't remove a cgroup after killing evertyhing in it then it's fine 2010-11-18 02:36:51 +01:00
Lennart Poettering
2f8cd170ae cryptsetup: automatically order crypt partitions before cryptsetup.target 2010-11-18 02:16:36 +01:00
Lennart Poettering
06d4c99ab3 manager: make list of default controllers configurable 2010-11-18 00:42:35 +01:00
Lennart Poettering
7838dc3ae1 build: expose libcryptsetup dependency in build string 2010-11-18 00:39:09 +01:00
Lennart Poettering
d686d8a97b cgroup: by default, duplicate service cgroup in the cpu hierarchy 2010-11-17 21:27:53 +01:00
Lennart Poettering
74fe1fe36e pam: duplicate cgroup tree in the cpu hierarchy by default, optionally more 2010-11-17 20:24:25 +01:00
Kay Sievers
230e5a3fb0 Revert "update TODO"
This reverts commit afe635e718.

Oops, libnotify should not have been in here.
2010-11-17 13:19:10 +01:00
Kay Sievers
afe635e718 update TODO 2010-11-17 11:58:42 +01:00
Lennart Poettering
0cf8469387 ask-password: add --console mode to ask questions on /dev/console 2010-11-16 04:28:04 +01:00
Lennart Poettering
42e19823e6 cryptsetup: reword questions a little 2010-11-16 03:47:14 +01:00
Lennart Poettering
4313fc2ceb path: don't mention too many inotify msgs 2010-11-16 03:27:00 +01:00
Lennart Poettering
494856b55c cryptsetup: include device name in password question 2010-11-16 03:24:17 +01:00
Lennart Poettering
b853f6e9d6 cryptsetup: lock ourselves into memory as long as we deal with passwords 2010-11-16 03:23:52 +01:00
Lennart Poettering
967072694d plymouth: use updated socket name 2010-11-16 03:12:54 +01:00
Lennart Poettering
d90b9d27af pam: always rely on loginuid instead of uid to determine cgroup and XDG_RUNTIME_DIR 2010-11-16 00:10:57 +01:00
Lennart Poettering
0baf24ddd5 cgroup: call root cgroup system instead of systemd-1 2010-11-15 23:55:53 +01:00
Lennart Poettering
e3aa71c38c exec: automatically determine right TERM= setting based on tty name 2010-11-15 23:49:02 +01:00
Lennart Poettering
96a8cbfae1 pam: rename master user cgroup to 'master' 2010-11-15 23:22:33 +01:00
Lennart Poettering
af2d49f70b drop support for MANAGER_SESSION, introduce MANAGER_USER instead 2010-11-15 22:13:26 +01:00
Lennart Poettering
62347bc24a path: properly free PathSpec structs 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
36af55d997 unit: introduce ConditionDirectoryNotEmpty= 2010-11-15 22:13:25 +01:00
Matthias Clasen
5c273f8556 build-sys: fix building against libnotify 0.7
Here are two patches I needed to get systemd to build against the
current libnotify and vala releases.
2010-11-15 22:13:25 +01:00
Lennart Poettering
8c4dd542af units: get rid of no_requires unit flag, and make crypto disks require cryptsetup service 2010-11-15 18:26:37 +01:00
Lennart Poettering
99f08d14a7 load-dropin: add support for .requires directories 2010-11-15 04:24:04 +01:00
Lennart Poettering
49d50c55bb cryptsetup: bind cryptsetup service to both source and destination device 2010-11-15 04:11:42 +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
672028dc4e path: avoid immediate restarting of units triggered by paths if nothing actually changed on disk 2010-11-15 00:49:21 +01:00
Lennart Poettering
782195a3c3 path: always look for IN_ATTRIB since deletion is signalled that way 2010-11-15 00:47:29 +01:00
Lennart Poettering
6210e7fc31 manager: always pull 'following' units into transaction 2010-11-14 23:48:21 +01:00
Lennart Poettering
9381a72403 util: always highlight distro name 2010-11-14 23:48:20 +01:00
Lennart Poettering
92ab323c82 units: make use of agetty mandatory 2010-11-14 23:48:20 +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
824a1d590a pam: rename 'no-session' to 'user' cgroup 2010-11-14 23:48:20 +01:00
Lennart Poettering
57339f47f1 job: make it possible to wait for devices to be unplugged 2010-11-14 23:48:20 +01:00
Lennart Poettering
9c73736da8 tmpfiles: ignore files marked with the sticky bit 2010-11-14 20:12:51 +01:00
Lennart Poettering
f90cf44c02 load-fragment: properly do comparison of words 2010-11-14 19:59:10 +01:00
Lennart Poettering
5475ff4b7a udev: ignore temporary udev devices 2010-11-14 19:59:10 +01:00
Lennart Poettering
1fc7633598 cryptsetup: handle password=none properly 2010-11-14 19:59:10 +01:00
Lennart Poettering
e2d480b9d1 cryptsetup: properly parse cipher= switch 2010-11-14 19:59:10 +01:00
Lennart Poettering
260ab28795 cryptsetup: support non-LUKS crypto partitions 2010-11-14 19:59:10 +01:00
Lennart Poettering
bd1db33fb9 ask-password: leave printing of final prompt colon to message 2010-11-12 03:42:13 +01:00
Lennart Poettering
7af53310dd ask-password: don't show wall message on ttys we are already running a tty agent on 2010-11-12 03:33:08 +01:00
Lennart Poettering
9d3e691e70 ask-password: refer to right binary name in wall message 2010-11-12 03:05:20 +01:00
Lennart Poettering
656ce8f77a ask-password: ignore unknown query file fields 2010-11-12 03:05:03 +01:00
Lennart Poettering
53d3afa8ca ask-password: properly NULL terminate table 2010-11-12 03:04:47 +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
74715b82cb cryptsetup: automatically start cryptsetup when looking for mount source 2010-11-12 03:04:10 +01:00
Lennart Poettering
f41c094c9f log: fix build 2010-11-12 01:02:03 +01:00
Lennart Poettering
bb7df0da2d log: add automatic log target 2010-11-12 01:01:04 +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
9190132924 build-sys: fix usage of path macros 2010-11-12 00:40:26 +01:00
Lennart Poettering
9fe117ea5a mount: don't relabel /dev twice in a row 2010-11-12 00:40:26 +01:00
Kay Sievers
57f2a956e6 split mount_point_is_api() and mount_point_ignore()
We should not handle the ignore list as API mounts, as
systemd itself never touches them.

On Thu, Nov 11, 2010 at 10:34, Andreas Jaeger <aj@novell.com> wrote:
>
> I noticed for some time that systemd-remount-api-vfs is in the
> failed state and found now the following in the log files
>
> systemd-remount-api-vfs[467]: /bin/mount for /proc/bus/usb exited with exit status 32.
> systemd-remount-api-vfs[467]: mount: /proc/bus/usb not mounted already, or bad option
> systemd[1]: systemd-remount-api-vfs.service: main process exited, code=exited, status=1
> systemd[1]: Unit systemd-remount-api-vfs.service entered failed state.
2010-11-11 11:15:16 +01:00
Andrey Borzenkov
5b396b06e0 vconsole: support additional keymap for toggling layouts
At least Mandriva offers configuring characters to toggle
keyboard layout independently from main keymap. This functions
much the same as XkbOptions for X11 and actually is configured
together. The patch adds support for additional keymap,
KEYMAP_TOGGLE, to /etc/vconsole.conf, that is intended to be
used for the same purpose.
2010-11-10 23:41:54 +01:00
Lennart Poettering
6ee5bbf85c main: warn if /etc/mtab is not a symlink 2010-11-10 23:18:34 +01:00
Ran Benita
42bb3074fe add bash completion for systemctl --system
I've been playing recently with systemd on Arch, and had much fun. But
soon, alas, my fingers started to ache from repeatedly writing
systemctl restart some-long-service.service. So, I wrote a completion
script. I figured other people may want to use it, so I prepared a
patch against systemd-git (attached).

There are some notes/disclaimers, however:

- It requires bash>=4.0, sed, grep and awk. A bash-completion package
is not strictly needed; sourcing the file is enough.
- It wouldn't work properly with --session, as I had no way to test it.
- It uses the output of systemctl list-units directly when that's
enough, but also runs systemctl show when completing on some verbs
(for example, to check for AllowIsolate=yes). This /may/ be somewhat
slow once there are many units, since it calls a dbus method on each
one. Is there a faster way to have that information?
- The code is perhaps a bit long and messy; honestly, I blame the tool ;)

One way to improve on the situation is to integrate some completion
code in systemctl itself, the way e.g. gdbus, gsettings and django do
it. This will allow for finer grained and faster completions, and it
won't be necessary to keep the verb/option tables in sync with some
other file. But it does mean adding all of this code in C. If this is
acceptable, I'll try to have a go at it.

Finally, a couple of completion tips I run into:
- If you alias systemctl to, say, sctl, you get completions on that
too by running to following command:
complete -F _systemctl sctl
- Add the following line to your .inputrc, to have the completion show
after only a single tab press:
set show-all-if-ambiguous on
It makes the shell quite more pleasant.

Hope it's good enough!

Ran
2010-11-10 23:02:44 +01:00
Lennart Poettering
f3b6a3edbc main: rename process on startup to 'systemd' to avoid confusion 2010-11-10 22:39:33 +01:00
Lennart Poettering
d257ddef22 unit: add ConditionNull= condition 2010-11-10 22:39:18 +01:00
Lennart Poettering
06cdd2484c ac-power: make ac-power a proper binary that scripts can call 2010-11-10 22:38:44 +01:00
Lennart Poettering
e9ddabc246 manager: parse RD_TIMESTAMP passed from initrd 2010-11-10 22:38:44 +01:00
Lennart Poettering
70ca520f43 modules-load: fix minor race 2010-11-10 22:38:43 +01:00
Lennart Poettering
dce8e2e123 label: use internal utility functions wher epossible 2010-11-10 22:38:43 +01:00
Lennart Poettering
e23a0ce8ba cryptsetup: minimal cryptsetup unit generator 2010-11-10 22:38:43 +01:00
Lennart Poettering
1829dc9dc5 selinux: relabel /dev after loading policy 2010-11-10 22:38:43 +01:00
Lennart Poettering
31a7034d38 log: downgrade syslog connection failure message since it might happen during normal operation 2010-11-10 22:38:43 +01:00
Lennart Poettering
2edfa36685 service: delay automatic restart if job is pending 2010-11-10 22:38:43 +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
Andrey Borzenkov
1e85f63615 do not overwrite other udev tags
Systemd was unconditionally replacing all tags with own.
The net effect was udev-acl tag was lost and devices were
not given proper ACLs, making them inaccessible.

Before:

{pts/0}% udevadm info --query property --name sr0
DEVNAME=/dev/sr0
[...]
TAGS=:systemd:
{pts/0}% getfacl /dev/sr0
getfacl: Removing leading '/' from absolute path names
# file: dev/sr0
# owner: root
# group: cdrom
user::rw-
group::rw-
other::---

After:

{pts/0}% udevadm info --query property --name sr0
DEVNAME=/dev/sr0
[...]
TAGS=:udev-acl:systemd:
{pts/0}% getfacl /dev/sr0
getfacl: Removing leading '/' from absolute path names
# file: dev/sr0
# owner: root
# group: cdrom
user::rw-
user:bor:rw-
group::rw-
mask::rw-
other::---

Signed-off-by: Andrey Borzenkov <arvidjaar@gmail.com>
2010-11-02 18:30:26 +01:00
Michael Biebl
c8bc83f5ea Revert "fsck: add new -l switch to fsck mount options"
The '-l' option is already taken by fsck.ext[234]:
  "-l bad_blocks_file   Add to badblocks list"

This reverts commit cf1a105550 but keeps
the string changes.
2010-10-31 23:30:17 +01:00
Lennart Poettering
cf1a105550 fsck: add new -l switch to fsck mount options 2010-10-31 00:40:13 +02:00
Kay Sievers
0f6aaf1bdd fsck: return SUCCESS when we skip the check 2010-10-29 21:05:00 +02:00
Kay Sievers
a84f519214 fsck: skip checking / if it is writable 2010-10-29 19:55:21 +02:00
Lennart Poettering
d91430063e mount: don't pull in nofail mounts by default, but use them if they are around 2010-10-29 16:28:30 +02:00
Lennart Poettering
e6a3ff9593 job: recursively fail BoundBy dependencies 2010-10-29 16:28:30 +02:00
Lennart Poettering
70f12d3708 fsck: fix target name to check for 2010-10-29 16:28:29 +02:00
Lennart Poettering
2a77d31df9 units: order units by default before appropriate targets in case they are pulled indirectly 2010-10-29 16:28:29 +02: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
941a4041bd automount: show who's triggering an automount 2010-10-28 22:20:01 +02:00
Lennart Poettering
9feeba4bbb systemctl: always show what and where for mount units in status output 2010-10-28 22:11:45 +02:00
Lennart Poettering
ab58e29119 shutdown: reword a few messages a little 2010-10-28 22:11:26 +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
b363ca6f20 timer: when deserializing timer state stay elapsed when we are elapsed 2010-10-28 04:04:50 +02:00
Lennart Poettering
f14e15f8af unit: replace recursive_stop by stop_retroactively to simplify things a little 2010-10-28 03:38:52 +02:00
Lennart Poettering
799fd0fd23 service: unify tstamp serialization code 2010-10-28 03:16:03 +02:00
Lennart Poettering
18f593360b device: set recursive_stop=true by default 2010-10-28 03:15:44 +02:00
Lennart Poettering
8aaf019b5c unit: suppress incorrect deserialization errors 2010-10-28 02:19:21 +02:00
Lennart Poettering
008d348edd swap: there's no reason not order swap after sysinit, so drop it 2010-10-28 01:30:13 +02:00
Andrey Borzenkov
f89f1e8f83 socket: fix IPv6 availability detection
If IPv6 is loaded with disable=1, any IPv6 functionality is completely
disabled until the ipv6 module is reloaded. Do not assume IPv6 is available just
because the module is present. Fixes startup error:

Oct 27 20:58:02 cooker kernel: IPv6: Loaded, but administratively disabled, reboot required to enable
Oct 27 20:58:02 cooker kernel: systemd[1]: Set hostname to <cooker>.
Oct 27 20:58:02 cooker kernel: systemd[1]: Netlink failure for request 2: Operation not supported
Oct 27 20:58:02 cooker kernel: systemd[1]: Failed to configure loopback device: Operation not supported
2010-10-28 00:37:57 +02:00
Lennart Poettering
5c0532d1cc mounts: automatically create /dev/stderr and friends early on boot so that they are around when we run shell scripts before udevd 2010-10-27 05:47:48 +02:00
Lennart Poettering
c4dcdb9f47 selinux: automatically load policy if the initrd hasn't done this for us yet 2010-10-27 05:47:02 +02:00
Lennart Poettering
ade509ce73 main: move make_null_stdio() to util.c 2010-10-27 05:45:57 +02:00
Lennart Poettering
4fbf50b38e service: when after startup only one process is in a service's cgroup, assume it is the main process 2010-10-27 03:16:49 +02:00
Lennart Poettering
10717a1a8d unit: serialize active timestamps 2010-10-27 00:01:12 +02:00
Lennart Poettering
510051fc12 swap: add only swaps listed in /etc/fstab automatically to swap.target, others should be added via .wants/ links 2010-10-26 22:58:54 +02:00
Lennart Poettering
da8f9f8cff errors: refer to systemctl status when useful 2010-10-26 22:40:02 +02:00
Lennart Poettering
f1a1cd6497 swap: add default cgroup to swap exec env 2010-10-26 22:06:11 +02:00
Lennart Poettering
15412f2987 swap: expose swap exec env proprties via dbus 2010-10-26 22:05:52 +02:00
Lennart Poettering
de58283f71 readahead: bump a device's request_nr when enabling readahead 2010-10-26 21:28:39 +02:00
Lennart Poettering
415dbd2e54 shutdown: properly handle sigtimedwait() timing out 2010-10-26 20:51:15 +02:00
Lennart Poettering
57b63f363f exec: fix dbus exposure of UtmpIdentifier field 2010-10-26 20:45:43 +02:00
Andrey Borzenkov
87d1969bb3 main: fix typo in kernel cmdline parameters help 2010-10-26 20:07:12 +02:00
Mike Kazantsev
0320828cac service: fix sysv-less build 2010-10-26 15:18:13 +02:00
Lennart Poettering
b9ba604e87 ask-password-tty: properly handle SIGINT/SIGTERM 2010-10-26 15:15:00 +02:00
Lennart Poettering
501fc174c2 systemctl: automatically spawn temporary password agent when we might need one 2010-10-26 05:29:39 +02:00
Lennart Poettering
0ddf1d3aa5 ask-password: properly handle multiple pending passwords when writing wall msg 2010-10-26 04:45:27 +02:00
Lennart Poettering
e5ebf783cb ask-password: add minimal plymouth password agent 2010-10-26 04:35:25 +02:00
Lennart Poettering
9865f3b4ca service: make sure to pass TERM=linux to all sysv scripts 2010-10-26 02:32:42 +02:00
Lennart Poettering
39439087bf main: don't unset HOME/TERM when run in session mode 2010-10-26 02:32:02 +02:00
Michael Biebl
9279749b84 umount: Make sure / is remounted ro on shutdown
Increment n_failed in mount_points_list_umount() if we skip /.
Otherwise it can happen that mount_points_list_remount_read_only() is
not called in umount_all().
2010-10-25 21:51:57 +02:00
Andrew Edmunds
274914f991 util: Add welcome message for Ubuntu
The approved method for determining the installed release of
Ubuntu is to execute "lsb_release".  However, this is in /usr/bin and
is implemented in python so it is not safe to execute at this early
stage of booting.  This code parses /etc/lsb-release which is
where "lsb_release" looks for the information.
2010-10-25 21:10:05 +02:00
Andrew Edmunds
858dae181b ubuntu: Treat Ubuntu as a distinct distro in configure.ac etc
Previously Ubuntu was treated as being equivalent to Debian, but the two
distributions require different behaviour in certain places.  This commit does
not change the behaviour of systemd on either distro but it creates a
framework for changes to be introduced by later commits.

The following previously meant "Target is Debian or Ubuntu".
    * configure option "--with-distro=debian"
    * C preprocessor symbol "TARGET_DEBIAN"
    * Automake conditional "TARGET_DEBIAN"
After this commit, all of the above are redefined to mean "Target is Debian"

The following are introduced to mean "Target is Ubuntu".
    * configure option "--with-distro=ubuntu"
    * C preprocessor symbol "TARGET_UBUNTU"
    * Automake conditional "TARGET_UBUNTU"

Most code written for Debian will also be applicable to Ubuntu. An extra
Automake conditional "TARGET_DEBIAN_OR_UBUNTU" is introduced to avoid
duplication of code that would otherwise occur.

This commit updates configure.ac, Makefile.am and distro-specific source files
in line with the above definitions.
2010-10-25 21:09:56 +02:00
Lennart Poettering
1104f3c160 systemd: unset HOME and TERM set from the kernel 2010-10-25 21:05:04 +02:00
Lennart Poettering
ec863ba65a ask-password: add basic tty agent 2010-10-25 20:36:01 +02:00
Lennart Poettering
d674a4ab52 ask-password: rename ask-password-agent to gnome-ask-password-agent 2010-10-22 16:38:14 +02:00
Lennart Poettering
ef1de59b5e fsck: suppress error message if we cannot change into single user mode since we are already passt early bootup 2010-10-22 16:12:56 +02:00
Lennart Poettering
288c783a9d dbus: epose FsckPassNo property for service objects 2010-10-22 16:12:26 +02:00
Lennart Poettering
8a0867d6c5 systemctl: introduce systemctl kill 2010-10-22 16:11:50 +02:00
Tom Gundersen
95e501f8ab unit-name: Fix unescaping
Invalid characters in unit names are escaped as \xFF. However, when
unescaping we were looking for \FF.
2010-10-21 14:04:10 +02:00
Gustavo Sverzut Barbieri
abe35cc2b7 tmpfiles: consider TRUNCATE_DIRECTORY as well.
reorder lines to match the enum declaration.
2010-10-21 13:53:47 +02:00
Kay Sievers
51ccf641d7 fsck: drop -C from fsck cmdline to avoid EPIPE 2010-10-21 12:22:30 +02:00
Lennart Poettering
9fc507041e unit: introduce %f specifier to decode file names 2010-10-20 16:16:45 +02:00
Lennart Poettering
417e842dc3 mount: pull in quotacheck.service, not quotacheck.target 2010-10-20 15:21:44 +02:00
Lennart Poettering
0355825f59 mount: require fsck 2010-10-20 15:21:05 +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
b65a25f256 mount: do not implicitly pull in fsck service for root dir 2010-10-20 14:26:46 +02:00
Lennart Poettering
2ba545f1a0 service: implement FsckPassNo= option 2010-10-20 14:22:23 +02:00
Lennart Poettering
dcdf86bbb0 log: reopen console so that we have logging on shutdown 2010-10-20 00:56:26 +02:00
Lennart Poettering
dc8e15c206 fsck: don't be idempotent for root directories 2010-10-20 00:44:09 +02:00
Lennart Poettering
6e8ebcc7de fsck: make fsck idempotent 2010-10-19 23:47:12 +02:00
Lennart Poettering
a9e1f5ec36 fsck: properly hook in fsck everywhere, add special support for fsck'ing root dir 2010-10-19 23:45:18 +02:00
Lennart Poettering
90bb85e140 fsck: atomically replace base.target by rescue.target/reboot.target when fsck fails 2010-10-19 21:53:19 +02:00
Lennart Poettering
3e33a44a01 fsck: be verbose when skipping fsck due to missing AC 2010-10-19 21:22:47 +02:00
Lennart Poettering
3d20ed6d51 fsck: add initial version of fsck and quotacheck wrappers 2010-10-19 21:19:12 +02:00
Lennart Poettering
688c672501 systemctl: fix counting in list-units output
https://bugzilla.redhat.com/show_bug.cgi?id=643502
2010-10-19 19:43:47 +02:00
Lennart Poettering
29003cffa7 tmpfiles: destruct selinux database after use 2010-10-19 19:36:45 +02:00
Lennart Poettering
d2dfce17b5 label: don't fail miserably if filesystem doesn't do xattrs/labels
https://bugzilla.redhat.com/show_bug.cgi?id=642664
2010-10-19 19:35:35 +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
5a33f657b5 label: if the selinux policy knows no label, then silently don't do anything 2010-10-18 22:47:57 +02:00
Lennart Poettering
e472d47628 util: ignore quota files by default 2010-10-18 22:39:17 +02:00
Lennart Poettering
47a483a1ab manager: serialize/deserialize finish timestamp 2010-10-18 22:39:06 +02:00
Lennart Poettering
3b63d2d31d tmpfiles: integrate kay's directory cleanup code and otherwise beef up tmpfiles quite a bit 2010-10-18 22:38:41 +02:00
Lennart Poettering
12aad1d075 shutdown: loop only as long as we manage to unmount/detach devices, give up immediately when we are stuck 2010-10-14 18:55:04 +02:00
Lennart Poettering
2d9a339782 umount: disable dm devices by devnode, not by path name 2010-10-14 18:17:23 +02:00
Lennart Poettering
b4f27ccc63 systemctl: accept -f as short for --force 2010-10-14 03:19:13 +02:00
Lennart Poettering
d48141ba0b umount: try to get rid of DM devices 2010-10-14 02:33:09 +02:00
Lennart Poettering
2ca1b42253 shutdown: log to console by default 2010-10-14 01:27:31 +02:00
Fabiano Fidencio
bec9996d6a vala: register new D-Bus calls 2010-10-14 00:56:50 +02:00
Lennart Poettering
20b09ca7fd systemctl: rework halt/reboot/poweroff/kexec/exit logic around --force 2010-10-14 00:56:12 +02:00
Lennart Poettering
0003d1ab75 manager: hookup shutdown helper and signals 2010-10-14 00:54:48 +02:00
Lennart Poettering
6652a2b9e5 dbus: expose shutdown helper via D-Bus 2010-10-14 00:53:51 +02:00
Fabiano Fidencio
b9080b03a9 manager: hookup execution of systemd-shutdown helper
(Modified by Lennart Poettering)
2010-10-14 00:52:26 +02:00
Lennart Poettering
e61cd18666 shutdown: make use of wait_for_terminate_and_warn() 2010-10-14 00:50:11 +02:00
Lennart Poettering
d37fb98bbc shutdown: execute rescue kill only once 2010-10-14 00:49:53 +02:00
Lennart Poettering
567ea02a89 shutdown: don't chdir to /, since init is running with / as cwd anyway 2010-10-14 00:49:22 +02:00
Lennart Poettering
7e23b34c7d umount: be a bit more verbose when unable to umount/unswap/delete loopbacks 2010-10-14 00:43:35 +02:00
Lennart Poettering
ce726252a9 umount: simplify code for deactivating loop devices 2010-10-14 00:43:13 +02:00
Lennart Poettering
b854a7e728 umount: properly enumerate loopback devices 2010-10-14 00:42:44 +02:00
Lennart Poettering
2054a5b8cb umount: unescape path from /proc/self/mountinfo first, then check against api mount list 2010-10-14 00:41:57 +02:00
Lennart Poettering
f23c09b0fd condition: fix copyright 2010-10-14 00:40:39 +02:00
Lennart Poettering
491ad5dc66 mount: pull in fsck only in systemd instances 2010-10-13 17:18:36 +02:00
Lennart Poettering
9fff8a1f16 mount: hook in q fsck@.service instance for all mount points with passno > 0 2010-10-13 03:57:04 +02:00
Lennart Poettering
560d8f2381 systemctl: warn if user enables unit with no installation instructions 2010-10-13 03:13:23 +02:00