Lennart Poettering
b8bb3e8f34
tmpfiles: support globs
2011-02-12 09:31:25 +01:00
Lennart Poettering
88dfa2938a
units: introduce and hook up sound.target
2011-02-09 21:07:53 +01:00
Lennart Poettering
abc00c62f9
dbus: allow all clients access to org.freedesktop.DBus.Peer
2011-02-09 15:21:20 +01:00
Lennart Poettering
2958c88614
device: consider udev devices with SYSTEMD_READY=0 as unplugged
2011-02-09 14:48:52 +01:00
Lennart Poettering
e1b2b49465
systemd: show status when run with plymouth, and don't start plymouth a second time when it is already running
2011-02-09 14:17:52 +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
b1c0f1c136
systemctl: fix opening params
2011-02-09 01:11:19 +01:00
Lennart Poettering
715554e7b2
systemctl: don't start agent for --user
2011-02-09 01:09:09 +01:00
Lennart Poettering
7f6d613516
systemctl: make sure the tty agent does not retain a copy of stdio
...
https://bugzilla.redhat.com/show_bug.cgi?id=674916
2011-02-09 01:00:21 +01:00
Lennart Poettering
022ef2064f
locale: unify some code between fedora and altlinux
2011-02-08 12:54:06 +01:00
a338bab5d0
build-sys: initial support ALTLinux
...
Hi all!
I added basic support for ALTLinux.
Please see patch or
http://git.altlinux.org/people/shaba/packages/systemd.git?p=systemd.git;a=shortlog;h=refs/heads/altlinux
Thanks.
2011-02-08 12:52:06 +01:00
Lennart Poettering
dcafddbc08
dbus: use ControlGroup as property name to match config option
2011-02-08 11:13:42 +01:00
Lennart Poettering
b20c6be697
pam: optionally reset cgroup memberships for login sessions
2011-02-04 12:46:38 +01:00
Adrian Spinu
7115593375
load-fragment: properly parse Nice= value
...
Hello,
i`ve been using systemd for a while now, and found out that when
using NICE parameter for .service files the varible is not set correctly.
i`ve found the problem in file *load-fragment.c* function
*config_parse_nice* variable /*c->nice_set = false;*/ should be
/*c->nice_set = true;*/
Problem is alsom manifesting on v17 but did not upgrade yet ...
2011-02-03 21:23:32 +01:00
Lennart Poettering
5d909e3ec3
automount: use unit_pending_inactive() where appropriate
2011-01-26 02:55:35 +01:00
Lennart Poettering
bd40a2d830
clang: fix some issues found with clang-analyzer
2011-01-22 02:19:16 +01:00
Lennart Poettering
0b1724894f
gcc: make gcc shut up
2011-01-22 02:19:16 +01:00
Lennart Poettering
ed86ebc414
main: don't warn if /etc/mtab is a symlink to /proc/mounts
2011-01-21 02:57:58 +01:00
Lennart Poettering
cae18e2172
socket: don't crash if the .service unit for a .socket unit is not found
2011-01-21 02:49:12 +01:00
Lennart Poettering
ff2e0f0514
mount: ignore if an fsck is requested for a bind mount, so that we don't wait for the bind 'device' to show up
2011-01-21 01:28:30 +01:00
Lennart Poettering
e0fa621b8b
automount: fix segfault when shutting down
...
https://bugs.freedesktop.org/show_bug.cgi?id=32076
2011-01-21 01:13:15 +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
867b3b7d6b
service: make chain of main commands and control commands independent of each other, so that both can be executed simultaneously and independently
2011-01-20 18:46:38 +01:00
Lennart Poettering
c06b7a15ea
service: don't allow reload operations for oneshot services
...
During starting of oneshot we are in START state which we don't want to
combine with the RELOAD state, hence we disallow both at the same time.
2011-01-20 18:44:09 +01:00
Lennart Poettering
26742b3fd8
vala: convert from dbus-glib to gdbus
2011-01-20 18:24:26 +01:00
Lennart Poettering
9a57c62944
systemctl: highlight failed processes in systemctl status
2011-01-20 18:22:03 +01:00
Lennart Poettering
0129173ab0
systemctl: show process type along process exit codes
2011-01-20 13:24:24 +01:00
Lennart Poettering
e2f3b44cfc
service: when reloading a service fails don't fail the entire service but just the reload job
2011-01-20 13:17:22 +01:00
Brett Witherspoon
f8d0ceb46b
shutdown: use correct kexec options
...
The kexec man page is awful and misleading.
2011-01-19 00:35:21 +01:00
Lennart Poettering
4bc5f808e4
systemctl: before spawning pager cache number of columns
2011-01-18 23:12:49 +01:00
Lennart Poettering
3add4d215b
pam: optionally keep processes of root user around
2011-01-18 23:07:06 +01:00
Lennart Poettering
d8cfa08589
service: if a reload operation fails, don't shut down the service
2011-01-18 22:57:46 +01:00
Lennart Poettering
ba035df230
execute: make sending of SIGKILL on shutdown optional
2011-01-18 22:55:54 +01:00
Lennart Poettering
0058d7b91c
mount: FAT uuids are uppercase
2011-01-18 22:32:15 +01:00
Lennart Poettering
2292707df5
man: document missing KillSignal= and swap options
2011-01-18 00:40:10 +01:00
Tom Gundersen
521e05c7ce
arch: remove support for legacy daemons
...
This is now done by a generator, shipped downstream.
2011-01-17 22:41:19 +01:00
Lennart Poettering
47ae6e6760
device: don't warn if we cannot bump the socket buffer
2011-01-08 02:30:07 +01:00
Lennart Poettering
2d011a7923
logger: when passing on PID info, fall back to our own if originating process is already gone
2011-01-07 00:49:35 +01:00
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
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