Commit Graph

925 Commits

Author SHA1 Message Date
Lennart Poettering
e83c7c0ba4 service: don't hit an assert if information in LSB headers is incorrectly formatted
https://bugzilla.redhat.com/show_bug.cgi?id=667665
2011-01-07 00:49:35 +01:00
Lennart Poettering
86a3475bc5 execute,util: fix two small memory leaks 2011-01-06 23:52:17 +01:00
Lennart Poettering
2c4b304e64 specifier: at minimal test 2011-01-06 23:51:52 +01:00
Lennart Poettering
a6ff950e71 execute: drop empty assignments from env blocks on execution but keep them around otherwise to make them visible 2011-01-06 20:38:02 +01:00
Lennart Poettering
7fc942b29e umount: don't try to detach the dm device the root dir is on, to minimize warning messages 2011-01-06 19:10:17 +01:00
Lennart Poettering
e624abf777 locale: fix variable names 2011-01-06 01:39:25 +01:00
Lennart Poettering
afe4bfe2c1 fragment: allow prefixing of the EnvironmentFile= path with - to ignore errors 2011-01-06 01:39:08 +01:00
Lennart Poettering
c4731d1135 util: don't pass invalid fd to fdopendir() on error to avoid corruption of errno 2011-01-05 16:17:26 +01:00
Lennart Poettering
022707d961 tmpfiles: nicer message when two or more conflicting lines are configured for the same file 2011-01-05 16:11:15 +01:00
Lennart Poettering
5f7c426e2a fragment: properly handle quotes in assignments in EnvironmentFile= files 2011-01-05 16:06:35 +01:00
Lennart Poettering
5707631ec6 sysctl: don't warn if sysctls are gone 2011-01-05 00:05:53 +01:00
Lennart Poettering
a78899f541 readahead: ignore if files are removed during collection or before replay 2011-01-04 23:42:58 +01:00
Lennart Poettering
60b4f27794 serial: use TERM=vt100 instead of TERM=vt100-nav
TERM=vt100-nav was necessary for compat with some ppc hvc devices, a
long time ago. Unfortunately vt100-nav terminfo is not installed by
default on most distros, hence change the default to v100 which is
available universally and still should be a relatively safe and
conservative default.

Should it turn out that vt100 is not really the best choice we can
revert this change again and then ask distros to move vt100-nav into
their default install.
2011-01-04 21:45:52 +01:00
Lennart Poettering
75d12d5767 systemctl: Don't use Debian's 'sensible-pager', use 'pager' instead 2011-01-04 14:54:53 +01:00
Lennart Poettering
1d3399e6ef cryptsetup: call mkswap on dm device, not on source device 2011-01-04 02:12:07 +01:00
Lennart Poettering
bef2733fae mount-setup: mount /dev/pts with mode=620,gid=5 by default and make GID overridable via configure switch 2011-01-04 01:58:38 +01:00
Lennart Poettering
4c00bf2561 systemctl: drop redundant getenv('LESS') check 2011-01-04 01:18:57 +01:00
Lennart Poettering
ec14911e0d systemctl: spawn pager only for commands that generates long output 2011-01-04 01:04:20 +01:00
Lennart Poettering
1888c9074a systemctl: make the child the pager, leave systemctl as parent
It's nicer if the child process gets reinitialized cleanly instead of
the parent process.
2011-01-04 00:58:35 +01:00
Lennart Poettering
611efaac7a systemctl: try harder to find a suitable pager 2011-01-04 00:47:40 +01:00
Miklos Vajna
0736af98c6 systemctl: implement auto-pager a la git 2011-01-02 18:17:19 +01:00
Tom Gundersen
71656790d6 arch: remove welcome message
This is now done by os-release downstream.
2011-01-01 21:36:08 +01:00
Lennart Poettering
abd41c86b5 shutdown: drop redundant sync() invocation 2011-01-01 19:54:12 +01:00
Lennart Poettering
c29597a104 util: invoke sync() implicitly on freeze()
Suggested by Tom Gundersen.
2011-01-01 19:50:32 +01:00
Lennart Poettering
a247755d52 tmpfiles: ensure we do no follow symlinks when cleaning up dirs
Patch suggested by Miloslav Trmac.
2010-12-28 14:21:28 +01:00
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