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
Kay Sievers
5622dde36d systemctl: shutdown(8) - call kexec if kexec kernel is loaded 2011-02-20 21:09:07 +01:00
Lennart Poettering
78ab08eb1a tmpfiles: never clean up block devices 2011-02-19 14:20:16 +01:00
Lennart Poettering
b5c6cf8734 main: refuse --test as root 2011-02-19 14:20:00 +01:00
Lennart Poettering
a76fad090a readahead: remove misleading error messages
https://bugzilla.redhat.com/show_bug.cgi?id=678255
2011-02-18 02:26:03 +01:00
Lennart Poettering
f73f76acff util: retry opening a TTY on EIO
https://bugs.freedesktop.org/show_bug.cgi?id=33996
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/554172/comments/245
2011-02-17 16:29:49 +01:00
Lennart Poettering
fc116c6a19 util: beef up logic to find ctty name 2011-02-17 16:29:04 +01:00
Lennart Poettering
4ff21d8582 tmpfiles: kill double slashes in unix socket names, just in case 2011-02-17 13:13:34 +01:00
Lennart Poettering
e67c3609b1 systemctl: introduce --ignore-dependencies 2011-02-16 21:59:31 +01:00
Lennart Poettering
30732560c4 systemctl: introduce --failed to show only failed services 2011-02-16 20:34:59 +01:00
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