1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-08 11:27:32 +03:00
Commit Graph

722 Commits

Author SHA1 Message Date
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