Lennart Poettering
da71f23cda
util: seperate welcome line from other output by empty lines
2011-02-16 19:34:38 +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
444d943235
udev: ignore block devices which no known contents, to avoid trying of mounts/swapons when devices aren't set up full yet
2011-02-16 19:34:38 +01:00
Kay Sievers
853856101b
swap: handle "nofail" from fstab
2011-02-15 18:38:15 +01:00
Lennart Poettering
27abbe8251
mount,swap: properly add dependencies to logger if needed
2011-02-15 12:28:26 +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
b7cf1b68a7
udev: use SYSTEMD_READY to mask uninitialized DM devices
2011-02-15 10:59:46 +01:00
Lennart Poettering
28dbc1e80b
execute: optionally forward program output to /dev/console in addition to syslog/kmsg
2011-02-15 01:27:53 +01:00
Lennart Poettering
7b4bf06ba7
socket: refuse socket activation for SysV services
...
Make sure that when a .socket unit is installed without its matching
.service we don't end up activating a legacy SysV/LSB service with the
same name. SysV/LSB style services do not support passing sockets and we
don't want to extend SysV/LSB to ensure we don't break compatibility
with other systems.
2011-02-15 00:40:17 +01:00
Lennart Poettering
a4c24ff75a
fsck: do not fail boot if fsck returns with an error code that hasn't 2 or 6 set
2011-02-15 00:30:51 +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
3036c489fa
job: make status message printing more verbose
2011-02-14 23:10:31 +01:00
Lennart Poettering
a4477e6852
cryptsetup: fix unit file description
2011-02-14 23:09:27 +01:00
Lennart Poettering
17b9052533
tmpfiles: never delete AF_UNIX sockets that are alive
2011-02-14 21:55:06 +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
079a09fbf7
util: properly resolve /dev/console if more than once console= argument was passed on the kernel command line
2011-02-14 19:54:15 +01:00
Lennart Poettering
f212ac125f
getty: do not auto-spawn getty's on VC ttys if console=ttyN is used
...
https://bugzilla.redhat.com/show_bug.cgi?id=676885
2011-02-14 18:56:55 +01:00
Lennart Poettering
3030ccd79f
util: when determining the right TERM for /dev/console consult /sys/class/tty/console/active
2011-02-13 19:01:47 +01:00
Lennart Poettering
2633eb8317
service: when guessing the main PID don't consider processes that aren't our children
2011-02-13 18:52:02 +01:00
Lennart Poettering
3185a36b05
service: make main pid guessing optional, and reread pid file after reloads
2011-02-13 18:51:30 +01:00
Lennart Poettering
e9fbc77c8f
pam: introduce whitelist and blacklist user list feature
...
This is useful to exclude root from the session logout killings or to
limit killing to the selinux guest users.
2011-02-13 18:21:18 +01:00
Lennart Poettering
7fc01d3319
systemctl: minor optimizations
2011-02-13 17:18:45 +01:00
Lennart Poettering
060ed82ec2
systemctl: don't unnecessarily close stdin/stdout/stderr for tty agent so that locking by tty works
2011-02-13 17:09:29 +01:00
Lennart Poettering
46a08e3815
readahead: disable readahead in virtual machines
2011-02-13 15:46:05 +01:00
Lennart Poettering
522d4a495a
systemd: document systemd-tmpfiles
2011-02-13 15:08:15 +01:00
Lennart Poettering
fba6e68723
tmpfiles: take names of tmpfiles configuration files on the command line
2011-02-13 14:00:54 +01:00
Lennart Poettering
eb0ca9ebff
tmpfiles: log to stderr if possible
2011-02-12 09:31:38 +01:00
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
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