summaryrefslogtreecommitdiffstats
path: root/units/systemd-journald.service.in (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-12-07mount: when the kernel reports a mount to be established reset all kinds of ↵Lennart Poettering1-1/+3
load failures It doesn't matter what kind of precise failure we had earlier with loading the unit, let's report that it loaded successfully now, after all the kernel is an OK source for that, like any other.
2018-12-07mount: regenerate all deps whenever a mount's parameters changesLennart Poettering1-24/+10
Whenever we notice a change on an existing /proc/self/mountinfo line, let's update the deps generated from it. For that, let's flush out the old deps generated this way, and add in the new ones. This takes benefit of the fact that today (unlike a comment this patch removes says) we can remove deps in a somewhat reasonable way.
2018-12-07mount: when allocating a Mount object based on /proc/self/mountinfo mark it soLennart Poettering1-0/+7
Let's set 'from_proc_self_mountinfo' right away, since we know its from there. This is important so that when the load queue is dispatched (and thus mount_load() called) this fact is already known.
2018-12-07mount: let mount_add_extras() take care of remote-fs.target depsLennart Poettering1-16/+1
In a previous commit we added logic that mount_add_extras() (or more precisely mount_add_default_dependencies()) adds in dependencies on remote-fs.target and local-fs.target, hence we can drop this from mount_setup_new_unit() and let the usual load queue dispatching take care of this.
2018-12-07mount: use free_and_strdup() over plain strdup()Lennart Poettering1-6/+6
Let's initialize two fields with free_and_strdup() rather than directly with strdup(). The fields should not be initialized so far, but it's still nicer to be prepared for futzre code changes and always free what's stored before replacing it.
2018-12-07mount: generate error message matching the error locationLennart Poettering1-4/+2
2018-12-07mount: move allocation of Unit object into mount_setup_new_unit()Lennart Poettering1-16/+18
This should encapsulate things in a nicer way.
2018-12-07mount: add a common helper for filling in info from /proc/self/mountinfoLennart Poettering1-19/+41
2018-12-07mount: don't propagate errors from mount_setup_unit() further upLennart Poettering1-6/+3
If we can't process a specific line in /proc/self/mountinfo we should log about it (which we do), but this should not affect other lines, nor further processing of mount units. Let's keep these failures local. Fixes: #10874
2018-12-07mount: simplify de-serialization of control PID a bitLennart Poettering1-4/+2
2018-12-07mount: serialize umount retry counter across reloads/reexecLennart Poettering1-1/+9
2018-12-07mount: make sure mount_add_extras() is always invoked when we load a mount unitLennart Poettering1-12/+17
We need to make sure that the slice property is initialized whenever mount_load() is invoked, even if we fail to load things properly off disk. This is important since we generally don't allow changing the slice after a unit has been started. But given that we must track the state of external objects with mount units we must hence initialize the property no matter what.
2018-12-07mount: document that mount_add_extras() must work with active units, tooLennart Poettering1-0/+4
2018-12-07mount: set up local-fs.target/remote-fs.target deps in ↵Lennart Poettering1-3/+10
mount_add_default_dependencies() too This deps are very similar to the -pre deps, hence establish them at the same place, in particular as they should only be generated if default deps are on. This allows us to later on remove similar code that adds in these deps whenever /proc/self/mountinfo changes.
2018-12-07mount: remove unnecessary initialization of device_wants_mount and 'if'Lennart Poettering1-3/+3
2018-12-07mount: use mfree() where appropriateLennart Poettering1-5/+3
2018-12-07mount: rename needs_quota() → mount_needs_quota()Lennart Poettering1-4/+4
No change of logic, just some renaming, in order to match more closely the naming of the other, similar functions.
2018-12-07mount: merge redundant call mount_needs_network() into mount_is_network()Lennart Poettering1-9/+5
2018-12-07travis: also compile systemd on Debian TestingEvgeny Vereshchagin2-0/+101
This should help to catch issues like https://github.com/systemd/systemd/issues/11075
2018-12-07man: fix reference to sd_journal_print(3)Filipe Brandenburger1-2/+2
The reference in systemd-journald.service(8) was incorrectly pointing to man volume 4 instead of 3. This commit should fix the broken link at https://www.freedesktop.org/software/systemd/man/systemd-journald.service.html
2018-12-07missing: re-add drm related entriesYu Watanabe4-4/+12
This effectively reverts dab28f09051445fe370466e767e31652e0804a0f. Fixes #11075.
2018-12-07bash-completion: analyze: support 'security'Yu Watanabe1-1/+19
2018-12-07missing: add ARPHRD_IP6GREYu Watanabe1-0/+5
This fixes TYPE field of networkctl's output for ip6gre devices.
2018-12-07af-list,arphrd-list: also include relevant missing_*.h headersYu Watanabe5-5/+8
2018-12-07journal: use missing_audit.h to generate audit_type-list.txtYu Watanabe4-11/+9
2018-12-07cap-list: use missing_capabilty.h to generate list of capabilitiesYu Watanabe1-1/+2
2018-12-07systemctl: be nice to users and give hint how to specify "-.mount"Zbigniew Jędrzejewski-Szmek1-1/+9
https://bugzilla.redhat.com/show_bug.cgi?id=1656639 Using "--" is a trick that is hard to discover. Let's give users a hint: $ build/systemctl status -.service build/systemctl: invalid option -- '.' Hint: to specify units starting with a dash, use "--": build/systemctl [OPTIONS...] {COMMAND} -- -.service ... I use program_invocation_name because that's what getopt seems to use. "::" is used in the option string so that getopt doesn't complain about a missing argument in case somebody passes "-." as the argument. After all "." is not a real option.
2018-12-07shared/blkid-util: do not include util.h needlesslyZbigniew Jędrzejewski-Szmek1-4/+2
2018-12-06Revert "pager: close all fds when forking off pager"Yu Watanabe1-1/+1
This reverts commit 55844aebb60b42f56335eb147dd395269d8fb686. As `exe_name_pipe` are closed by safe_fork().
2018-12-06test-resolved: fix error code check in assertionAlexey Bogdanenko1-1/+1
If file "/etc/hosts" does not exist, fopen fails and sets errno to ENOENT ("No such file or directory"). So errno should be compared with ENOENT. This mistake causes test test-resolved-etc-hosts to fail when run on Debian image built with mkosi.debian included in the repo. The image does not include "/etc/hosts" file as it is not created by debootstrap, see debootstrap manpage https://manpages.debian.org/stretch/debootstrap/debootstrap.8.en.html.
2018-12-06test-network: make search_words_in_file() hit multi wordsYu Watanabe1-14/+15
2018-12-06test-network: delete rules before running next testYu Watanabe1-0/+6
2018-12-06test-network: add a line break after starting networkdYu Watanabe1-0/+1
This may be ugly. But otherwise, outputs of several check commands are shown without new line...
2018-12-06test-network: check link before starting dnsmasqYu Watanabe1-27/+18
2018-12-06test-network: show command outputsYu Watanabe1-0/+4
2018-12-06test-network: sort imported modulesYu Watanabe1-4/+4
2018-12-06test-network: sort links and unitsYu Watanabe1-44/+156
2018-12-06test-network: fix typo in class nameYu Watanabe1-1/+1
2018-12-06fd-util: Fix error handling in safe_fclosePaweł Szewczyk1-1/+1
Function fclose_nointr returns negative value on error.
2018-12-06tree-wide: drop missing.h from headers and use relevant missing_*.hYu Watanabe6-5/+6
2018-12-06lockfile: drop unnecessary headers from lockfile-util.hYu Watanabe7-5/+6
2018-12-06nsflsgs: drop missing.h and use missing_sched.hYu Watanabe2-3/+2
2018-12-06util: drop missing.h from socket-util.hYu Watanabe23-13/+30
2018-12-06util: drop missing.h from time-util.cYu Watanabe1-1/+1
2018-12-06missing: move fs or mount related definitions to missing_fs.hYu Watanabe4-61/+66
This also fixes errnous definition MS_REC -> MS_SLAVE.
2018-12-06missing: drop falloc related definitionsYu Watanabe1-9/+0
All these values are exposed earlier than linux-3.11. Let's drop them.
2018-12-06missing: move sched.h related definitions to missing_sched.hYu Watanabe3-15/+23
2018-12-06missing: drop old drm related definitionsYu Watanabe2-8/+4
These values are exposed earlier than linux-3.11. Let's use drm/drm.h.
2018-12-06missing: drop BPF_XOR as we have linux/bpf_common.hYu Watanabe1-4/+0
2018-12-06missing: drop DM_DEFERRED_REMOVE as we have dm-ioctl.hYu Watanabe1-4/+0