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
Lennart Poettering
2cccbca4fd
dbus: add introspection to midlevel paths
2010-10-13 03:03:31 +02:00
Lennart Poettering
37072578da
lookup: look for dynamic throw-away units in /dev/.systemd/system
2010-10-13 02:34:21 +02:00
Lennart Poettering
f601daa701
inotify: properly handle multiple inotify events per read()
2010-10-13 02:34:00 +02:00
Lennart Poettering
52661efd21
unit: add minimal condition checker for unit startup
2010-10-13 02:15:41 +02:00
Lennart Poettering
e04aad61bb
swap: major rework, use /sbin/swapon for setting up swaps, fix merging of aliased swap disks
2010-10-12 04:08:04 +02:00
Lennart Poettering
60b912f6b1
mount: minor cleanups
2010-10-12 04:08:04 +02:00
Lennart Poettering
538da63d53
systemctl: drop [] around date in status output
2010-10-12 04:08:04 +02:00
Lennart Poettering
4a9e2fffdf
systemctl: show whether we follow somebody in 'status' output
2010-10-12 04:08:01 +02:00
Lennart Poettering
50caaedb2c
service: introduce Restart=on-failure and Restart=on-abort
2010-10-08 18:34:54 +02:00
Lennart Poettering
c8f26f42e2
util: don't specifically check for the /dev/null major/minor, just check whether something is a char or block device
2010-10-08 18:22:28 +02:00
Lennart Poettering
6daf4f9001
unit: rename 'banned' load state to 'masked'
2010-10-08 18:21:52 +02:00
Lennart Poettering
169c1bda80
service: optionally, create INIT_PROCESS/DEAD_PROCESS entries for a service
...
This should fix accounting for pam_limits and suchlike.
https://bugzilla.redhat.com/show_bug.cgi?id=636036
2010-10-08 16:07:50 +02:00
Lennart Poettering
b9c0d4415b
systemctl: fix 'systemctl enable getty@.service'
2010-10-08 03:09:25 +02:00
Lennart Poettering
f34277d911
service: increase default timeout for sysv scripts to 3min
...
For SysV services we cannot set the timeout inside the configuration
file. Hence let's pick a large timeout by default.
https://bugzilla.redhat.com/show_bug.cgi?id=635393
2010-10-08 02:49:44 +02:00
Lennart Poettering
40b8a33210
mount: properly handle NULL fstype
...
https://bugzilla.redhat.com/show_bug.cgi?id=636752
2010-10-08 02:43:08 +02:00
Lennart Poettering
00dc5d769a
unit: introduce 'banned' load state for units symlinked to /dev/null
2010-10-08 02:31:36 +02:00
Lennart Poettering
4a8a5b2963
user-sessions: properly unlink both nologin files
2010-10-07 23:16:48 +02:00
Lennart Poettering
e92787416c
user-sessions: add minimal utility to kill user sessions that shall be called before destroying services on shutdown
2010-10-07 22:38:40 +02:00
Lennart Poettering
83d8b7c179
shutdown: drop last referral to mp->read_only
2010-10-07 20:47:26 +02:00
Lennart Poettering
143b4e9b8d
shutdown: drop redundant read_only bool var
2010-10-07 20:46:35 +02:00
Lennart Poettering
ef9ffbd806
shutdown: create /var/run/nologin instead of /etc/nologin which is supported since PAM 1.1.2
2010-10-07 20:46:02 +02:00
Lennart Poettering
3c14d26c47
util: unify implementations of freeze()
2010-10-07 19:34:56 +02:00
Fabiano Fidencio
b1b2a107d1
shutdown: Adding binary to shutdown the system
...
This functions are working as follows:
- Send a SIGTERM to all processes that may be finished
- Send a SIGKILL to all processes that still live and may be finished
- Try to unmount all mount points
- Try to remount read-only all mount points that can't be umounted
- Umount all swap devices
- Umount and detach all loopback devices
- Call [poweroff|halt|reboot|kexec]
TODO:
- Umount device-mapper.
- Make log work. So far it is being useless as we do not parse
/etc/systemd/system.conf, kernel command line but just
environment, however we're executed by init and thus have no
useful variables. Forcing it to target=kmsg/console and
level=debug also does not produce any output, however writing to
/dev/console does work (hack used during debug).
2010-10-07 19:23:46 +02:00
Fabiano Fidencio
e347837975
umount: Adding unmount functions to be used in shutdown
...
This functions will:
- umount all mount points that aren't API
- remount read-only all mount points that can't be umounted
- umount all swap devices.
- detach all loopback devices
TODO:
- umount dms
Mountpoints are being read from /proc/self/mountinfo.
Swaps are being read from /proc/swaps.
Loop devices from /sys/class/block/loop*.
2010-10-07 19:23:26 +02:00
Fabiano Fidencio
3846aeeba2
util: Adding a strneq, to represent (!strncmp(a, b, n))
...
As we have streq to repesent (strcmp(a, b) == 0),I'm adding
strneq to represent (strncmp(a, b, n) == 0), that will be used
in umount.c (at least).
2010-10-07 19:22:11 +02:00
Lennart Poettering
b7f426649b
sd-daemon: in some places sizeof(sa_family_t) actually does make sense
2010-10-07 19:01:26 +02:00
Lennart Poettering
0e098b15c7
util: never use sizeof(sa_family_t) when calculating sockaddr sizes
2010-10-07 02:34:17 +02:00
Lennart Poettering
e983b76024
manager: notify plymouth about progress if it is running
2010-10-06 03:55:49 +02:00
Lennart Poettering
71fad67514
systemctl: require correctly formed unit names when enabling units
2010-10-06 02:33:40 +02:00
Matthias Schiffer
0b021426fb
timer: Add missing break in switch
2010-10-05 23:28:13 +02:00
Fabiano Fidêncio
1ddff895f3
mount: Don't stop the mountinfo parser if one line can't be read
...
The current behavior of the /proc/self/mountinfo parser
is to stop the parser on parse failures
I'm only changing this behavior to try the next line and adding
a warning if occurs a fail.
2010-10-05 22:26:28 +02:00
Lennart Poettering
1bc5d57ae3
notify: fix include properly
2010-10-05 21:52:37 +02:00
Dave Reisner
c899f8c61a
fix typo: s/seperat/separat/g
2010-10-05 21:50:56 +02:00
Lennart Poettering
7607fea6a1
readahead: fix printf format string
2010-10-05 21:49:17 +02:00
Lennart Poettering
f031e85fc0
notify: add missing include
2010-10-05 21:49:01 +02:00
Mike Kelly
df37291a51
unit-name: fix unit name escaping
...
we want to do a bitwise shift, not a greater-than comparision
2010-10-05 21:23:30 +02:00
Lennart Poettering
525ee6f4a1
service: rename settings for Restart= from 'restart-always' to 'always' and similar
2010-10-05 20:30:44 +02:00
Lennart Poettering
d0b4880988
sd-daemon: split off sd_readahead() since it is not a feature of systemd itself but of an auxiliary tool
2010-10-05 20:20:38 +02:00
Lennart Poettering
a55da3cd5e
mount: sort network mounts after network.target by default
2010-10-05 19:50:00 +02:00
Lennart Poettering
f976f3f67c
socket: make sockets to pass to a service configurable
2010-10-05 19:50:00 +02:00
Lennart Poettering
d9ff321ad9
socket: make service to start on incoming traffic configurable
2010-10-05 19:50:00 +02:00
Lennart Poettering
0840ce2d49
readahead: ignore deleted files
2010-10-05 19:50:00 +02:00
Lennart Poettering
5b61848df2
readahead: minor 32bit fixes
2010-09-30 18:06:02 +02:00
Andreas Jaeger
010004791c
tmpfiles: fix typo in comment
2010-09-29 10:08:24 +02:00
Lennart Poettering
bdb0e14d27
readahead: preload pack file
2010-09-29 03:11:35 +02:00
Lennart Poettering
43be53513a
readahead: make sure /dev/.systemd/readahead exists
2010-09-29 02:55:40 +02:00
Kay Sievers
dd36de4d52
parse_env_file() - return empty value strings like FOO="" as NULL value
2010-09-28 23:41:09 +02:00
Lennart Poettering
7fcde28044
tmpfiles: move dir to /etc/tempfiles.d/
2010-09-28 22:32:27 +02:00
Lennart Poettering
4aa8b15b0c
tmpfiles: return sensible error code
2010-09-28 22:32:05 +02:00
Lennart Poettering
bfaf42d22b
tmpfiles: rename tempfiles to tmpfiles since this isn't windows
2010-09-28 22:11:27 +02:00
Fabiano Fidencio
95e26a692d
list: Fixing typo in LIST_FIND_HEAD
...
Just removing a parenthesis
2010-09-28 21:57:34 +02:00
Lennart Poettering
d9c7a87b35
readahead: ignore replay events when collecting
2010-09-28 21:46:30 +02:00
Lennart Poettering
ee95669fb6
service: first lookup LSB facility names in tables, only then suppress self-provides
2010-09-28 21:08:39 +02:00
Lennart Poettering
55888fa400
readahead: fix SSD check
2010-09-28 20:53:08 +02:00
Matthias Schiffer
409db00299
service: Don't crash because of double free when Arch services are disabled in rc.conf
2010-09-28 19:41:04 +02:00
Lennart Poettering
0b5d26f95d
service: filter out empty LSB description strings
2010-09-28 18:30:43 +02:00
Lennart Poettering
a7d3cc26f9
service: when resolving sysv names drop leading $
2010-09-28 18:30:43 +02:00
Kay Sievers
15917fb09b
modules-load: use /etc/modules-load.d/?*.conf
2010-09-28 17:02:29 +02:00
Kay Sievers
fd5bf055ac
use .conf for new config files: locale, vconsole, modules.d
2010-09-28 11:51:24 +02:00
Kay Sievers
915d22e4f0
vconsole-setup: ignore empty strings like FOO="", imported from config files
2010-09-28 11:49:47 +02:00
Lennart Poettering
5008d5815a
tempfiles: add little utility for creating volatile files/dirs in tmpfs hierarchies
2010-09-28 02:34:02 +02:00
Lennart Poettering
5c78d8e242
mount: properly handle bind mounts
2010-09-28 01:03:19 +02:00
Lennart Poettering
caca31b576
service: shortcut sysv provides on ourselves
2010-09-28 00:29:09 +02:00
Lennart Poettering
cb33e40000
service: ignore sysv $null service
2010-09-28 00:28:16 +02:00
Lennart Poettering
b4a16b7b8a
fix spelling of 'unneeded' at various places
2010-09-27 23:27:21 +02:00
Lennart Poettering
9f151f29fd
service: don't create sysv order deps on merged units
2010-09-27 23:24:17 +02:00
Lennart Poettering
6ccb1b4429
load-fragment: reset fragment_path if we couldn't find a unit file for it
2010-09-27 20:31:57 +02:00
Lennart Poettering
2e7485f021
readahead: avoid collisions with the NULL pointer
2010-09-27 20:23:17 +02:00
Lennart Poettering
aed5e44d50
Revert "hashmap: HASHMAP_FOREACH* iterate until ITERATOR_LAST"
...
This reverts commit 66d9b3b595
.
If we check for i == ITERATOR_LAST we exit the loop one entry before the
end. Instead we should return if e is NULL.
2010-09-27 20:13:21 +02:00
Michael Biebl
f6943caa53
Need to use #elif defined(DEBIAN) here...
...
This fixes a c&p error in 7472744bf9
2010-09-27 19:11:21 +02:00
Michael Biebl
7472744bf9
debian: add locale compat support
...
Read LANG from /etc/default/locale.
2010-09-27 18:40:51 +02:00
Lennart Poettering
858209c51f
readahead: properly initialize variable
2010-09-27 03:25:10 +02:00
Fabiano Fidencio
07459bb6b9
sysv: optionally disable of SysV init/rcN.d support at compile time
...
This patch adds a cpp definition HAVE_SYSV_COMPAT that is used to
isolate code dealing with /etc/init.d and /etc/rcN.d for systems where
it does not make sense (one that does not use sysv or one that is fully
systemd native).
The patch tries to be as little intrusive as possible, however in
order to minimize the number of #ifdef'ed regions I've reordered some
code in path-lookup.c:lookup_paths_init() where all code dealing with
sysv is now isolated under running_as == MANAGER_SYSTEM as well.
Moreover, In struct Service, some fields were rearranged to reduce
the number of ifdefs.
Lennart's suggestions were fixed and squashed with the original patch,
that was sent by Gustavo Sverzut Barbieri (barbieri@profusion.mobi ).
2010-09-27 03:25:05 +02:00
Harald Hoyer
66d9b3b595
hashmap: HASHMAP_FOREACH* iterate until ITERATOR_LAST
2010-09-27 02:09:47 +02:00
Lennart Poettering
0ebd74d8d9
job: show failure message only for start jobs
2010-09-27 01:37:22 +02:00
Fabiano Fidencio
334d0069f5
mount: Remove double include of "mount.h"
2010-09-27 01:34:58 +02:00
Lennart Poettering
82526d7218
update fixme
2010-09-27 01:24:35 +02:00
Harald Hoyer
6e66797af4
readahead-replay: use posix_fadvise instead of readahead
2010-09-26 15:53:23 +02:00
Harald Hoyer
efe5e8f7e1
readahead-collect: check for negative return codes of fs_on_ssd()
2010-09-26 15:52:58 +02:00
Lennart Poettering
6624768c9c
readahead: add interface to sd-daemon.[ch] to control readahead
2010-09-26 15:50:14 +02:00
Harald Hoyer
f0cf061eda
readahead-collect: typo, free the correct pointer
2010-09-26 15:24:08 +02:00
Lennart Poettering
8260358d5a
readahead: parse command line arguments
2010-09-25 15:39:38 +02:00
Lennart Poettering
437dca8b2f
readahead: never readahead temporary files since their names tend not to be stable
2010-09-25 14:35:53 +02:00
Lennart Poettering
75a010e0b7
readahead: make candidate for early OOM kill
2010-09-25 14:35:34 +02:00
Lennart Poettering
408b85df83
readahead: exit after a maximum runtime
2010-09-25 14:27:16 +02:00
Lennart Poettering
902a339c93
readahead-replay: delay ready notification until we queued first read
2010-09-25 13:47:31 +02:00
Lennart Poettering
41a598e21a
readahead: disable on low memory machines
2010-09-25 13:32:54 +02:00
Lennart Poettering
4030d7a923
readahead: take file system root on command line
2010-09-24 11:12:10 +02:00
Lennart Poettering
c1480dae17
readahead: normalize logging
2010-09-23 17:44:33 +02:00
Lennart Poettering
6e3eb5ba18
readahead: put limit on files we read ahead
2010-09-23 17:35:16 +02:00
Lennart Poettering
746f890636
readahead: add btrfs defrag support
2010-09-23 17:11:19 +02:00
Lennart Poettering
0511502083
fanotify: use uint64_t instead of __u64
2010-09-23 15:49:08 +02:00
Lennart Poettering
76bf48b7d0
dbus: export number of total failed jobs on D-Bus interface
2010-09-23 15:38:42 +02:00
Lennart Poettering
22be093ffb
readahead: implement minimal readahead logic based on fanotify(), mincore() and readahead()
2010-09-23 15:02:13 +02:00
Gustavo Sverzut Barbieri
fa70128df1
dbus: add Progress property to introspection
2010-09-21 16:55:35 +02:00
Kay Sievers
03aeb5bed0
suse: locale + vconsole compat support
2010-09-21 15:08:04 +02:00
Lennart Poettering
05d6a3b6cf
manager: calculate progress value while booting
2010-09-21 04:25:48 +02:00
Lennart Poettering
b0c918b97f
manager: measure startup times
2010-09-21 04:14:38 +02:00
Lennart Poettering
e409f87570
manager: count how many jobs we executed
2010-09-21 03:51:31 +02:00
Lennart Poettering
653ab83b18
vconsole: make sure we don't merge configuration settings from different sources
2010-09-21 03:16:28 +02:00
Lennart Poettering
ce8a6aa1a0
locale: make sure we don't merge configuration settings from different sources
2010-09-21 01:51:23 +02:00
Lennart Poettering
8780d48d86
locale: unset locale vars that are not set any longer
2010-09-21 01:40:34 +02:00
Lennart Poettering
97e3d13fb4
locale: never use LC_ALL. It's evil.
2010-09-21 01:37:42 +02:00
Tom Gundersen
980900c1d9
service: start Arch daemons
...
Arch does not use proper SysV runlevels. Instead /etc/rc.conf contains
an array of daemons to load in a multi-user runlevel, and some
dependencies between them.
This patch enables this behaviour in SystemD (only when compiled with
Arch support), which allows SystemD to be a drop in replacement on Arch
(modulo some minor bugs).
v2: simplified after suggestion from Lennart
2010-09-21 01:32:21 +02:00
Fabiano Fidencio
5bfcc1c6ef
socket: Support IPv6-less systems with runtime check.
...
This patch introduces socket_ipv6_is_supported() call that checks for
IPv6 availability. Code then check for it before using specific calls.
In order to be less intrusive, this patch avoids IPv6 entries being
parsed at all, this way we don't get such entries in the system and
all other code paths are automatically ignored. However an extra check
is done at socket_address_listen() to make sure of that.
As the number of Netlink messages is not know upfront anymore,
loopback-setup.c was refactored to dynamically calculate the sequence
number and count.
Lennart's suggestions were fixed and squashed with the original patch,
that was sent by Gustavo Sverzut Barbieri (barbieri@profusion.mobi ).
2010-09-21 01:00:38 +02:00
Gustavo Sverzut Barbieri
918f4c69fa
gentoo: locale-setup support
...
Use locale variables from /etc/profile.env as Gentoo's openrc
runscript does (tool that is used by /etc/init.d/* services).
2010-09-21 00:49:13 +02:00
Gustavo Sverzut Barbieri
9841e8e3d3
gentoo: vconsole-setup support.
...
This patch is a bit bigger than expected since Gentoo being
non-standard in some places.
1. it is installing binaries at /usr/bin instead of /bin.
2. it is using CamelCase names for consolefonts.
3. /etc/rc.conf:unicode=(yes|no) just forbids loadkeys and setfont
"-u" options, but do not disable the actual kernel default_utf8
from vt module.
2010-09-21 00:43:16 +02:00
Luis Felipe Strano Moraes
3e21c85da3
ask-password. Initializing socket_fd inside ask_agent.
...
Garbage value could have been used if there was an error creating the
password file.
2010-09-21 00:29:37 +02:00
Michal Schmidt
aa5939a3ba
systemctl: make condrestart equivalent to try-restart
...
"condrestart" should be equivalent to "try-restart", i.e. it should be
translated into "TryRestartUnit". See
http://fedoraproject.org/wiki/Packaging:SysVInitScript#condrestart_and_try-restart
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=635780
2010-09-21 00:24:23 +02:00
Tom Gundersen
f2fcd59ffa
locale: set LANG on Arch
...
This variable is defined in /etc/rc.conf
2010-09-20 23:14:28 +02:00
Tom Gundersen
424313503a
vconsole: set keyboard mapping and font settings on Arch
...
These variables are defined in /etc/rc.conf
2010-09-20 23:14:23 +02:00
Gustavo Sverzut Barbieri
b56e57470c
random-seed: create parents of RANDOM_SEED if they do not exist.
...
it may happen that parent directories of RANDOM_SEED do not exist, in
that case we must create it otherwise save will not work.
2010-09-20 23:12:50 +02:00
Lennart Poettering
a18fb4823b
vconsole: drop vconsole config file var prefix
2010-09-18 01:20:13 +02:00
Lennart Poettering
ae509abccc
vconsole: more completely cover fedora legacy vconsole configuration
2010-09-18 01:19:46 +02:00
Lennart Poettering
efb3237ee6
ask-password: popup notification when we ask for a password
2010-09-17 02:32:48 +02:00
Lennart Poettering
ad6ab0af1e
ask-password: extend help text a little
2010-09-17 02:13:12 +02:00
Lennart Poettering
1b39d4b9d2
ask-password: optionally ask questions on tty
2010-09-17 02:10:08 +02:00
Lennart Poettering
490aed5849
ask-password: add minimal framework to allow services query SSL/harddisk passphrases from the user
2010-09-17 01:26:29 +02:00
Lennart Poettering
1ebdf5b684
vconsole: fall back to fedora specific configuration
2010-09-16 01:58:16 +02:00
Lennart Poettering
e7db37dd19
util: fix handling of quotes in parse_env_file()
2010-09-16 01:57:59 +02:00
Lennart Poettering
72bca11ba2
locale: initialize locale from /etc/locale by default
2010-09-16 01:57:42 +02:00
Lennart Poettering
97c4a07df9
vconsole: add new utility to initialize the virtual console
2010-09-16 00:36:41 +02:00
Lennart Poettering
8e12a6aed3
util: use waitid() instead of waitpid() everywhere to avoid confusion due to SIGSTOP
2010-09-15 14:48:59 +02:00
Lennart Poettering
2e78aa9988
util: introduce waitpid_loop()
2010-09-15 14:37:45 +02:00
Lennart Poettering
b036fc0050
systemctl: use sizeof() instead of strlen() on literal strings
2010-09-15 03:12:04 +02:00
Zbyszek Szmek
9b2fcafba4
systemctl: split job list writing to a seperate function
...
On Tue, Sep 14, 2010 at 10:23:28PM +0200, Lennart Poettering wrote:
> On Tue, 07.09.10 17:02, Zbigniew Jędrzejewski-Szmek (zbyszek@in.waw.pl ) wrote:
>
> Urks, now I commited the wrong one... Can you prep an updated patch against
> current git?
Once more sorry about that.
Fix below.
Zbyszek
2010-09-15 03:05:02 +02:00
Lennart Poettering
5275d3c13d
mount-setup: fix selinux label after mounting
...
rhbz 629268
2010-09-15 01:38:07 +02:00
Zbigniew Jędrzejewski-Szmek
3333022269
systemctl: limit some column widths to widest actually used
...
old
UNIT LOAD ACTIVE SUB JOB
dev-hugepages.automount loaded active running Huge Page
dev-mqueue.automount loaded active waiting POSIX Mes
proc-sys...misc.automount loaded active waiting Arbitrary
sys-kern...ebug.automount loaded active running Debug Fil
new
UNIT LOAD ACTIVE SUB JOB
dev-hugepages.automount loaded active running Huge Pages File System Automount Poi
dev-mqueue.automount loaded active waiting POSIX Message Queue File System Auto
systemd-shutdownd.socket loaded active listening systemd Delayed Shutdown Socket
2010-09-14 22:16:28 +02:00
Zbigniew Jędrzejewski-Szmek
eb68c413aa
systemctl: split job list writing to a seperate function
2010-09-14 22:15:41 +02:00
Zbigniew Jędrzejewski-Szmek
ef639c5f9e
systemctl: use on_tty() helper everywhere
2010-09-14 22:14:52 +02:00
Lennart Poettering
f26ee0b931
util: SIGSTKFLT is unknown on Linux for SPARC
2010-09-14 13:56:08 +02:00
Lennart Poettering
6f0d624ec7
systemctl: use isolate when called as telinit for a runlevel
2010-09-14 02:22:55 +02:00
Lennart Poettering
e43ac8788b
manager: log job mode when running job
2010-09-14 02:16:14 +02:00
Lennart Poettering
ac83842a55
initctl: properly use isolate when activating runlevels
2010-09-14 01:56:14 +02:00
Lennart Poettering
bba34eedc7
target: add implicit target/unit ordering deps only if both sides have been fully loaded
2010-09-14 01:51:30 +02:00
Lennart Poettering
83a95334c9
socket: fix output of TCP congestion options
2010-09-14 01:31:41 +02:00
Lennart Poettering
f21781d57f
service: fix check for non-LSB files
2010-09-14 00:23:15 +02:00
Lennart Poettering
32159d3a94
service: add generic LSB provides handling for facilities
2010-09-13 23:54:21 +02:00
Lennart Poettering
4f7dcad328
service: translate 'httpd' LSB Provides into '$httpd' on Fedora
2010-09-13 23:53:59 +02:00
Rainer Gerhards
e702c2c07d
minor nit: printf attribute was removed by -DSD_EXPORT_SYMBOLS
2010-09-13 20:08:29 +02:00
Tom Gundersen
17dbb83dee
util: add Arch welcome message
...
Arch has no release name, so juts prints 'Welcome to Arch Linux!'.
The color is the same as used by Arch's native rc.sysinit.
2010-09-13 19:19:54 +02:00
Sedat Dilek
5a6225fd2e
util: add Debian welcome message
...
Hi,
after talked with Michael on IRC, here is the patch to see a systemd
Welcome message on Debian systems.
FYI: I had to remove "quiet" from Kernel-command-line to see it.
"Stolen from Gentoo" :-) [1,2]?
Kind Regards,
- Sedat -
[1] http://lists.freedesktop.org/archives/systemd-devel/2010-September/000267.html
[2] http://cgit.freedesktop.org/systemd/commit/?id=0d37b36b2890fdf8149d12460ebb00822e555977
From 76d860ca774cb8724de25c3ed3c455ebe5d548e3 Mon Sep 17 00:00:00 2001
From: Sedat Dilek <sedat.dilek@gmail.com>
Date: Sun, 12 Sep 2010 23:02:22 +0200
Subject: [PATCH] util: add Debian welcome message
Include the "Debian" string as /etc/debian_version contains only the Distribution name like "squeeze".
Use Light Red color for Debian.
Based on a proposal patch of Michael Biebl <biebl@debian.org>
2010-09-13 18:03:00 +02:00
Lennart Poettering
98bc20006d
target: add default unit ordering deps from the unit not the target
2010-09-13 12:06:49 +02:00
Michal Schmidt
54ec68b6f6
manager: report correctly which job was deleted when breaking cycle
2010-09-11 02:00:27 +02:00
Lennart Poettering
ee0dd8021b
service: don't automatically add D-Bus service name as an alias to all dbus service, rely on manual symlinks to allow disabling of dbus services
2010-09-11 01:31:58 +02:00
Lennart Poettering
b00bad3641
logger: support SOCK_STREAM /dev/log sockets as necessary for syslog-ng
2010-09-10 17:11:48 +02:00
Gustavo Sverzut Barbieri
0d37b36b28
util: add Gentoo welcome message.
2010-09-09 00:17:34 +02:00
Lennart Poettering
c31e14954b
log: support logging into SOCK_STREAM /dev/log sockets for comaptibility with syslog-ng
2010-09-08 03:07:44 +02:00
Lennart Poettering
da5fcb1060
sd-daemon: optionally, avoid hiding the ELF symbols
2010-09-08 01:55:35 +02:00
Lennart Poettering
ed370f5daa
main: when we encounter 'emergency' on the kernel cmdline start the emergency shell
2010-09-08 01:55:35 +02:00
Michael Biebl
96d4ce0110
man: Fix small typo: s/seperate/separate/
2010-09-06 03:13:14 +02:00
Lennart Poettering
7d568925bd
systemctl: make --version a little bit more verbose
2010-09-06 03:11:24 +02:00
Lennart Poettering
35df8f27fa
systemctl: implement --version
...
https://bugs.freedesktop.org/show_bug.cgi?id=29912
2010-09-06 02:42:49 +02:00
Lennart Poettering
2a8cd298f4
dbus: downgrade activation failure messages
2010-09-06 02:42:42 +02:00
Lennart Poettering
7573916f63
automount: make sure we don't crash if there's an automount unit without mount unit
2010-09-06 01:05:38 +02:00
Kay Sievers
dacdf15367
work around busted capability.h
...
It contains things like:
#ifndef _LINUX_TYPES_H
#define _LINUX_TYPES_H
#include <stdint.h>
typedef uint32_t __u32;
typedef __u32 __le32;
...
which result in:
/usr/include/asm-generic/int-ll64.h:30:42: error: conflicting types for ‘__u64’
/usr/include/sys/capability.h:39:18: note: previous declaration of ‘__u64’ was here
make[1]: *** [src/libsystemd_core_la-unit.lo] Error 1
make[1]: Leaving directory `/home/kay/work/src/systemd'
make: *** [all] Error 2
So, include linux/types.h to get around that.
2010-09-03 12:26:30 +02:00
Lennart Poettering
f73d93a4d9
service: calculate sysv startup priority only in start runlevels
2010-09-03 04:08:16 +02:00
Lennart Poettering
c68364b790
service: make sure we properly figure out whether a sysv service is enabled before creating $foo wants links
2010-09-03 03:56:05 +02:00
Lennart Poettering
5ed9f5d65e
unit: don't retroactively start units if we failed to shutdown a unit
2010-09-03 01:45:53 +02:00
Lennart Poettering
53c6a358a8
dbus: don't send cgroup agent messages directly to system bus to avoid dbus activation loop
2010-09-03 01:45:53 +02:00
Lennart Poettering
b401e1fb9d
target: implicitly shutdown targets on shutdown, so that they are pulled into the final transaction and may be used for synchronization
2010-09-03 01:42:57 +02:00
Lennart Poettering
7f97f0fee4
service: properly handle if the main process is down and we wait for the cgroup to die, too
2010-09-03 01:42:57 +02:00
Lennart Poettering
5d452f9cec
dbus: make sure to flush bus connection before disconnecting, so that no messages are lost
2010-09-02 23:26:04 +02:00
Lennart Poettering
18ffdfda48
unit: unify some code
2010-09-01 03:35:04 +02:00
Lennart Poettering
8f6df3fa98
dbus: don't accept activation requests anymore if we are going down anyway
2010-09-01 03:30:59 +02:00
Lennart Poettering
aabd9b11ba
systemctl: make sure daemon-reexec and friends return a correct error code
2010-09-01 02:11:52 +02:00
Lennart Poettering
706900b704
systemctl: fix return value of systemctl start and friends
2010-09-01 02:03:41 +02:00
Lennart Poettering
28708d8aa0
service: recheck PID status when a cgroup runs empty
2010-09-01 01:33:12 +02:00
Lennart Poettering
f5a501146a
service: wait for process exit only if we actually killed somebody
2010-09-01 00:48:05 +02:00
Lennart Poettering
fe71c02cf5
manager: reword some error messages regarding "logs"
...
https://bugzilla.redhat.com/show_bug.cgi?id=627785
2010-09-01 00:32:32 +02:00
Lennart Poettering
eed1d0e33d
util: leave locked terminal attributes untouched so that we don't interfere with plymouth
...
https://bugzilla.redhat.com/show_bug.cgi?id=628913
2010-09-01 00:10:41 +02:00
Michal Schmidt
7b2603e646
service: properly pass dbus error structure
2010-08-31 23:52:51 +02:00
Lennart Poettering
60dc72b563
manager: make sure we free the dbus error only if we actually use one
2010-08-31 23:51:12 +02:00
Lennart Poettering
ca949c9dcf
service: rework killing logic so that we always kill the main process, even if it left our service cgroup
...
Related to:
http://bugzilla.redhat.com/show_bug.cgi?id=626477
2010-08-31 23:24:47 +02:00
Lennart Poettering
22f4096ca9
systemctl: rework exit codes for all utility programs to follow LSB or other standards
2010-08-31 21:05:54 +02:00
Lennart Poettering
f73e33d9ec
systemctl: avoid wrapping of headers/footers
...
This change makes sure that our output never exceeds 80ch on 80ch
terminals.
https://bugzilla.redhat.com/show_bug.cgi?id=626443
2010-08-31 16:56:08 +02:00
Lennart Poettering
9ed95f4336
util: look at STDOUT, not STDIN, when determining tty columns
...
https://bugzilla.redhat.com/show_bug.cgi?id=626891
2010-08-31 16:53:58 +02:00
Lennart Poettering
dd6c17b159
exec: replace OOMAdjust= by OOMScoreAdjust= to follow new kernel interface
...
This replaces OOMAdjust= by OOMScoreAdjust= in the config files,
breaking compatibility with older unit files. However, this keeps compat
with older kernels which lack the new OOM rework.
2010-08-31 01:33:43 +02:00
Matthew Miller
fdf20a3160
manager: add missing second part of s/maintenance/failed/
2010-08-31 00:23:34 +02:00
Matthew Miller
74ac3cbd50
manager: rename 'maintenance' state to 'failed' to avoid user confusion
...
https://bugzilla.redhat.com/show_bug.cgi?id=614619
2010-08-31 00:17:56 +02:00
Lennart Poettering
c88e7f4e57
manager: don't try to minimize transaction when using isolate
...
We should not avoid stopping services when using isolate, since that
kinda defeats the point of it.
http://bugzilla.redhat.com/show_bug.cgi?id=627014
2010-08-30 23:51:52 +02:00
Lennart Poettering
da726a4d4d
exec: make sure O_NONBLOCK is off for all sockets passed as STDIN/STDOUT/STDERR
2010-08-30 23:31:27 +02:00
Lennart Poettering
2528a7a62c
unit: introduce AllowIsolate= switch
2010-08-30 23:04:36 +02:00
Lennart Poettering
b2bb3dbed9
console: rework automatic getty on kernel console logic again
...
It is essential that the gettys are proper dependencies from
getty.target so that they aren't killed and immediately restarted on
runlevel changes. Hence rework the logic to implicitly add console
gettys to getty.target as dependencies.
This also adds an automatic hvc console for virtualizers.
https://bugzilla.redhat.com/show_bug.cgi?id=501720
2010-08-30 23:03:58 +02:00
Lennart Poettering
3177a49ce9
service: properly handle Fedora's broken MTA meta-service name
2010-08-26 04:10:40 +02:00
Lennart Poettering
43a3754933
service: reword warnings a little
2010-08-26 04:10:17 +02:00
Lennart Poettering
42a097a253
service: if we cannot add an alias to a sysv service, ignore this and go on
2010-08-26 04:08:28 +02:00
Lennart Poettering
eb9e50de3e
device: allow aliases on devices
2010-08-26 04:08:01 +02:00
Matthew Miller
cc8a7a6129
systemctl: very very trivial typo patch :)
2010-08-26 02:04:25 +02:00
Lennart Poettering
81bf310edc
mount: imply noauto for mount points configured with native mount files
2010-08-25 21:24:21 +02:00
Lennart Poettering
173a8d04fc
mount: rework automatic mounting to follow the 'nofail' option in fstab
2010-08-25 20:37:04 +02:00
Lennart Poettering
4cf5d67507
dbus: simplify some dbus error messages a bit
2010-08-25 19:50:06 +02:00
Lennart Poettering
50f74deea3
sd-daemon: drop SCM_CREDENTIALS passing since it is redundant, the kernel fills this in anyway
2010-08-25 19:50:05 +02:00
Lennart Poettering
77d5f105bf
cgroup: mount cgroup file systems to /sys/fs/cgroup instead of /cgroup
...
This requires the /sys/fs/cgroup to exist. Current git kernels have
this, released kernels need a backport of a single patch.
2010-08-25 04:58:24 +02:00
Lennart Poettering
ee2083d5ca
utmp: document that the order of preference for runlevel numbers might be something to change in other distributions
2010-08-25 03:31:59 +02:00
Lennart Poettering
3006982d93
utmp: write out runlevels 5 and 3 preferrably if multiples make sense, and S instead of 1
2010-08-25 03:14:53 +02:00
Lennart Poettering
f3d41013e2
systemctl: rename a few status lines
2010-08-25 03:14:04 +02:00
Lennart Poettering
584be568b9
systemctl: show timestamps for state changes
2010-08-25 03:13:44 +02:00
Lennart Poettering
f1e36d677a
systemctl: add --sysv-compat
2010-08-25 03:13:09 +02:00
Lennart Poettering
44bcea6654
log: SCM_CREDENTIALS will be added by the kernel anyway, so there's no need to write them manually
2010-08-25 03:12:19 +02:00
Lennart Poettering
d3689161a2
mount: add global configuration options for handling of auto mounts
2010-08-25 03:11:26 +02:00
Lennart Poettering
93a45c562a
serial: use seperate getty template for serial ttys
2010-08-25 03:09:57 +02:00
Lennart Poettering
addab137cd
syslog: add minimal syslog/kmsg bridge syslogd
2010-08-21 03:57:47 +02:00
Lennart Poettering
8e4d105ddf
mount: don't create depdency for device node of root fs, since it is always there
2010-08-21 01:51:55 +02:00
Lennart Poettering
6309077509
log: pass SCM_CREDENTIALS when logging to syslog
2010-08-21 01:51:16 +02:00
Lennart Poettering
5845b46ba3
device: handle properly if two devices want to have the same name
...
https://bugzilla.redhat.com/show_bug.cgi?id=624539
2010-08-20 04:04:08 +02:00
Lennart Poettering
1afbdcb06b
exit-status: add missing files src/exit-status.h src/exit-status.c
2010-08-20 03:26:37 +02:00
Lennart Poettering
449ddb2d23
remount: add tool that applies /etc/fstab mount options to all api mounts
2010-08-20 03:26:15 +02:00
Lennart Poettering
11ce342724
mount: properly handle LABEL="" in fstab
2010-08-20 02:46:15 +02:00
Lennart Poettering
049f86421b
selinux: properly query policy for FIFO files
2010-08-20 02:31:54 +02:00
Lennart Poettering
c4e2ceae94
dbus: follow standardized fdo PropertiesChanged signal spec
2010-08-20 02:31:54 +02:00
Lennart Poettering
d06dacd002
service/systemctl: don't consider LSB exit codes 5 and 6 as failure, and decode exit codes in systemctl
2010-08-20 02:31:54 +02:00
Lennart Poettering
8a2b3c097b
service: make sure sysv services marked as interactive in the LSB header get output on the TTY in all cases
2010-08-20 02:31:54 +02:00
Lennart Poettering
be11c12e49
kmod: downgrade modprobe log message for since ipv6 might be compiled as module for blacklisting
2010-08-19 03:30:36 +02:00
Lennart Poettering
28695e0fac
hostname: if no hostname is configured use localhost
2010-08-19 03:29:43 +02:00
Lennart Poettering
e59077036b
hostname: on all distros make the name configured in /etc/hostname take precedence over distro-specific configuration
...
In order to unify configuration across distributions we pick the
simple-most option by default (Debian's /etc/hostname) and then fall
back to distro-specific hacks if that doesn't exist.
2010-08-19 03:02:22 +02:00
Lennart Poettering
b2423f1f43
modules-load: add systemd-modules-load tool that can load a configured list of modules in /etc/modules.d/ on boot, replacing distro-dependent shell hacks for this
2010-08-19 02:03:17 +02:00
Matthias Clasen
5948ee7cef
dbus: small typo in introspection data
...
Hey,
here is a patch to fix a small typo in the systemd dbus introspection data.
I found this while trying to explore the systemd dbus API via bash
completion with gdbus. You should try this, it is really fun, and,
evidently, helps to find some bugs...
Matthias
2010-08-18 23:10:43 +02:00
Lennart Poettering
26192dfc21
random-seed: honour kernel pool size when saving/restoring seed
2010-08-18 19:38:45 +02:00
Lennart Poettering
2dc11f9948
udev: dm has been fixed in the meantime
2010-08-18 01:04:51 +02:00
Lennart Poettering
4252a5b66d
udev: fix syntax
2010-08-18 01:01:22 +02:00
Tero Roponen
a9c501a590
main: restore an accidentally removed 'else'
...
I just noticed this when reading the latest commits.
2010-08-17 23:45:57 +02:00
Lennart Poettering
9028d0ecba
dbus: downgrade disconnection message
2010-08-17 22:15:02 +02:00
Lennart Poettering
1c27d3f3fd
main: properly fallback to rescue.target if default.target is hosed
2010-08-17 20:42:53 +02:00
Lennart Poettering
02ee865a46
service: rename ValidNoProcess= to RemainAfterExit=
2010-08-17 19:37:36 +02:00
Lennart Poettering
4694836523
service: prefix descriptions when they come from legacy sources
2010-08-17 18:59:05 +02:00
Lennart Poettering
85ad5b18ad
systemctl: break output properly for 80ch terminals
2010-08-17 18:53:47 +02:00
Lennart Poettering
1cba2c90e8
modprobe: kill support for nomodules
...
this should happen in the kernel itself, not be controlled from
userspace, if at all. So let's kill this here.
2010-08-17 18:13:47 +02:00
Lennart Poettering
f276a41821
shutdown: drop -f/-F switches again, simply because we don't want to condone non-ro root dirs
...
Instead of using /forcefsck and /fastboot people should just kernel
command line options to achieve the same.
2010-08-17 18:13:47 +02:00
Lennart Poettering
888c6216ca
nss: don't disable nscd anymore, since it doesn't make sense to socket-activate nscd anyway
2010-08-17 18:13:46 +02:00
Lennart Poettering
03467c88fb
emacs: disable tabs in .h files, too
2010-08-17 03:50:18 +02:00
Lennart Poettering
9499b235b9
log: print at to one target at max
2010-08-17 03:31:45 +02:00
Lennart Poettering
8630d37023
device: be more verbose of udev confuses us
2010-08-17 03:31:31 +02:00
Lennart Poettering
c0b346969d
load-fragment: make parser more forgiving
2010-08-17 03:30:53 +02:00
Lennart Poettering
5192bd1945
auto-getty: rework auto console getty logic to work in conjunction with single user mode
2010-08-17 03:29:46 +02:00
Lennart Poettering
16061c20dd
shutdownd: kill /etc/nologin file before we go down
2010-08-16 23:52:19 +02:00
Lennart Poettering
08e4b1c5c8
shutdown: various fixes for handling of delayed shutdowns
2010-08-16 22:40:11 +02:00
Lennart Poettering
2396fb04f7
log: properly open log target in the various utilities
2010-08-16 22:39:02 +02:00
Lennart Poettering
618e02c7b7
util: properly detect ttyname_r() failing
2010-08-16 21:25:09 +02:00
Lennart Poettering
116205924e
util: use format_timestamp() instead of ctime() wherever possible
2010-08-16 21:24:50 +02:00
Lennart Poettering
a2a3a5b93c
systemctl: sort case-insensitively
2010-08-16 20:07:01 +02:00
Lennart Poettering
9be9828c00
systemctl: warn in intervals before going down when delayed shutdown is used
2010-08-16 19:26:27 +02:00
Lennart Poettering
6b5ad000ab
shutdown: if now time argument is passed, imply +1 not +0
...
That should friendlier for folks who just run "shutdown" to figure out
the command line arguments...
https://bugzilla.redhat.com/show_bug.cgi?id=624149
2010-08-16 17:12:40 +02:00
Lennart Poettering
f614480831
systemctl: add support for delayed shutdown, similar to sysv in style
2010-08-16 15:37:52 +02:00
Lennart Poettering
6e200d55ae
random-seed: add missing random-seed.c file
2010-08-14 21:23:26 +02:00
Lennart Poettering
d6c9574fb5
emacs: make sure nobody accidently adds tabs to our sources
2010-08-14 19:59:25 +02:00
Lennart Poettering
d90e1a301d
systemctl: skip writing of utmp if we booted using systemd, under the assumption that systemd-update-utmp is used
2010-08-14 19:14:52 +02:00
Lennart Poettering
36c32ba297
systemctl: sort 'list-units' output
2010-08-14 03:40:10 +02:00
Lennart Poettering
2cf19a7a8f
job: don't accidently access a job that doesn't exist anymore
2010-08-13 19:29:21 +02:00
Lennart Poettering
34e9ba669e
service: rename Type=finish to Type=oneshot and allow multiple ExecStart= lines for oneshot services
...
In contrast to the other service types oneshot services are usually not
long lasting and there's not necessarily a single clean main process for
them. This change allows multiple ExecStart= lines for this type of
services so that the admin/developer doesn't have to arbitrarily pick on
of various sequential commands as the "main one".
2010-08-13 18:23:01 +02:00
Lennart Poettering
fbc43921be
systemctl: properly detect whether taling to systemd via D-Bus worked before falling back to upstart/initctl
2010-08-13 04:53:33 +02:00
Lennart Poettering
75676b7287
man: document new 'systemctl status PID' syntax
2010-08-13 02:15:10 +02:00
Lennart Poettering
4455bcd0e6
cgroup: try harder to find a unit a PID belongs to by traversing through parent cgroups
2010-08-13 02:08:34 +02:00
Lennart Poettering
598b557bf0
systemctl: when calling 'status' accept a PID
2010-08-13 02:07:22 +02:00
Lennart Poettering
c31b4423a9
systemctl: show sysv path if it is set if the fragment path isn't in systemctl status
2010-08-13 01:29:30 +02:00
Lennart Poettering
3059b1c1f4
systemctl: at full stop after last message before shutting down
2010-08-12 17:15:10 +02:00
Lennart Poettering
bbd3a7ba5c
audit: suppress repeated audit events when deserializing
2010-08-12 03:51:58 +02:00
Lennart Poettering
8821a00fd5
unit: don't show ENOENT configuration file warnings for units that are not essential
2010-08-12 01:05:35 +02:00
Lennart Poettering
302e27c89e
main: log build time features on startup
2010-08-12 01:03:24 +02:00
Lennart Poettering
91805b3bcb
dbus: downgrade a few log messages
2010-08-12 01:02:19 +02:00
Lennart Poettering
674cdd1933
dbus: fix capability serialization
2010-08-12 01:01:55 +02:00
Lennart Poettering
449648c430
conf-parser: don't crash if an assignment is read before a section header
2010-08-12 01:01:30 +02:00
Lennart Poettering
afea26ad7d
main: disable nscd properly, if possible
2010-08-11 23:31:07 +02:00
Lennart Poettering
444a79d340
dbus: properly pass capabilities
2010-08-11 23:19:28 +02:00
Lennart Poettering
1e59887dc9
gc: remove a lot of unused code
2010-08-11 23:19:04 +02:00
Lennart Poettering
e51bc1a23e
selinux: split off selinux calls into seperate file label.c
2010-08-11 22:58:34 +02:00
Lennart Poettering
7fab9d01b5
pahole: rearrange structs to make them smaller
2010-08-11 22:37:10 +02:00
Lennart Poettering
e364ad0628
clang: fix numerous little issues found with clang-analyzer
2010-08-11 22:04:25 +02:00
Lennart Poettering
10f8e83cbb
manager: serialize/deserialize startup time, too
2010-08-11 20:19:27 +02:00
Lennart Poettering
19b68260aa
audit: remove double header inclusion
2010-08-11 17:55:54 +02:00
Lennart Poettering
e543deaeb5
audit: initialize audit only if it is enabled
2010-08-11 17:52:01 +02:00
Lennart Poettering
eaf9102011
target: don't synthesize a runlevel property for targets anymore since we don't need it anymore and it is crutfy
2010-08-11 17:46:27 +02:00
Lennart Poettering
830f6caa77
audit: smaller fixes to audit hookup
2010-08-11 15:19:50 +02:00
Lennart Poettering
2ee68f7211
systemctl: beef up highlighting of service states a little
2010-08-11 15:19:31 +02:00
Lennart Poettering
cd6d0a456b
utmp: enable systemd-update-utmp by default
2010-08-11 04:38:55 +02:00
Lennart Poettering
41b02ec77e
unit: make sure a job for a service of type 'finish' succeeds if the process terminates cleanly
2010-08-11 04:03:13 +02:00
Lennart Poettering
6c073082e7
socket: disable GC for pre-allocated per-connection service until it is used
2010-08-11 02:07:59 +02:00
Lennart Poettering
4927fcae48
audit,utmp: implement audit logic and rip utmp stuff out of the main daemon and into a helper binary
2010-08-11 01:44:38 +02:00
Lennart Poettering
b95cf3629e
util: when replacing env vars replace unset envvars by nothing
...
This makes it easier to support /etc/sysconfig/xxxx with command line
env vars in style of $OPTIONS which might or might not be set.
2010-08-11 01:44:38 +02:00
Lennart Poettering
3454f9e519
conf: add commented default SysVConsole= value
2010-08-11 01:44:37 +02:00
Lennart Poettering
b5e9dba8d6
unit: rename OnlyByDependency= to RefuseManualStart= and introduce RefuseManualStop=
...
Some unit shall never be start on user request (e.g. shutdown.target)
others never be stopped on user request (e.g. auditd.servce), hence
offer options for both.
2010-08-11 01:44:37 +02:00
Lennart Poettering
47342320a0
main: fix auto restarting of units after a configuration reload
2010-08-09 23:53:49 +02:00
Lennart Poettering
76143638fd
swap: properly enter maintenance mode on failure
2010-08-09 22:44:52 +02:00
Lennart Poettering
69dd2852bb
manager: when two pending jobs conflict, keep the one that "conflicts", remove the one that is "conflicted"
...
This gives the writer of units control which unit is kept and which is
stopped when two units conflict.
2010-08-09 22:32:30 +02:00
Lennart Poettering
6e98720f14
service: hide output of sysv scripts if quiet is passed on the kernel cmdline
2010-08-09 18:00:24 +02:00
Lennart Poettering
5de6b30219
service: properly remember if a sysv is actually enabled
...
Previously we checked the SysV priority value to figure out if a SysV
unit was enabled or not, since th value was mostly read from the S
startup links. Since we read this value from the LSB headers as a
fallback we hence ended up considering a lot more services enabled than
were actually enabled.
This patch adds an explicit boolean which encodes whether a sysv service
is enabled or not via S links.
https://bugzilla.redhat.com/show_bug.cgi?id=615293
2010-08-09 17:12:25 +02:00
Lennart Poettering
2cf3143ac3
service: show restart value in dump
2010-08-09 17:07:05 +02:00
Lennart Poettering
04ade7d215
dbus: don't call bus_path_escape() with NULL unit name
...
Fixes an assertion triggerable via D-Bus.
https://bugzilla.redhat.com/show_bug.cgi?id=622008
2010-08-09 17:07:05 +02:00
Lennart Poettering
6d4fc029d9
systemctl: show exit code only if it is actually set
2010-08-09 17:06:18 +02:00
Michal Schmidt
4a4d6b4b31
systemctl: fix parsing of DBus reply in 'dot'
...
"systemctl dot" has been broken since the addition of the "Following="
property.
2010-08-07 18:08:03 +02:00
Lennart Poettering
4502d22cb8
util: when formatting timestamps return '0' for 0 timestamps instead of empty string
2010-08-06 21:34:11 +02:00
Lennart Poettering
c593cfe164
sd-daemon: fix compilation on old systems lacking SOCK_CLOEXEC
2010-08-06 21:34:11 +02:00
Lennart Poettering
ee6cb28869
device: properly handle devices that are referenced before they show up
2010-08-06 04:17:51 +02:00
Lennart Poettering
3c661fadd5
cgroup: if the system bus cannot be found, send cgroup empty msg directly to init proces
2010-08-06 03:21:50 +02:00
Lennart Poettering
2e81c8a557
manager: downgrade a few log msgs regarding conflicting but fixable jobs
2010-08-06 02:58:46 +02:00
Lennart Poettering
75d287d3ae
automount: order automount units after fsck, too
2010-08-06 02:23:45 +02:00
Lennart Poettering
922cc00119
units: split fsck.target from sysinit.target for suse compat
2010-08-06 01:30:20 +02:00
Lennart Poettering
0ff4cdd967
main: automatically spawn a getty on the kernel configured serial console
2010-08-06 00:42:24 +02:00
Lennart Poettering
48a21c9b37
manager: fix conflicting job check
2010-08-05 20:49:35 +02:00
Lennart Poettering
674a6e4d0c
manager: when breaking ordering cycle show full cycle loop
2010-08-05 20:39:45 +02:00
Lennart Poettering
d4054675b1
service: read special startup dirs only on the respective distros
2010-08-05 20:28:51 +02:00
Lennart Poettering
95978cf8a6
selinux: minor error handling fix
2010-08-05 19:50:03 +02:00
Lennart Poettering
eeaafddcb5
service: always sort services from suse B runlevel before services from normal runlevels
2010-08-05 19:50:03 +02:00
Michal Schmidt
a042efad57
reboot: handle -p switch properly
...
https://bugzilla.redhat.com/show_bug.cgi?id=618678
2010-08-05 19:50:03 +02:00
Lennart Poettering
6319292f15
selinux: fix labels only when configured for it
2010-08-05 19:50:02 +02:00
Lennart Poettering
5b1fe56a8b
selinux: rework selinux tests a little
2010-08-04 01:07:38 +02:00
Lennart Poettering
f7f4cccb2a
selinux: fix if vs. ifdef mixup
2010-08-04 00:40:19 +02:00
Daniel J Walsh
56cf987fe7
Systemd is causing mislabeled devices to be created and then attempting to read them.
...
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 07/28/2010 05:57 AM, Kay Sievers wrote:
> On Wed, Jul 28, 2010 at 11:43, Lennart Poettering
> <lennart@poettering.net> wrote:
>> On Mon, 26.07.10 16:42, Daniel J Walsh (dwalsh@redhat.com ) wrote:
>>> tcontext=system_u:object_r:device_t:s0 tclass=chr_file
>>> type=1400 audit(1280174589.476:7): avc: denied { read } for pid=1
>>> comm="systemd" name="autofs" dev=devtmpfs ino=9482
>>> scontext=system_u:system_r:init_t:s0
>>> tcontext=system_u:object_r:device_t:s0 tclass=chr_file
>>> type=1400 audit(1280174589.476:8): avc: denied { read } for pid=1
>>> comm="systemd" name="autofs" dev=devtmpfs ino=9482
>>> scontext=system_u:system_r:init_t:s0
>>> tcontext=system_u:object_r:device_t:s0 tclass=chr_file
>>>
>>> Lennart, we talked about this earlier. I think this is caused by the
>>> modprobe calls to create /dev/autofs. Since udev is not created at the
>>> point that init loads the kernel modules, the devices get created with
>>> the wrong label. Once udev starts the labels get fixed.
>>>
>>> I can allow init_t to read device_t chr_files.
>>
>> Hmm, I think a cleaner fix would be to make systemd relabel this device
>> properly before accessing it? Given that this is only one device this
>> should not be a problem for us to maintain, I think? How would the
>> fixing of the label work? Would we have to spawn restorecon for this, or
>> can we actually do this in C without too much work?
>
> I guess we can just do what udev is doing, and call setfilecon(), with
> a context of an earlier matchpathcon().
>
> Kay
> _______________________________________________
> systemd-devel mailing list
> systemd-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
Here is the updated patch with a fix for the labeling of /dev/autofs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAkxQMyoACgkQrlYvE4MpobNviACfWgxsjW2xzz1qznFex8RVAQHf
gIEAmwRmRcLvGqYtwQaZ3WKIg8wmrwNk
=pC2e
2010-08-03 23:45:22 +02:00
Tomasz Torcz
cebf8b2092
socket: Allow selection of TCP Congestion Avoidance algorithm to socket
...
Hi,
attached path extends socket configurables with another
knob - TCP Congestion Avoidance selection. Linux implements
handful of those, useful in various situations. For example,
TCP Low Priority may be used by FTP service to gracefully
yield bandwidth for more important TCP/IP streams.
Until recently TCP_CONGESTION was Linux-specific, recently
FreeBSD 8 and OpenSolaris gained compatible support.
2010-08-03 23:23:47 +02:00
Lennart Poettering
d5ca5f1185
telinit: forward to upstart, if not booted with systemd
2010-07-24 02:33:38 +02:00
Lennart Poettering
ec7f7f2006
systemctl: don't use the systemd bus to talk to upstart
2010-07-24 02:23:40 +02:00
Lennart Poettering
385771fcf0
systemctl: don't hit an assert when we are run from a non-systemd boot
2010-07-24 01:56:13 +02:00
Lennart Poettering
e054f8333d
main: disable NSS disabling logic for now, since this is incompatible with rpm
2010-07-24 01:29:21 +02:00
Lennart Poettering
ee5762e378
systemctl: fold systemd-install into systemctl
2010-07-24 00:53:33 +02:00
Lennart Poettering
9d8a57fff1
systemctl: support force-reload and condrestart as aliases for reload-or-try-restart
2010-07-23 05:24:45 +02:00
Lennart Poettering
85e5760d4f
install: default to minimal realization mode
2010-07-23 05:24:24 +02:00
Lennart Poettering
ea4a240dc2
systemctl: accept -p more than once
2010-07-23 05:24:05 +02:00
Daniel J Walsh
7a58bfa4ae
socket: SELinux support for socket creation.
...
It seems to work on my machine.
/proc/1/fd/20 system_u:system_r:system_dbusd_t:s0
/proc/1/fd/21 system_u:system_r:avahi_t:s0
And the AVC's seem to have dissapeared when a confined app trys to
connect to dbus or avahi.
If you run with this patch and selinux-policy-3.8.8-3.fc14.noarch
You should be able to boot in enforcing mode.
2010-07-23 05:12:13 +02:00
Robert "arachnist" Gerus
28322e1eb6
sshd, tmux and others are broken when /dev/pts is mounted with "-o nodev"
2010-07-23 05:12:13 +02:00
Lennart Poettering
d3d91d10c9
build-sys: fix compatibility with vala 0.9
2010-07-22 02:21:42 +02:00
Lennart Poettering
3a2776bc86
service: save/restore status text string
2010-07-21 05:16:45 +02:00
Lennart Poettering
cc42e0817f
job: make sure restart jobs are readded to the run queue after conversion to start jobs
2010-07-21 05:16:31 +02:00
Lennart Poettering
a7f241db3f
unit: deduce following unit value dynamically instead of statically, to avoid dangling pointers
2010-07-21 05:00:29 +02:00
Lennart Poettering
672c48cc06
pam: remove only sessions we ourselves created in the first place
2010-07-21 04:32:44 +02:00
Lennart Poettering
294d81f124
load: make sure that unit files in /etc/ always take precedence, even over link targets, to make them easily overrdiable
2010-07-21 03:28:10 +02:00
Lennart Poettering
8f05424d50
unit: allow symlinking unit files to /dev/null
2010-07-21 03:13:15 +02:00
Lennart Poettering
c24eb49e6a
exec: extend variable substitution to support splitting variable values into seperate arguments
2010-07-21 02:57:35 +02:00
Lennart Poettering
9d25f5ed7b
sysv: do not add sysv services that are not enabled in /etc/rcN.d/ to network.target or other LSB-style Provides: targets
2010-07-20 22:30:45 +02:00
Lennart Poettering
84b00965b7
hostname: properly deal with unset hostname in fedora configuration
2010-07-20 21:34:25 +02:00
Lennart Poettering
2cc59dbfe0
systemctl: always disable color when output goes into a file
2010-07-20 21:04:32 +02:00
Lennart Poettering
d8d5ab981a
manager: write serialization to /dev/.systemd/ instead of /dev/shm
2010-07-20 20:54:33 +02:00
Lennart Poettering
de0200fca5
socket: fix access mode verification of FIFOs
2010-07-20 20:40:49 +02:00
Lennart Poettering
8fe914ec81
device: do not merge devices
...
Don't try to merge devices that have been created via dependencies when
they appear in the system and can be recognized as the same. Instead,
simply continue to maintain them independently of each other, however
with the same state cycle. Why? Because otherwise we'd have a hard time
to seperate the dependencies after the devices are unplugged again and
we hence cannot be sure anymore that next time the device is plugged in
it will carry the same names.
Example: if one depndency refers to dev-sda.device and another one to
dev-by-id-xxxyyy.device we only learn at time of plug in of the device
that it is actually the same device that was ment. In the moment the
device is unplugged again we won't know anymore their relation to each
other and the next time the harddisk is plugged it might even appear as
dev-by-id-xxxyyy.device and dev-sdb.service. To ensure the dependencies
continue to have the meaning they were intended to have let's hence keep
the .device objects seperate all the time, even when they are plugged
in.
This patch also introduces a new Following= property which points from
the various .device units of a specific device to the main .device unit
for it. This can be used by the client side to figure out the relation
of the .device units to each other and even filter units from display.
2010-07-20 20:33:24 +02:00
Lennart Poettering
5632e3743d
systemctl: introduce reset-maintenance command
2010-07-19 04:08:07 +02:00
Lennart Poettering
246756ca92
install: optionally remove all symlinks from configuration tree recursively
2010-07-18 01:33:05 +02:00
Lennart Poettering
92abbefbef
execute: bump up log level of executed processes that failed
2010-07-17 04:17:30 +02:00
Lennart Poettering
faf919f1eb
job: timeout every job independently of the unit
2010-07-17 04:09:28 +02:00