Imported Upstream version 215

This commit is contained in:
Michael Biebl 2014-09-04 17:08:06 +02:00
parent 60f067b410
commit e842803ae5
908 changed files with 31515 additions and 6162 deletions

View File

@ -11,6 +11,7 @@ MANPAGES += \
man/bootup.7 \ man/bootup.7 \
man/busctl.1 \ man/busctl.1 \
man/daemon.7 \ man/daemon.7 \
man/file-hierarchy.7 \
man/halt.8 \ man/halt.8 \
man/hostname.5 \ man/hostname.5 \
man/journalctl.1 \ man/journalctl.1 \
@ -58,6 +59,7 @@ MANPAGES += \
man/systemd-cat.1 \ man/systemd-cat.1 \
man/systemd-cgls.1 \ man/systemd-cgls.1 \
man/systemd-cgtop.1 \ man/systemd-cgtop.1 \
man/systemd-debug-generator.8 \
man/systemd-delta.1 \ man/systemd-delta.1 \
man/systemd-detect-virt.1 \ man/systemd-detect-virt.1 \
man/systemd-efi-boot-generator.8 \ man/systemd-efi-boot-generator.8 \
@ -72,6 +74,7 @@ MANPAGES += \
man/systemd-machine-id-setup.1 \ man/systemd-machine-id-setup.1 \
man/systemd-notify.1 \ man/systemd-notify.1 \
man/systemd-nspawn.1 \ man/systemd-nspawn.1 \
man/systemd-path.1 \
man/systemd-remount-fs.service.8 \ man/systemd-remount-fs.service.8 \
man/systemd-run.1 \ man/systemd-run.1 \
man/systemd-shutdownd.service.8 \ man/systemd-shutdownd.service.8 \
@ -81,9 +84,11 @@ MANPAGES += \
man/systemd-sysctl.service.8 \ man/systemd-sysctl.service.8 \
man/systemd-system-update-generator.8 \ man/systemd-system-update-generator.8 \
man/systemd-system.conf.5 \ man/systemd-system.conf.5 \
man/systemd-sysusers.8 \
man/systemd-tmpfiles.8 \ man/systemd-tmpfiles.8 \
man/systemd-tty-ask-password-agent.1 \ man/systemd-tty-ask-password-agent.1 \
man/systemd-udevd.service.8 \ man/systemd-udevd.service.8 \
man/systemd-update-done.service.8 \
man/systemd-update-utmp.service.8 \ man/systemd-update-utmp.service.8 \
man/systemd.1 \ man/systemd.1 \
man/systemd.automount.5 \ man/systemd.automount.5 \
@ -107,6 +112,7 @@ MANPAGES += \
man/systemd.time.7 \ man/systemd.time.7 \
man/systemd.timer.5 \ man/systemd.timer.5 \
man/systemd.unit.5 \ man/systemd.unit.5 \
man/sysusers.d.5 \
man/telinit.8 \ man/telinit.8 \
man/tmpfiles.d.5 \ man/tmpfiles.d.5 \
man/udev.7 \ man/udev.7 \
@ -193,6 +199,7 @@ MANPAGES_ALIAS += \
man/systemd-hybrid-sleep.service.8 \ man/systemd-hybrid-sleep.service.8 \
man/systemd-initctl.8 \ man/systemd-initctl.8 \
man/systemd-initctl.socket.8 \ man/systemd-initctl.socket.8 \
man/systemd-journald-dev-log.socket.8 \
man/systemd-journald.8 \ man/systemd-journald.8 \
man/systemd-journald.socket.8 \ man/systemd-journald.socket.8 \
man/systemd-kexec.service.8 \ man/systemd-kexec.service.8 \
@ -204,6 +211,7 @@ MANPAGES_ALIAS += \
man/systemd-shutdownd.socket.8 \ man/systemd-shutdownd.socket.8 \
man/systemd-sleep.8 \ man/systemd-sleep.8 \
man/systemd-sysctl.8 \ man/systemd-sysctl.8 \
man/systemd-sysusers.service.8 \
man/systemd-tmpfiles-clean.service.8 \ man/systemd-tmpfiles-clean.service.8 \
man/systemd-tmpfiles-clean.timer.8 \ man/systemd-tmpfiles-clean.timer.8 \
man/systemd-tmpfiles-setup-dev.service.8 \ man/systemd-tmpfiles-setup-dev.service.8 \
@ -211,6 +219,7 @@ MANPAGES_ALIAS += \
man/systemd-udevd-control.socket.8 \ man/systemd-udevd-control.socket.8 \
man/systemd-udevd-kernel.socket.8 \ man/systemd-udevd-kernel.socket.8 \
man/systemd-udevd.8 \ man/systemd-udevd.8 \
man/systemd-update-done.8 \
man/systemd-update-utmp-runlevel.service.8 \ man/systemd-update-utmp-runlevel.service.8 \
man/systemd-update-utmp.8 \ man/systemd-update-utmp.8 \
man/systemd-user.conf.5 man/systemd-user.conf.5
@ -295,6 +304,7 @@ man/systemd-hibernate.service.8: man/systemd-suspend.service.8
man/systemd-hybrid-sleep.service.8: man/systemd-suspend.service.8 man/systemd-hybrid-sleep.service.8: man/systemd-suspend.service.8
man/systemd-initctl.8: man/systemd-initctl.service.8 man/systemd-initctl.8: man/systemd-initctl.service.8
man/systemd-initctl.socket.8: man/systemd-initctl.service.8 man/systemd-initctl.socket.8: man/systemd-initctl.service.8
man/systemd-journald-dev-log.socket.8: man/systemd-journald.service.8
man/systemd-journald.8: man/systemd-journald.service.8 man/systemd-journald.8: man/systemd-journald.service.8
man/systemd-journald.socket.8: man/systemd-journald.service.8 man/systemd-journald.socket.8: man/systemd-journald.service.8
man/systemd-kexec.service.8: man/systemd-halt.service.8 man/systemd-kexec.service.8: man/systemd-halt.service.8
@ -306,6 +316,7 @@ man/systemd-shutdownd.8: man/systemd-shutdownd.service.8
man/systemd-shutdownd.socket.8: man/systemd-shutdownd.service.8 man/systemd-shutdownd.socket.8: man/systemd-shutdownd.service.8
man/systemd-sleep.8: man/systemd-suspend.service.8 man/systemd-sleep.8: man/systemd-suspend.service.8
man/systemd-sysctl.8: man/systemd-sysctl.service.8 man/systemd-sysctl.8: man/systemd-sysctl.service.8
man/systemd-sysusers.service.8: man/systemd-sysusers.8
man/systemd-tmpfiles-clean.service.8: man/systemd-tmpfiles.8 man/systemd-tmpfiles-clean.service.8: man/systemd-tmpfiles.8
man/systemd-tmpfiles-clean.timer.8: man/systemd-tmpfiles.8 man/systemd-tmpfiles-clean.timer.8: man/systemd-tmpfiles.8
man/systemd-tmpfiles-setup-dev.service.8: man/systemd-tmpfiles.8 man/systemd-tmpfiles-setup-dev.service.8: man/systemd-tmpfiles.8
@ -313,6 +324,7 @@ man/systemd-tmpfiles-setup.service.8: man/systemd-tmpfiles.8
man/systemd-udevd-control.socket.8: man/systemd-udevd.service.8 man/systemd-udevd-control.socket.8: man/systemd-udevd.service.8
man/systemd-udevd-kernel.socket.8: man/systemd-udevd.service.8 man/systemd-udevd-kernel.socket.8: man/systemd-udevd.service.8
man/systemd-udevd.8: man/systemd-udevd.service.8 man/systemd-udevd.8: man/systemd-udevd.service.8
man/systemd-update-done.8: man/systemd-update-done.service.8
man/systemd-update-utmp-runlevel.service.8: man/systemd-update-utmp.service.8 man/systemd-update-utmp-runlevel.service.8: man/systemd-update-utmp.service.8
man/systemd-update-utmp.8: man/systemd-update-utmp.service.8 man/systemd-update-utmp.8: man/systemd-update-utmp.service.8
man/systemd-user.conf.5: man/systemd-system.conf.5 man/systemd-user.conf.5: man/systemd-system.conf.5
@ -559,6 +571,9 @@ man/systemd-initctl.html: man/systemd-initctl.service.html
man/systemd-initctl.socket.html: man/systemd-initctl.service.html man/systemd-initctl.socket.html: man/systemd-initctl.service.html
$(html-alias) $(html-alias)
man/systemd-journald-dev-log.socket.html: man/systemd-journald.service.html
$(html-alias)
man/systemd-journald.html: man/systemd-journald.service.html man/systemd-journald.html: man/systemd-journald.service.html
$(html-alias) $(html-alias)
@ -592,6 +607,9 @@ man/systemd-sleep.html: man/systemd-suspend.service.html
man/systemd-sysctl.html: man/systemd-sysctl.service.html man/systemd-sysctl.html: man/systemd-sysctl.service.html
$(html-alias) $(html-alias)
man/systemd-sysusers.service.html: man/systemd-sysusers.html
$(html-alias)
man/systemd-tmpfiles-clean.service.html: man/systemd-tmpfiles.html man/systemd-tmpfiles-clean.service.html: man/systemd-tmpfiles.html
$(html-alias) $(html-alias)
@ -613,6 +631,9 @@ man/systemd-udevd-kernel.socket.html: man/systemd-udevd.service.html
man/systemd-udevd.html: man/systemd-udevd.service.html man/systemd-udevd.html: man/systemd-udevd.service.html
$(html-alias) $(html-alias)
man/systemd-update-done.html: man/systemd-update-done.service.html
$(html-alias)
man/systemd-update-utmp-runlevel.service.html: man/systemd-update-utmp.service.html man/systemd-update-utmp-runlevel.service.html: man/systemd-update-utmp.service.html
$(html-alias) $(html-alias)
@ -658,7 +679,8 @@ endif
if ENABLE_COREDUMP if ENABLE_COREDUMP
MANPAGES += \ MANPAGES += \
man/systemd-coredumpctl.1 man/coredump.conf.5 \
man/coredumpctl.1
MANPAGES_ALIAS += \ MANPAGES_ALIAS += \
# #
@ -1472,13 +1494,16 @@ endif
# Really, do not edit this file. # Really, do not edit this file.
EXTRA_DIST += \ EXTRA_DIST += \
man/binfmt.d.xml \ man/binfmt.d.xml \
man/bootchart.conf.xml \ man/bootchart.conf.xml \
man/bootctl.xml \ man/bootctl.xml \
man/bootup.xml \ man/bootup.xml \
man/busctl.xml \ man/busctl.xml \
man/coredump.conf.xml \
man/coredumpctl.xml \
man/crypttab.xml \ man/crypttab.xml \
man/daemon.xml \ man/daemon.xml \
man/file-hierarchy.xml \
man/halt.xml \ man/halt.xml \
man/hostname.xml \ man/hostname.xml \
man/hostnamectl.xml \ man/hostnamectl.xml \
@ -1569,9 +1594,9 @@ EXTRA_DIST += \
man/systemd-cat.xml \ man/systemd-cat.xml \
man/systemd-cgls.xml \ man/systemd-cgls.xml \
man/systemd-cgtop.xml \ man/systemd-cgtop.xml \
man/systemd-coredumpctl.xml \
man/systemd-cryptsetup-generator.xml \ man/systemd-cryptsetup-generator.xml \
man/systemd-cryptsetup@.service.xml \ man/systemd-cryptsetup@.service.xml \
man/systemd-debug-generator.xml \
man/systemd-delta.xml \ man/systemd-delta.xml \
man/systemd-detect-virt.xml \ man/systemd-detect-virt.xml \
man/systemd-efi-boot-generator.xml \ man/systemd-efi-boot-generator.xml \
@ -1595,6 +1620,7 @@ EXTRA_DIST += \
man/systemd-networkd.service.xml \ man/systemd-networkd.service.xml \
man/systemd-notify.xml \ man/systemd-notify.xml \
man/systemd-nspawn.xml \ man/systemd-nspawn.xml \
man/systemd-path.xml \
man/systemd-quotacheck.service.xml \ man/systemd-quotacheck.service.xml \
man/systemd-random-seed.service.xml \ man/systemd-random-seed.service.xml \
man/systemd-readahead-replay.service.xml \ man/systemd-readahead-replay.service.xml \
@ -1609,11 +1635,13 @@ EXTRA_DIST += \
man/systemd-sysctl.service.xml \ man/systemd-sysctl.service.xml \
man/systemd-system-update-generator.xml \ man/systemd-system-update-generator.xml \
man/systemd-system.conf.xml \ man/systemd-system.conf.xml \
man/systemd-sysusers.xml \
man/systemd-timedated.service.xml \ man/systemd-timedated.service.xml \
man/systemd-timesyncd.service.xml \ man/systemd-timesyncd.service.xml \
man/systemd-tmpfiles.xml \ man/systemd-tmpfiles.xml \
man/systemd-tty-ask-password-agent.xml \ man/systemd-tty-ask-password-agent.xml \
man/systemd-udevd.service.xml \ man/systemd-udevd.service.xml \
man/systemd-update-done.service.xml \
man/systemd-update-utmp.service.xml \ man/systemd-update-utmp.service.xml \
man/systemd-user-sessions.service.xml \ man/systemd-user-sessions.service.xml \
man/systemd-vconsole-setup.service.xml \ man/systemd-vconsole-setup.service.xml \
@ -1643,6 +1671,7 @@ EXTRA_DIST += \
man/systemd.timer.xml \ man/systemd.timer.xml \
man/systemd.unit.xml \ man/systemd.unit.xml \
man/systemd.xml \ man/systemd.xml \
man/sysusers.d.xml \
man/telinit.xml \ man/telinit.xml \
man/timedatectl.xml \ man/timedatectl.xml \
man/tmpfiles.d.xml \ man/tmpfiles.d.xml \

View File

@ -35,16 +35,16 @@ SUBDIRS = . po
# Keep the test-suite.log # Keep the test-suite.log
.PRECIOUS: $(TEST_SUITE_LOG) Makefile .PRECIOUS: $(TEST_SUITE_LOG) Makefile
LIBUDEV_CURRENT=5 LIBUDEV_CURRENT=6
LIBUDEV_REVISION=1 LIBUDEV_REVISION=0
LIBUDEV_AGE=4 LIBUDEV_AGE=5
LIBGUDEV_CURRENT=2 LIBGUDEV_CURRENT=2
LIBGUDEV_REVISION=0 LIBGUDEV_REVISION=0
LIBGUDEV_AGE=2 LIBGUDEV_AGE=2
LIBSYSTEMD_CURRENT=3 LIBSYSTEMD_CURRENT=3
LIBSYSTEMD_REVISION=0 LIBSYSTEMD_REVISION=1
LIBSYSTEMD_AGE=3 LIBSYSTEMD_AGE=3
# The following four libraries only exist for compatibility reasons, # The following four libraries only exist for compatibility reasons,
@ -88,7 +88,10 @@ pkgsysconfdir=$(sysconfdir)/systemd
userunitdir=$(prefix)/lib/systemd/user userunitdir=$(prefix)/lib/systemd/user
userpresetdir=$(prefix)/lib/systemd/user-preset userpresetdir=$(prefix)/lib/systemd/user-preset
tmpfilesdir=$(prefix)/lib/tmpfiles.d tmpfilesdir=$(prefix)/lib/tmpfiles.d
sysusersdir=$(prefix)/lib/sysusers.d
sysctldir=$(prefix)/lib/sysctl.d sysctldir=$(prefix)/lib/sysctl.d
binfmtdir=$(prefix)/lib/binfmt.d
modulesloaddir=$(prefix)/lib/modules-load.d
networkdir=$(rootprefix)/lib/systemd/network networkdir=$(rootprefix)/lib/systemd/network
pkgincludedir=$(includedir)/systemd pkgincludedir=$(includedir)/systemd
systemgeneratordir=$(rootlibexecdir)/system-generators systemgeneratordir=$(rootlibexecdir)/system-generators
@ -184,6 +187,8 @@ AM_CPPFLAGS = \
-DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \ -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
-DQUOTACHECK=\"$(QUOTACHECK)\" \ -DQUOTACHECK=\"$(QUOTACHECK)\" \
-DKEXEC=\"$(KEXEC)\" \ -DKEXEC=\"$(KEXEC)\" \
-DLIBDIR=\"$(libdir)\" \
-DROOTLIBDIR=\"$(rootlibdir)\" \
-I $(top_srcdir)/src \ -I $(top_srcdir)/src \
-I $(top_builddir)/src/shared \ -I $(top_builddir)/src/shared \
-I $(top_srcdir)/src/shared \ -I $(top_srcdir)/src/shared \
@ -296,10 +301,14 @@ define install-relative-aliases
done done
endef endef
install-touch-usr-hook:
touch -c $(DESTDIR)/$(prefix)
INSTALL_EXEC_HOOKS += \ INSTALL_EXEC_HOOKS += \
install-target-wants-hook \ install-target-wants-hook \
install-directories-hook \ install-directories-hook \
install-aliases-hook install-aliases-hook \
install-touch-usr-hook
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
AM_V_M4 = $(AM_V_M4_$(V)) AM_V_M4 = $(AM_V_M4_$(V))
@ -337,7 +346,8 @@ bin_PROGRAMS = \
systemd-detect-virt \ systemd-detect-virt \
systemd-delta \ systemd-delta \
systemd-analyze \ systemd-analyze \
systemd-run systemd-run \
systemd-path
dist_bin_SCRIPTS = \ dist_bin_SCRIPTS = \
src/kernel-install/kernel-install src/kernel-install/kernel-install
@ -360,12 +370,14 @@ rootlibexec_PROGRAMS = \
systemd-sysctl \ systemd-sysctl \
systemd-sleep \ systemd-sleep \
systemd-bus-proxyd \ systemd-bus-proxyd \
systemd-socket-proxyd systemd-socket-proxyd \
systemd-update-done
systemgenerator_PROGRAMS = \ systemgenerator_PROGRAMS = \
systemd-getty-generator \ systemd-getty-generator \
systemd-fstab-generator \ systemd-fstab-generator \
systemd-system-update-generator systemd-system-update-generator \
systemd-debug-generator
dist_bashcompletion_DATA = \ dist_bashcompletion_DATA = \
shell-completion/bash/busctl \ shell-completion/bash/busctl \
@ -458,7 +470,8 @@ dist_systemunit_DATA = \
units/systemd-udevd-control.socket \ units/systemd-udevd-control.socket \
units/systemd-udevd-kernel.socket \ units/systemd-udevd-kernel.socket \
units/system-update.target \ units/system-update.target \
units/initrd-switch-root.target units/initrd-switch-root.target \
units/ldconfig.service
nodist_systemunit_DATA = \ nodist_systemunit_DATA = \
units/getty@.service \ units/getty@.service \
@ -489,12 +502,14 @@ nodist_systemunit_DATA = \
units/systemd-udevd.service \ units/systemd-udevd.service \
units/systemd-udev-trigger.service \ units/systemd-udev-trigger.service \
units/systemd-udev-settle.service \ units/systemd-udev-settle.service \
units/systemd-udev-hwdb-update.service \
units/debug-shell.service \ units/debug-shell.service \
units/initrd-parse-etc.service \ units/initrd-parse-etc.service \
units/initrd-cleanup.service \ units/initrd-cleanup.service \
units/initrd-udevadm-cleanup-db.service \ units/initrd-udevadm-cleanup-db.service \
units/initrd-switch-root.service \ units/initrd-switch-root.service \
units/systemd-nspawn@.service units/systemd-nspawn@.service \
units/systemd-update-done.service
dist_userunit_DATA = \ dist_userunit_DATA = \
units/user/basic.target \ units/user/basic.target \
@ -504,6 +519,9 @@ dist_userunit_DATA = \
nodist_userunit_DATA = \ nodist_userunit_DATA = \
units/user/systemd-exit.service units/user/systemd-exit.service
dist_systempreset_DATA = \
system-preset/90-systemd.preset
EXTRA_DIST += \ EXTRA_DIST += \
units/getty@.service.m4 \ units/getty@.service.m4 \
units/serial-getty@.service.m4 \ units/serial-getty@.service.m4 \
@ -537,7 +555,8 @@ EXTRA_DIST += \
units/initrd-cleanup.service.in \ units/initrd-cleanup.service.in \
units/initrd-udevadm-cleanup-db.service.in \ units/initrd-udevadm-cleanup-db.service.in \
units/initrd-switch-root.service.in \ units/initrd-switch-root.service.in \
units/systemd-nspawn@.service.in units/systemd-nspawn@.service.in \
units/systemd-update-done.service.in
CLEANFILES += \ CLEANFILES += \
units/console-shell.service.m4 \ units/console-shell.service.m4 \
@ -800,8 +819,6 @@ libsystemd_shared_la_SOURCES = \
src/shared/bus-label.c \ src/shared/bus-label.c \
src/shared/bus-label.h \ src/shared/bus-label.h \
src/shared/gpt.h \ src/shared/gpt.h \
src/shared/generator.h \
src/shared/generator.c \
src/shared/clean-ipc.h \ src/shared/clean-ipc.h \
src/shared/clean-ipc.c \ src/shared/clean-ipc.c \
src/shared/login-shared.c \ src/shared/login-shared.c \
@ -813,7 +830,9 @@ libsystemd_shared_la_SOURCES = \
src/shared/eventfd-util.c \ src/shared/eventfd-util.c \
src/shared/eventfd-util.h \ src/shared/eventfd-util.h \
src/shared/copy.c \ src/shared/copy.c \
src/shared/copy.h src/shared/copy.h \
src/shared/base-filesystem.c \
src/shared/base-filesystem.h
nodist_libsystemd_shared_la_SOURCES = \ nodist_libsystemd_shared_la_SOURCES = \
src/shared/errno-from-name.h \ src/shared/errno-from-name.h \
@ -823,7 +842,8 @@ nodist_libsystemd_shared_la_SOURCES = \
libsystemd_shared_la_CFLAGS = \ libsystemd_shared_la_CFLAGS = \
$(AM_CFLAGS) \ $(AM_CFLAGS) \
$(SECCOMP_CFLAGS) $(SECCOMP_CFLAGS) \
-pthread
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
noinst_LTLIBRARIES += \ noinst_LTLIBRARIES += \
@ -855,7 +875,11 @@ libsystemd_label_la_SOURCES = \
src/shared/fileio-label.c \ src/shared/fileio-label.c \
src/shared/fileio-label.h \ src/shared/fileio-label.h \
src/shared/dev-setup.c \ src/shared/dev-setup.c \
src/shared/dev-setup.h src/shared/dev-setup.h \
src/shared/dropin.c \
src/shared/dropin.h \
src/shared/generator.h \
src/shared/generator.c
libsystemd_label_la_CFLAGS = \ libsystemd_label_la_CFLAGS = \
$(AM_CFLAGS) \ $(AM_CFLAGS) \
@ -1227,7 +1251,13 @@ tests += \
test-tables \ test-tables \
test-device-nodes \ test-device-nodes \
test-xml \ test-xml \
test-architecture test-architecture \
test-socket-util \
test-fdset \
test-conf-files \
test-capability \
test-async \
test-ratelimit
EXTRA_DIST += \ EXTRA_DIST += \
test/sched_idle_bad.service \ test/sched_idle_bad.service \
@ -1331,12 +1361,43 @@ test_utf8_SOURCES = \
test_utf8_LDADD = \ test_utf8_LDADD = \
libsystemd-shared.la libsystemd-shared.la
test_capability_SOURCES = \
src/test/test-capability.c
test_capability_LDADD = \
libsystemd-shared.la \
libsystemd-capability.la
test_async_SOURCES = \
src/test/test-async.c
test_async_LDADD = \
libsystemd-shared.la
test_fdset_SOURCES = \
src/test/test-fdset.c
test_fdset_LDADD = \
libsystemd-core.la
test_ratelimit_SOURCES = \
src/test/test-ratelimit.c
test_ratelimit_LDADD = \
libsystemd-shared.la
test_util_SOURCES = \ test_util_SOURCES = \
src/test/test-util.c src/test/test-util.c
test_util_LDADD = \ test_util_LDADD = \
libsystemd-core.la libsystemd-core.la
test_socket_util_SOURCES = \
src/test/test-socket-util.c
test_socket_util_LDADD = \
libsystemd-core.la
test_ring_SOURCES = \ test_ring_SOURCES = \
src/test/test-ring.c src/test/test-ring.c
@ -1572,12 +1633,18 @@ test_sched_prio_LDADD = \
libsystemd-core.la \ libsystemd-core.la \
$(RT_LIBS) $(RT_LIBS)
test_conf_files_SOURCES = \
src/test/test-conf-files.c
test_conf_files_LDADD = \
libsystemd-shared.la
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
## .PHONY so it always rebuilds it ## .PHONY so it always rebuilds it
.PHONY: coverage lcov-run lcov-report coverage-sync .PHONY: coverage lcov-run lcov-report coverage-sync
# run lcov from scratch, always # run lcov from scratch, always
coverage: coverage: all
$(MAKE) lcov-run $(MAKE) lcov-run
$(MAKE) lcov-report $(MAKE) lcov-report
@ -1639,6 +1706,14 @@ systemd_update_utmp_LDADD = \
libsystemd-shared.la \ libsystemd-shared.la \
$(AUDIT_LIBS) $(AUDIT_LIBS)
# ------------------------------------------------------------------------------
systemd_update_done_SOURCES = \
src/update-done/update-done.c
systemd_update_done_LDADD = \
libsystemd-internal.la \
libsystemd-shared.la
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
systemd_shutdownd_SOURCES = \ systemd_shutdownd_SOURCES = \
src/shutdownd/shutdownd.c src/shutdownd/shutdownd.c
@ -1729,7 +1804,8 @@ dist_tmpfiles_DATA = \
tmpfiles.d/systemd-nologin.conf \ tmpfiles.d/systemd-nologin.conf \
tmpfiles.d/tmp.conf \ tmpfiles.d/tmp.conf \
tmpfiles.d/x11.conf \ tmpfiles.d/x11.conf \
tmpfiles.d/var.conf tmpfiles.d/var.conf \
tmpfiles.d/etc.conf
if HAVE_SYSV_COMPAT if HAVE_SYSV_COMPAT
dist_tmpfiles_DATA += \ dist_tmpfiles_DATA += \
@ -1756,6 +1832,44 @@ EXTRA_DIST += \
units/systemd-tmpfiles-setup.service.in \ units/systemd-tmpfiles-setup.service.in \
units/systemd-tmpfiles-clean.service.in units/systemd-tmpfiles-clean.service.in
# ------------------------------------------------------------------------------
if ENABLE_SYSUSERS
systemd_sysusers_SOURCES = \
src/sysusers/sysusers.c
systemd_sysusers_LDADD = \
libsystemd-units.la \
libsystemd-label.la \
libsystemd-capability.la \
libsystemd-internal.la \
libsystemd-shared.la
rootbin_PROGRAMS += \
systemd-sysusers
nodist_systemunit_DATA += \
units/systemd-sysusers.service
SYSINIT_TARGET_WANTS += \
systemd-sysusers.service
dist_sysusers_DATA = \
sysusers.d/systemd.conf
nodist_sysusers_DATA = \
sysusers.d/basic.conf
EXTRA_DIST += \
units/systemd-sysusers.service.in \
sysusers.d/basic.conf.in
CLEANFILES += \
sysusers.d/basic.conf
INSTALL_DIRS += \
$(sysusersdir)
endif
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
systemd_machine_id_setup_SOURCES = \ systemd_machine_id_setup_SOURCES = \
src/machine-id-setup/machine-id-setup-main.c \ src/machine-id-setup/machine-id-setup-main.c \
@ -1823,6 +1937,14 @@ systemd_getty_generator_LDADD = \
libsystemd-label.la \ libsystemd-label.la \
libsystemd-shared.la libsystemd-shared.la
# ------------------------------------------------------------------------------
systemd_debug_generator_SOURCES = \
src/debug-generator/debug-generator.c
systemd_debug_generator_LDADD = \
libsystemd-label.la \
libsystemd-shared.la
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
systemd_fstab_generator_SOURCES = \ systemd_fstab_generator_SOURCES = \
src/fstab-generator/fstab-generator.c \ src/fstab-generator/fstab-generator.c \
@ -1977,6 +2099,14 @@ systemd_notify_LDADD = \
libsystemd-internal.la \ libsystemd-internal.la \
libsystemd-shared.la libsystemd-shared.la
# ------------------------------------------------------------------------------
systemd_path_SOURCES = \
src/path/path.c
systemd_path_LDADD = \
libsystemd-internal.la \
libsystemd-shared.la
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
systemd_ask_password_SOURCES = \ systemd_ask_password_SOURCES = \
src/ask-password/ask-password.c src/ask-password/ask-password.c
@ -2102,6 +2232,7 @@ libsystemd_internal_la_SOURCES = \
src/systemd/sd-login.h \ src/systemd/sd-login.h \
src/systemd/sd-id128.h \ src/systemd/sd-id128.h \
src/systemd/sd-daemon.h \ src/systemd/sd-daemon.h \
src/systemd/sd-path.h \
src/libsystemd/sd-bus/sd-bus.c \ src/libsystemd/sd-bus/sd-bus.c \
src/libsystemd/sd-bus/bus-control.c \ src/libsystemd/sd-bus/bus-control.c \
src/libsystemd/sd-bus/bus-control.h \ src/libsystemd/sd-bus/bus-control.h \
@ -2155,7 +2286,8 @@ libsystemd_internal_la_SOURCES = \
src/libsystemd/sd-rtnl/rtnl-util.c \ src/libsystemd/sd-rtnl/rtnl-util.c \
src/libsystemd/sd-id128/sd-id128.c \ src/libsystemd/sd-id128/sd-id128.c \
src/libsystemd/sd-daemon/sd-daemon.c \ src/libsystemd/sd-daemon/sd-daemon.c \
src/libsystemd/sd-login/sd-login.c src/libsystemd/sd-login/sd-login.c \
src/libsystemd/sd-path/sd-path.c
nodist_libsystemd_internal_la_SOURCES = \ nodist_libsystemd_internal_la_SOURCES = \
src/libsystemd/libsystemd.sym \ src/libsystemd/libsystemd.sym \
@ -2258,7 +2390,8 @@ pkginclude_HEADERS += \
src/systemd/sd-utf8.h \ src/systemd/sd-utf8.h \
src/systemd/sd-event.h \ src/systemd/sd-event.h \
src/systemd/sd-rtnl.h \ src/systemd/sd-rtnl.h \
src/systemd/sd-resolve.h src/systemd/sd-resolve.h \
src/systemd/sd-path.h
endif endif
lib_LTLIBRARIES += \ lib_LTLIBRARIES += \
@ -2507,15 +2640,18 @@ libsystemd_network_la_CFLAGS = \
libsystemd_network_la_SOURCES = \ libsystemd_network_la_SOURCES = \
src/systemd/sd-network.h \ src/systemd/sd-network.h \
src/systemd/sd-dhcp-client.h \ src/systemd/sd-dhcp-client.h \
src/systemd/sd-dhcp-server.h \
src/systemd/sd-dhcp-lease.h \ src/systemd/sd-dhcp-lease.h \
src/systemd/sd-ipv4ll.h \ src/systemd/sd-ipv4ll.h \
src/network/sd-network.c \ src/network/sd-network.c \
src/network/network-util.h \ src/network/network-util.h \
src/libsystemd-network/sd-dhcp-client.c \ src/libsystemd-network/sd-dhcp-client.c \
src/libsystemd-network/sd-dhcp-server.c \
src/libsystemd-network/dhcp-network.c \ src/libsystemd-network/dhcp-network.c \
src/libsystemd-network/dhcp-option.c \ src/libsystemd-network/dhcp-option.c \
src/libsystemd-network/dhcp-packet.c \ src/libsystemd-network/dhcp-packet.c \
src/libsystemd-network/dhcp-internal.h \ src/libsystemd-network/dhcp-internal.h \
src/libsystemd-network/dhcp-server-internal.h \
src/libsystemd-network/dhcp-protocol.h \ src/libsystemd-network/dhcp-protocol.h \
src/libsystemd-network/dhcp-lease-internal.h \ src/libsystemd-network/dhcp-lease-internal.h \
src/libsystemd-network/sd-dhcp-lease.c \ src/libsystemd-network/sd-dhcp-lease.c \
@ -2524,7 +2660,18 @@ libsystemd_network_la_SOURCES = \
src/libsystemd-network/ipv4ll-packet.c \ src/libsystemd-network/ipv4ll-packet.c \
src/libsystemd-network/ipv4ll-internal.h \ src/libsystemd-network/ipv4ll-internal.h \
src/libsystemd-network/network-internal.c \ src/libsystemd-network/network-internal.c \
src/libsystemd-network/network-internal.h src/libsystemd-network/network-internal.h \
src/systemd/sd-icmp6-nd.h \
src/systemd/sd-dhcp6-client.h \
src/systemd/sd-dhcp6-lease.h \
src/libsystemd-network/sd-icmp6-nd.c \
src/libsystemd-network/sd-dhcp6-client.c \
src/libsystemd-network/dhcp6-internal.h \
src/libsystemd-network/dhcp6-protocol.h \
src/libsystemd-network/dhcp6-network.c \
src/libsystemd-network/dhcp6-option.c \
src/libsystemd-network/dhcp6-lease-internal.h \
src/libsystemd-network/sd-dhcp6-lease.c
libsystemd_network_la_LIBADD = \ libsystemd_network_la_LIBADD = \
libudev-internal.la \ libudev-internal.la \
@ -2555,6 +2702,14 @@ test_dhcp_client_LDADD = \
libsystemd-internal.la \ libsystemd-internal.la \
libsystemd-shared.la libsystemd-shared.la
test_dhcp_server_SOURCES = \
src/libsystemd-network/test-dhcp-server.c
test_dhcp_server_LDADD = \
libsystemd-network.la \
libsystemd-internal.la \
libsystemd-shared.la
test_ipv4ll_SOURCES = \ test_ipv4ll_SOURCES = \
src/systemd/sd-ipv4ll.h \ src/systemd/sd-ipv4ll.h \
src/libsystemd-network/ipv4ll-internal.h \ src/libsystemd-network/ipv4ll-internal.h \
@ -2566,10 +2721,34 @@ test_ipv4ll_LDADD = \
libsystemd-internal.la \ libsystemd-internal.la \
libsystemd-shared.la libsystemd-shared.la
test_icmp6_rs_SOURCES = \
src/systemd/sd-dhcp6-client.h \
src/systemd/sd-icmp6-nd.h \
src/libsystemd-network/dhcp6-internal.h \
src/libsystemd-network/test-icmp6-rs.c
test_icmp6_rs_LDADD = \
libsystemd-network.la \
libsystemd-internal.la \
libsystemd-shared.la
test_dhcp6_client_SOURCES = \
src/systemd/sd-dhcp6-client.h \
src/libsystemd-network/dhcp6-internal.h \
src/libsystemd-network/test-dhcp6-client.c
test_dhcp6_client_LDADD = \
libsystemd-network.la \
libsystemd-internal.la \
libsystemd-shared.la
tests += \ tests += \
test-dhcp-option \ test-dhcp-option \
test-dhcp-client \ test-dhcp-client \
test-ipv4ll test-dhcp-server \
test-ipv4ll \
test-icmp6-rs \
test-dhcp6-client
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
if ENABLE_GTK_DOC if ENABLE_GTK_DOC
@ -2716,19 +2895,23 @@ CLEANFILES += \
EXTRA_DIST += \ EXTRA_DIST += \
units/systemd-udevd.service.in \ units/systemd-udevd.service.in \
units/systemd-udev-trigger.service.in \ units/systemd-udev-trigger.service.in \
units/systemd-udev-settle.service.in units/systemd-udev-settle.service.in \
units/systemd-udev-hwdb-update.service.in
CLEANFILES += \ CLEANFILES += \
units/systemd-udevd.service \ units/systemd-udevd.service \
units/systemd-udev-trigger.service \ units/systemd-udev-trigger.service \
units/systemd-udev-settle.service units/systemd-udev-settle.service \
units/systemd-udev-hwdb-update.service
SOCKETS_TARGET_WANTS += \ SOCKETS_TARGET_WANTS += \
systemd-udevd-control.socket \ systemd-udevd-control.socket \
systemd-udevd-kernel.socket systemd-udevd-kernel.socket
SYSINIT_TARGET_WANTS += \ SYSINIT_TARGET_WANTS += \
systemd-udevd.service \ systemd-udevd.service \
systemd-udev-trigger.service systemd-udev-trigger.service \
systemd-udev-hwdb-update.service
rootbin_PROGRAMS += \ rootbin_PROGRAMS += \
udevadm udevadm
@ -3027,6 +3210,7 @@ CLEANFILES += \
src/gudev/gudev-1.0.pc src/gudev/gudev-1.0.pc
libgudev_1_0_la_SOURCES = \ libgudev_1_0_la_SOURCES = \
src/gudev/libgudev-1.0.sym \
src/gudev/gudevenums.h \ src/gudev/gudevenums.h \
src/gudev/gudevenumtypes.h \ src/gudev/gudevenumtypes.h \
src/gudev/gudevenumtypes.h\ src/gudev/gudevenumtypes.h\
@ -3070,8 +3254,9 @@ libgudev_1_0_la_LIBADD = \
libgudev_1_0_la_LDFLAGS = \ libgudev_1_0_la_LDFLAGS = \
$(AM_LDFLAGS) \ $(AM_LDFLAGS) \
-version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \ -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
-export-dynamic -no-undefined \ -export-dynamic \
-export-symbols-regex '^g_udev_.*' -no-undefined \
-Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
$(AM_V_at)$(MKDIR_P) $(dir $@) $(AM_V_at)$(MKDIR_P) $(dir $@)
@ -3345,6 +3530,15 @@ test_catalog_CPPFLAGS = \
test_catalog_LDADD = \ test_catalog_LDADD = \
libsystemd-journal-core.la libsystemd-journal-core.la
if HAVE_XZ
test_compress_SOURCES = \
src/journal/test-compress.c
test_compress_LDADD = \
libsystemd-journal-internal.la \
libsystemd-shared.la
endif
libsystemd_journal_core_la_SOURCES = \ libsystemd_journal_core_la_SOURCES = \
src/journal/journald-kmsg.c \ src/journal/journald-kmsg.c \
src/journal/journald-kmsg.h \ src/journal/journald-kmsg.h \
@ -3427,6 +3621,10 @@ tests += \
test-mmap-cache \ test-mmap-cache \
test-catalog test-catalog
if HAVE_XZ
tests += test-compress
endif
pkginclude_HEADERS += \ pkginclude_HEADERS += \
src/systemd/sd-journal.h \ src/systemd/sd-journal.h \
src/systemd/sd-messages.h \ src/systemd/sd-messages.h \
@ -3453,7 +3651,7 @@ libsystemd_journal_internal_la_SOURCES = \
src/journal/mmap-cache.h src/journal/mmap-cache.h
# using _CFLAGS = in the conditional below would suppress AM_CFLAGS # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
libsystemd_journal_internal_la_CFLAGS = libsystemd_journal_internal_la_CFLAGS = \
$(AM_CFLAGS) $(AM_CFLAGS)
libsystemd_journal_internal_la_LIBADD = libsystemd_journal_internal_la_LIBADD =
@ -3503,7 +3701,8 @@ dist_systemunit_DATA += \
nodist_systemunit_DATA += \ nodist_systemunit_DATA += \
units/systemd-journald.service \ units/systemd-journald.service \
units/systemd-journal-flush.service units/systemd-journal-flush.service \
units/systemd-journal-catalog-update.service
dist_pkgsysconf_DATA += \ dist_pkgsysconf_DATA += \
src/journal/journald.conf src/journal/journald.conf
@ -3520,11 +3719,13 @@ SOCKETS_TARGET_WANTS += \
SYSINIT_TARGET_WANTS += \ SYSINIT_TARGET_WANTS += \
systemd-journald.service \ systemd-journald.service \
systemd-journal-flush.service systemd-journal-flush.service \
systemd-journal-catalog-update.service
EXTRA_DIST += \ EXTRA_DIST += \
units/systemd-journald.service.in \ units/systemd-journald.service.in \
units/systemd-journal-flush.service.in \ units/systemd-journal-flush.service.in \
units/systemd-journal-catalog-update.service.in \
src/journal/journald-gperf.gperf src/journal/journald-gperf.gperf
CLEANFILES += \ CLEANFILES += \
@ -3591,7 +3792,9 @@ systemd_socket_proxyd_LDADD = \
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
if ENABLE_COREDUMP if ENABLE_COREDUMP
systemd_coredump_SOURCES = \ systemd_coredump_SOURCES = \
src/journal/coredump.c src/journal/coredump.c \
src/journal/coredump-vacuum.c \
src/journal/coredump-vacuum.h
systemd_coredump_LDADD = \ systemd_coredump_LDADD = \
libsystemd-journal-internal.la \ libsystemd-journal-internal.la \
@ -3599,25 +3802,57 @@ systemd_coredump_LDADD = \
libsystemd-internal.la \ libsystemd-internal.la \
libsystemd-shared.la libsystemd-shared.la
if HAVE_ELFUTILS
systemd_coredump_SOURCES += \
src/journal/stacktrace.c \
src/journal/stacktrace.h
systemd_coredump_LDADD += \
$(ELFUTILS_LIBS)
endif
rootlibexec_PROGRAMS += \ rootlibexec_PROGRAMS += \
systemd-coredump systemd-coredump
systemd_coredumpctl_SOURCES = \ dist_pkgsysconf_DATA += \
src/journal/coredump.conf
if HAVE_ACL
systemd_coredump_LDADD += \
libsystemd-acl.la
endif
coredumpctl_SOURCES = \
src/journal/coredumpctl.c src/journal/coredumpctl.c
systemd_coredumpctl_LDADD = \ coredumpctl_LDADD = \
libsystemd-journal-internal.la \ libsystemd-journal-internal.la \
libsystemd-internal.la \ libsystemd-internal.la \
libsystemd-shared.la libsystemd-shared.la
bin_PROGRAMS += \ bin_PROGRAMS += \
systemd-coredumpctl coredumpctl
manual_tests += \
test-coredump-vacuum
test_coredump_vacuum_SOURCES = \
src/journal/test-coredump-vacuum.c \
src/journal/coredump-vacuum.c \
src/journal/coredump-vacuum.h
test_coredump_vacuum_LDADD = \
libsystemd-internal.la \
libsystemd-shared.la
dist_bashcompletion_DATA += \ dist_bashcompletion_DATA += \
shell-completion/bash/systemd-coredumpctl shell-completion/bash/coredumpctl
dist_zshcompletion_DATA += \ dist_zshcompletion_DATA += \
shell-completion/zsh/_systemd-coredumpctl shell-completion/zsh/_coredumpctl
GENERAL_ALIASES += \
$(bindir)/coredumpctl $(bindir)/systemd-coredumpctl
sysctl_DATA = \ sysctl_DATA = \
sysctl.d/50-coredump.conf sysctl.d/50-coredump.conf
@ -3846,7 +4081,8 @@ systemgenerator_PROGRAMS += \
systemd-cryptsetup-generator systemd-cryptsetup-generator
dist_systemunit_DATA += \ dist_systemunit_DATA += \
units/cryptsetup.target units/cryptsetup.target \
units/cryptsetup-pre.target
systemd_cryptsetup_SOURCES = \ systemd_cryptsetup_SOURCES = \
src/cryptsetup/cryptsetup.c src/cryptsetup/cryptsetup.c
@ -4100,6 +4336,9 @@ rootlibexec_PROGRAMS += \
nodist_systemunit_DATA += \ nodist_systemunit_DATA += \
units/systemd-timesyncd.service units/systemd-timesyncd.service
GENERAL_ALIASES += \
$(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-timesyncd.service
EXTRA_DIST += \ EXTRA_DIST += \
units/systemd-timesyncd.service.in units/systemd-timesyncd.service.in
@ -4292,10 +4531,16 @@ libsystemd_networkd_core_la_SOURCES = \
src/network/networkd-netdev.c \ src/network/networkd-netdev.c \
src/network/networkd-tunnel.c \ src/network/networkd-tunnel.c \
src/network/networkd-veth.c \ src/network/networkd-veth.c \
src/network/networkd-vxlan.c \
src/network/networkd-vlan.c \
src/network/networkd-macvlan.c \
src/network/networkd-dummy.c \
src/network/networkd-tuntap.c \
src/network/networkd-network.c \ src/network/networkd-network.c \
src/network/networkd-address.c \ src/network/networkd-address.c \
src/network/networkd-route.c \ src/network/networkd-route.c \
src/network/networkd-manager.c src/network/networkd-manager.c \
src/network/networkd-address-pool.c
nodist_libsystemd_networkd_core_la_SOURCES = \ nodist_libsystemd_networkd_core_la_SOURCES = \
src/network/networkd-network-gperf.c \ src/network/networkd-network-gperf.c \
@ -4486,7 +4731,8 @@ tests += \
if HAVE_PAM if HAVE_PAM
pam_systemd_la_SOURCES = \ pam_systemd_la_SOURCES = \
src/login/pam-module.c src/login/pam_systemd.sym \
src/login/pam_systemd.c
pam_systemd_la_CFLAGS = \ pam_systemd_la_CFLAGS = \
$(AM_CFLAGS) \ $(AM_CFLAGS) \
@ -4499,7 +4745,7 @@ pam_systemd_la_LDFLAGS = \
-export-dynamic \ -export-dynamic \
-avoid-version \ -avoid-version \
-shared \ -shared \
-export-symbols-regex '^pam_sm_.*' -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
pam_systemd_la_LIBADD = \ pam_systemd_la_LIBADD = \
libsystemd-capability.la \ libsystemd-capability.la \
@ -4614,10 +4860,12 @@ _journal_la_LIBADD = \
id128_la_SOURCES = \ id128_la_SOURCES = \
src/python-systemd/id128.c \ src/python-systemd/id128.c \
src/python-systemd/id128-constants.h \
src/python-systemd/pyutil.c \ src/python-systemd/pyutil.c \
src/python-systemd/pyutil.h src/python-systemd/pyutil.h
nodist_id128_la_SOURCES = \
src/python-systemd/id128-constants.h
id128_la_CFLAGS = \ id128_la_CFLAGS = \
$(AM_CFLAGS) \ $(AM_CFLAGS) \
-fvisibility=default \ -fvisibility=default \
@ -4879,6 +5127,7 @@ substitutions = \
'|udevrulesdir=$(udevrulesdir)|' \ '|udevrulesdir=$(udevrulesdir)|' \
'|catalogdir=$(catalogdir)|' \ '|catalogdir=$(catalogdir)|' \
'|tmpfilesdir=$(tmpfilesdir)|' \ '|tmpfilesdir=$(tmpfilesdir)|' \
'|sysusersdir=$(sysusersdir)|' \
'|sysctldir=$(sysctldir)|' \ '|sysctldir=$(sysctldir)|' \
'|systemgeneratordir=$(systemgeneratordir)|' \ '|systemgeneratordir=$(systemgeneratordir)|' \
'|usergeneratordir=$(usergeneratordir)|' \ '|usergeneratordir=$(usergeneratordir)|' \
@ -4910,7 +5159,12 @@ substitutions = \
'|NTP_SERVERS=$(NTP_SERVERS)|' \ '|NTP_SERVERS=$(NTP_SERVERS)|' \
'|DNS_SERVERS=$(DNS_SERVERS)|' \ '|DNS_SERVERS=$(DNS_SERVERS)|' \
'|systemuidmax=$(SYSTEM_UID_MAX)|' \ '|systemuidmax=$(SYSTEM_UID_MAX)|' \
'|systemgidmax=$(SYSTEM_GID_MAX)|' '|systemgidmax=$(SYSTEM_GID_MAX)|' \
'|TTY_GID=$(TTY_GID)|' \
'|systemsleepdir=$(systemsleepdir)|' \
'|systemshutdowndir=$(systemshutdowndir)|' \
'|binfmtdir=$(binfmtdir)|' \
'|modulesloaddir=$(modulesloaddir)|'
SED_PROCESS = \ SED_PROCESS = \
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
@ -4962,7 +5216,7 @@ units/user/%: units/%.m4
$(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@ $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
if ENABLE_POLKIT if ENABLE_POLKIT
nodist_polkitpolicy_DATA = \ dist_polkitpolicy_DATA = \
$(polkitpolicy_files) \ $(polkitpolicy_files) \
$(polkitpolicy_in_in_files:.policy.in.in=.policy) $(polkitpolicy_in_in_files:.policy.in.in=.policy)
endif endif
@ -5072,14 +5326,20 @@ RUNLEVEL4_TARGET_WANTS += \
RUNLEVEL5_TARGET_WANTS += \ RUNLEVEL5_TARGET_WANTS += \
systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service
endif endif
SYSINIT_TARGET_WANTS += \ SYSINIT_TARGET_WANTS += \
systemd-update-utmp.service systemd-update-utmp.service \
systemd-update-done.service \
ldconfig.service
LOCAL_FS_TARGET_WANTS += \ LOCAL_FS_TARGET_WANTS += \
systemd-remount-fs.service \ systemd-remount-fs.service \
tmp.mount tmp.mount
MULTI_USER_TARGET_WANTS += \ MULTI_USER_TARGET_WANTS += \
getty.target \ getty.target \
systemd-ask-password-wall.path systemd-ask-password-wall.path
SYSINIT_TARGET_WANTS += \ SYSINIT_TARGET_WANTS += \
dev-hugepages.mount \ dev-hugepages.mount \
dev-mqueue.mount \ dev-mqueue.mount \
@ -5189,11 +5449,34 @@ DISTCHECK_CONFIGURE_FLAGS += \
--with-sysvrcnd-path= --with-sysvrcnd-path=
endif endif
if HAVE_PYTHON
DISTCHECK_CONFIGURE_FLAGS += \
--with-python
endif
if ENABLE_GTK_DOC if ENABLE_GTK_DOC
DISTCHECK_CONFIGURE_FLAGS += \ DISTCHECK_CONFIGURE_FLAGS += \
--enable-gtk-doc --enable-gtk-doc
endif endif
#
# Require python when making dist
#
.PHONY: dist-check-python
dist-check-python:
if !HAVE_PYTHON
@echo "*** python and python-lxml module must be installed and enabled in order to make dist"
@false
endif
dist-check-compat-libs:
if !ENABLE_COMPAT_LIBS
@echo "*** compat-libs must be enabled in order to make dist"
@false
endif
dist: dist-check-python dist-check-compat-libs
# check "broken" platforms limited toolchains for link breakage before we release # check "broken" platforms limited toolchains for link breakage before we release
.PHONY: linkcheck .PHONY: linkcheck
linkcheck: linkcheck:
@ -5255,7 +5538,7 @@ valgrind-tests: $(TESTS)
done done
exported-%: % exported-%: %
$(AM_V_GEN)nm -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@ $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
exported: $(addprefix exported-, $(lib_LTLIBRARIES)) exported: $(addprefix exported-, $(lib_LTLIBRARIES))
$(AM_V_GEN)cat $^ > $@ $(AM_V_GEN)cat $^ > $@
@ -5275,7 +5558,7 @@ ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
undefined defined: $(ALL_OBJECTS) undefined defined: $(ALL_OBJECTS)
$(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \ $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
nm -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \ $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
done | cut -c 20- | cut -d @ -f 1 | sort -u > $@ done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
CLEANFILES += \ CLEANFILES += \

File diff suppressed because it is too large Load Diff

289
NEWS
View File

@ -1,5 +1,239 @@
systemd System and Service Manager systemd System and Service Manager
CHANGES WITH 215:
* A new tool systemd-sysusers has been added. This tool
creates system users and groups in /etc/passwd and
/etc/group, based on static declarative system user/group
definitions in /usr/lib/sysusers.d/. This is useful to
enable factory resets and volatile systems that boot up with
an empty /etc directory, and thus need system users and
groups created during early boot. systemd now also ships
with two default sysusers.d/ files for the most basic
users and groups systemd and the core operating system
require.
* A new tmpfiles snippet has been added that rebuilds the
essential files in /etc on boot, should they be missing.
* A directive for ensuring automatic clean-up of
/var/cache/man/ has been removed from the default
configuration. This line should now be shipped by the man
implementation. The necessary change has been made to the
man-db implementation. Note that you need to update your man
implementation to one that ships this line, otherwise no
automatic clean-up of /var/cache/man will take place.
* A new condition ConditionNeedsUpdate= has been added that
may conditionalize services to only run when /etc or /var
are "older" than the vendor operating system resources in
/usr. This is useful for reconstructing or updating /etc
after an offline update of /usr or a factory reset, on the
next reboot. Services that want to run once after such an
update or reset should use this condition and order
themselves before the new systemd-update-done.service, which
will mark the two directories as fully updated. A number of
service files have been added making use of this, to rebuild
the udev hardware database, the journald message catalog and
dynamic loader cache (ldconfig). The systemd-sysusers tool
described above also makes use of this now. With this in
place it is now possible to start up a minimal operating
system with /etc empty cleanly. For more information on the
concepts involved see this recent blog story:
http://0pointer.de/blog/projects/stateless.html
* A new system group "input" has been introduced, and all
input device nodes get this group assigned. This is useful
for system-level software to get access to input devices. It
complements what is already done for "audio" and "video".
* systemd-networkd learnt minimal DHCPv4 server support in
addition to the existing DHCPv4 client support. It also
learnt DHCPv6 client and IPv6 Router Solicitation client
support. The DHCPv4 client gained support for static routes
passed in from the server. Note that the [DHCPv4] section
known in older systemd-networkd versions has been renamed to
[DHCP] and is now also used by the DHCPv6 client. Existing
.network files using settings of this section should be
updated, though compatibility is maintained. Optionally, the
client hostname may now be sent to the DHCP server.
* networkd gained support for vxlan virtual networks as well
as tun/tap and dummy devices.
* networkd gained support for automatic allocation of address
ranges for interfaces from a system-wide pool of
addresses. This is useful for dynamically managing a large
number of interfaces with a single network configuration
file. In particular this is useful to easily assign
appropriate IP addresses to the veth links of a large number
of nspawn instances.
* RPM macros for processing sysusers, sysctl and binfmt
drop-in snippets at package installation time have been
added.
* The /etc/os-release file should now be placed in
/usr/lib/os-release. The old location is automatically
created as symlink. /usr/lib is the more appropriate
location of this file, since it shall actually describe the
vendor operating system shipped in /usr, and not the
configuration stored in /etc.
* .mount units gained a new boolean SloppyOptions= setting
that maps to mount(8)'s -s option which enables permissive
parsing of unknown mount options.
* tmpfiles learnt a new "L+" directive which creates a symlink
but (unlike "L") deletes a pre-existing file first, should
it already exist and not already be the correct
symlink. Similar, "b+", "c+" and "p+" directives have been
added as well, which create block and character devices, as
well as fifos in the filesystem, possibly removing any
pre-existing files of different types.
* For tmpfiles' "L", "L+", "C" and "C+" directives the final
'argument' field (which so far specified the source to
symlink/copy the files from) is now optional. If omitted the
same file os copied from /usr/share/factory/ suffixed by the
full destination path. This is useful for populating /etc
with essential files, by copying them from vendor defaults
shipped in /usr/share/factory/etc.
* A new command "systemctl preset-all" has been added that
applies the service preset settings to all installed unit
files. A new switch --preset-mode= has been added that
controls whether only enable or only disable operations
shall be executed.
* A new command "systemctl is-system-running" has been added
that allows checking the overall state of the system, for
example whether it is fully up and running.
* When the system boots up with an empty /etc, the equivalent
to "systemctl preset-all" is executed during early boot, to
make sure all default services are enabled after a factory
reset.
* systemd now contains a minimal preset file that enables the
most basic services systemd ships by default.
* Unit files' [Install] section gained a new DefaultInstance=
field for defining the default instance to create if a
template unit is enabled with no instance specified.
* A new passive target cryptsetup-pre.target has been added
that may be used by services that need to make they run and
finish before the first LUKS cryptographic device is set up.
* The /dev/loop-control and /dev/btrfs-control device nodes
are now owned by the "disk" group by default, opening up
access to this group.
* systemd-coredump will now automatically generate a
stack trace of all core dumps taking place on the system,
based on elfutils' libdw library. This stack trace is logged
to the journal.
* systemd-coredump may now optionally store coredumps directly
on disk (in /var/lib/systemd/coredump, possibly compressed),
instead of storing them unconditionally in the journal. This
mode is the new default. A new configuration file
/etc/systemd/coredump.conf has been added to configure this
and other parameters of systemd-coredump.
* coredumpctl gained a new "info" verb to show details about a
specific coredump. A new switch "-1" has also been added
that makes sure to only show information about the most
recent entry instead of all entries. Also, as the tool is
generally useful now the "systemd-" prefix of the binary
name has been removed. Distributions that want to maintain
compatibility with the old name should add a symlink from
the old name to the new name.
* journald's SplitMode= now defaults to "uid". This makes sure
that unprivileged users can access their own coredumps with
coredumpctl without restrictions.
* New kernel command line options "systemd.wants=" (for
pulling an additional unit during boot), "systemd.mask="
(for masking a specific unit for the boot), and
"systemd.debug-shell" (for enabling the debug shell on tty9)
have been added. This is implemented in the new generator
"systemd-debug-generator".
* systemd-nspawn will now by default filter a couple of
syscalls for containers, among them those required for
kernel module loading, direct x86 IO port access, swap
management, and kexec. Most importantly though
open_by_handle_at() is now prohibited for containers,
closing a hole similar to a recently discussed vulnerability
in docker regarding access to files on file hierarchies the
container should normally not have access to. Note that for
nspawn we generally make no security claims anyway (and
this is explicitly documented in the man page), so this is
just a fix for one of the most obvious problems.
* A new man page file-hierarchy(7) has been added that
contains a minimized, modernized version of the file system
layout systemd expects, similar in style to the FHS
specification or hier(5). A new tool systemd-path(1) has
been added to query many of these paths for the local
machine and user.
* Automatic time-based clean-up of $XDG_RUNTIME_DIR is no
longer done. Since the directory now has a per-user size
limit, and is cleaned on logout this appears unnecessary,
in particular since this now brings the lifecycle of this
directory closer in line with how IPC objects are handled.
* systemd.pc now exports a number of additional directories,
including $libdir (which is useful to identify the library
path for the primary architecture of the system), and a
couple of drop-in directories.
* udev's predictable network interface names now use the dev_port
sysfs attribute, introduced in linux 3.15 instead of dev_id to
distinguish between ports of the same PCI function. dev_id should
only be used for ports using the same HW address, hence the need
for dev_port.
* machined has been updated to export the OS version of a
container (read from /etc/os-release and
/usr/lib/os-release) on the bus. This is now shown in
"machinectl status" for a machine.
* A new service setting RestartForceExitStatus= has been
added. If configured to a set of exit signals or process
return values, the service will be restarted when the main
daemon process exits with any of them, regardless of the
Restart= setting.
* systemctl's -H switch for connecting to remote systemd
machines has been extended so that it may be used to
directly connect to a specific container on the
host. "systemctl -H root@foobar:waldi" will now connect as
user "root" to host "foobar", and then proceed directly to
the container named "waldi". Note that currently you have to
authenticate as user "root" for this to work, as entering
containers is a privileged operation.
Contributions from: Andreas Henriksson, Benjamin Steinwender,
Carl Schaefer, Christian Hesse, Colin Ian King, Cristian
Rodríguez, Daniel Mack, Dave Reisner, David Herrmann, Eugene
Yakubovich, Filipe Brandenburger, Frederic Crozat, Hristo
Venev, Jan Engelhardt, Jonathan Boulle, Kay Sievers, Lennart
Poettering, Luke Shumaker, Mantas Mikulėnas, Marc-Antoine
Perennou, Marcel Holtmann, Michael Marineau, Michael Olbrich,
Michał Bartoszkiewicz, Michal Sekletar, Patrik Flykt, Ronan Le
Martret, Ronny Chevalier, Ruediger Oertel, Steven Noonan,
Susant Sahani, Thadeu Lima de Souza Cascardo, Thomas Hindoe
Paaboel Andersen, Tom Gundersen, Tom Hirst, Umut Tezduyar
Lindskog, Uoti Urpala, Zbigniew Jędrzejewski-Szmek
-- Berlin, 2014-07-03
CHANGES WITH 214: CHANGES WITH 214:
* As an experimental feature, udev now tries to lock the * As an experimental feature, udev now tries to lock the
@ -12,9 +246,9 @@ CHANGES WITH 214:
was opened for writing, the close will trigger a partition was opened for writing, the close will trigger a partition
table rescan in udev's "watch" facility, and if needed table rescan in udev's "watch" facility, and if needed
synthesize "change" events for the disk and all its partitions. synthesize "change" events for the disk and all its partitions.
This is now unconditionally enabled, if it turns out to This is now unconditionally enabled, and if it turns out to
cause major problems, we might turn it on only for specific cause major problems, we might turn it on only for specific
devices, or might need to disable it entirely. Device-mapper devices, or might need to disable it entirely. Device Mapper
devices are excluded from this logic. devices are excluded from this logic.
* We temporarily dropped the "-l" switch for fsck invocations, * We temporarily dropped the "-l" switch for fsck invocations,
@ -24,7 +258,7 @@ CHANGES WITH 214:
change has been released. change has been released.
* The dependency on libattr has been removed. Since a long * The dependency on libattr has been removed. Since a long
time the extended attribute calls have moved to glibc, and time, the extended attribute calls have moved to glibc, and
libattr is thus unnecessary. libattr is thus unnecessary.
* Virtualization detection works without priviliges now. This * Virtualization detection works without priviliges now. This
@ -49,17 +283,17 @@ CHANGES WITH 214:
* systemd-networkd will no longer automatically attempt to * systemd-networkd will no longer automatically attempt to
manually load kernel modules necessary for certain tunnel manually load kernel modules necessary for certain tunnel
transports. Instead it is assumed the kernel loads them transports. Instead, it is assumed the kernel loads them
automatically when required. This only works correctly on automatically when required. This only works correctly on
very new kernels. On older kernels, please consider adding very new kernels. On older kernels, please consider adding
the kernel modules to /etc/load-modules.d/ as a work-around. the kernel modules to /etc/modules-load.d/ as a work-around.
* The resolv.conf file systemd-resolved generates has been * The resolv.conf file systemd-resolved generates has been
moved to /run/systemd/resolve/, if you have a symlink from moved to /run/systemd/resolve/. If you have a symlink from
/etc/resolv.conf it might be necessary to correct it. /etc/resolv.conf, it might be necessary to correct it.
* Two new service settings ProtectedHome= and ProtectedSystem= * Two new service settings, ProtectedHome= and ProtectedSystem=,
have been added. When enabled they will make the user data have been added. When enabled, they will make the user data
(such as /home) inaccessible or read-only and the system (such as /home) inaccessible or read-only and the system
(such as /usr) read-only, for specific services. This allows (such as /usr) read-only, for specific services. This allows
very light-weight per-service sandboxing to avoid very light-weight per-service sandboxing to avoid
@ -71,13 +305,13 @@ CHANGES WITH 214:
settings to set the owner user and group of AF_UNIX sockets settings to set the owner user and group of AF_UNIX sockets
and FIFOs in the file system. and FIFOs in the file system.
* Socket units gained a new RemoveOnStop= setting. If enabled * Socket units gained a new RemoveOnStop= setting. If enabled,
all FIFOS and sockets in the file system will be removed all FIFOS and sockets in the file system will be removed
when the specific socket unit is stopped. when the specific socket unit is stopped.
* Socket units gained a new Symlinks= setting. It takes a list * Socket units gained a new Symlinks= setting. It takes a list
of symlinks to create to file system sockets or FIFOs of symlinks to create to file system sockets or FIFOs
created by the specific unix sockets. This is useful to created by the specific Unix sockets. This is useful to
manage symlinks to socket nodes with the same life-cycle as manage symlinks to socket nodes with the same life-cycle as
the socket itself. the socket itself.
@ -104,7 +338,7 @@ CHANGES WITH 214:
vanished. vanished.
* A new "on-abnormal" setting for Restart= has been added. If * A new "on-abnormal" setting for Restart= has been added. If
set it will result in automatic restarts on all "abnormal" set, it will result in automatic restarts on all "abnormal"
reasons for a process to exit, which includes unclean reasons for a process to exit, which includes unclean
signals, core dumps, timeouts and watchdog timeouts, but signals, core dumps, timeouts and watchdog timeouts, but
does not include clean and unclean exit codes or clean does not include clean and unclean exit codes or clean
@ -145,19 +379,19 @@ CHANGES WITH 214:
files or entire directories. files or entire directories.
* systemd-tmpfiles "m" lines are now fully equivalent to "z" * systemd-tmpfiles "m" lines are now fully equivalent to "z"
lines. So far they have been non-globbing versions of the lines. So far, they have been non-globbing versions of the
latter, and have thus been redundant. In future it is latter, and have thus been redundant. In future, it is
recommended to only use "z"; and "m" has hence been removed recommended to only use "z". "m" has hence been removed
from the documentation, even though it stays supported. from the documentation, even though it stays supported.
* A tmpfiles snippet to recreate the most basic structure in * A tmpfiles snippet to recreate the most basic structure in
/var has been added. This is enough to create the /var/run → /var has been added. This is enough to create the /var/run →
/run symlink and create a couple of structural /run symlink and create a couple of structural
directories. This allows systems to boot up with an empty or directories. This allows systems to boot up with an empty or
volatile /var. Of course, while with this change the core OS volatile /var. Of course, while with this change, the core OS
now is capable with dealing with a volatile /var not all now is capable with dealing with a volatile /var, not all
user services are ready for it. However, we hope that sooner user services are ready for it. However, we hope that sooner
or later many service daemons will be changed upstream so or later, many service daemons will be changed upstream so
that they are able to automatically create their necessary that they are able to automatically create their necessary
directories in /var at boot, should they be missing. This is directories in /var at boot, should they be missing. This is
the first step to allow state-less systems that only require the first step to allow state-less systems that only require
@ -171,7 +405,7 @@ CHANGES WITH 214:
* Access modes specified in tmpfiles snippets may now be * Access modes specified in tmpfiles snippets may now be
prefixed with "~", which indicates that they shall be masked prefixed with "~", which indicates that they shall be masked
by whether the existing file or directly is currently by whether the existing file or directly is currently
writable, readable or executable at all. Also, if specified writable, readable or executable at all. Also, if specified,
the sgid/suid/sticky bits will be masked for all the sgid/suid/sticky bits will be masked for all
non-directories. non-directories.
@ -179,6 +413,11 @@ CHANGES WITH 214:
added which is useful for services that shall run before any added which is useful for services that shall run before any
network is configured, for example firewall scripts. network is configured, for example firewall scripts.
* The "floppy" group that previously owned the /dev/fd*
devices is no longer used. The "disk" group is now used
instead. Distributions should probably deprecate usage of
this group.
Contributions from: Camilo Aguilar, Christian Hesse, Colin Ian Contributions from: Camilo Aguilar, Christian Hesse, Colin Ian
King, Cristian Rodríguez, Daniel Buch, Dave Reisner, David King, Cristian Rodríguez, Daniel Buch, Dave Reisner, David
Strauss, Denis Tikhomirov, John, Jonathan Liu, Kay Sievers, Strauss, Denis Tikhomirov, John, Jonathan Liu, Kay Sievers,
@ -194,12 +433,12 @@ CHANGES WITH 213:
* A new "systemd-timesyncd" daemon has been added for * A new "systemd-timesyncd" daemon has been added for
synchronizing the system clock across the network. It synchronizing the system clock across the network. It
implements an SNTP client. In contrast to NTP implements an SNTP client. In contrast to NTP
implementations such as chrony or the NTP reference server implementations such as chrony or the NTP reference server,
this only implements a client side, and does not bother with this only implements a client side, and does not bother with
the full NTP complexity, focusing only on querying time from the full NTP complexity, focusing only on querying time from
one remote server and synchronizing the local clock to one remote server and synchronizing the local clock to
it. Unless you intend to serve NTP to networked clients or it. Unless you intend to serve NTP to networked clients or
want to connect to local hardware clocks this simple NTP want to connect to local hardware clocks, this simple NTP
client should be more than appropriate for most client should be more than appropriate for most
installations. The daemon runs with minimal privileges, and installations. The daemon runs with minimal privileges, and
has been hooked up with networkd to only operate when has been hooked up with networkd to only operate when
@ -208,9 +447,9 @@ CHANGES WITH 213:
acquired, and uses this to possibly correct the system clock acquired, and uses this to possibly correct the system clock
early at bootup, in order to accommodate for systems that early at bootup, in order to accommodate for systems that
lack an RTC such as the Raspberry Pi and embedded devices, lack an RTC such as the Raspberry Pi and embedded devices,
and make sure that time monotonically progresses on these and to make sure that time monotonically progresses on these
systems, even if it is not always correct. To make use of systems, even if it is not always correct. To make use of
this daemon a new system user and group "systemd-timesync" this daemon, a new system user and group "systemd-timesync"
needs to be created on installation of systemd. needs to be created on installation of systemd.
* The queue "seqnum" interface of libudev has been disabled, as * The queue "seqnum" interface of libudev has been disabled, as
@ -230,7 +469,7 @@ CHANGES WITH 213:
* A new FailureAction= setting has been added for service * A new FailureAction= setting has been added for service
units which may be used to specify an operation to trigger units which may be used to specify an operation to trigger
when a service fails. This works similarly to when a service fails. This works similarly to
StartLimitAction=, but unlike it controls what is done StartLimitAction=, but unlike it, controls what is done
immediately rather than only after several attempts to immediately rather than only after several attempts to
restart the service in question. restart the service in question.
@ -296,7 +535,7 @@ CHANGES WITH 213:
* hostnamed has been changed to prefer the statically * hostnamed has been changed to prefer the statically
configured hostname in /etc/hostname (unless set to configured hostname in /etc/hostname (unless set to
'localhost' or empty) over any dynamic one supplied by 'localhost' or empty) over any dynamic one supplied by
dhcp. With this change the rules for picking the hostname dhcp. With this change, the rules for picking the hostname
match more closely the rules of other configuration settings match more closely the rules of other configuration settings
where the local administrator's configuration in /etc always where the local administrator's configuration in /etc always
overrides any other settings. overrides any other settings.

13
README
View File

@ -115,13 +115,14 @@ REQUIREMENTS:
libcryptsetup (optional) libcryptsetup (optional)
libaudit (optional) libaudit (optional)
libacl (optional) libacl (optional)
libattr (optional)
libselinux (optional) libselinux (optional)
liblzma (optional) liblzma (optional)
libgcrypt (optional) libgcrypt (optional)
libqrencode (optional) libqrencode (optional)
libmicrohttpd (optional) libmicrohttpd (optional)
libpython (optional) libpython (optional)
gobject-introspection > 1.40.0 (optional)
elfutils >= 158 (optional)
make, gcc, and similar tools make, gcc, and similar tools
During runtime, you need the following additional During runtime, you need the following additional
@ -168,7 +169,7 @@ USERS AND GROUPS:
even in the very early boot stages, where no other databases even in the very early boot stages, where no other databases
and network are available: and network are available:
tty, dialout, kmem, video, audio, lp, cdrom, tape, disk audio, cdrom, dialout, disk, input, kmem, lp, tape, tty, video
During runtime, the journal daemon requires the During runtime, the journal daemon requires the
"systemd-journal" system group to exist. New journal files will "systemd-journal" system group to exist. New journal files will
@ -187,16 +188,16 @@ USERS AND GROUPS:
exist. During execution this network facing service will drop exist. During execution this network facing service will drop
privileges and assume this uid/gid for security reasons. privileges and assume this uid/gid for security reasons.
Similar, the NTP daemon requires the "systemd-timesync" system Similarly, the NTP daemon requires the "systemd-timesync" system
user and group to exist. user and group to exist.
Similar, the network management daemon requires the Similarly, the network management daemon requires the
"systemd-network" system user and group to exist. "systemd-network" system user and group to exist.
Similar, the name resolution daemon requires the Similarly, the name resolution daemon requires the
"systemd-resolve" system user and group to exist. "systemd-resolve" system user and group to exist.
Similar, the kdbus dbus1 proxy daemon requires the Similarly, the kdbus dbus1 proxy daemon requires the
"systemd-bus-proxy" system user and group to exist. "systemd-bus-proxy" system user and group to exist.
WARNINGS: WARNINGS:

112
TODO
View File

@ -4,24 +4,12 @@ Bugfixes:
* Should systemctl status \* work on all unit types, not just .service? * Should systemctl status \* work on all unit types, not just .service?
* enabling an instance unit creates a pointless link, and
the unit will be started with getty@getty.service:
$ systemctl enable getty@.service
ln -s '/usr/lib/systemd/system/getty@.service' '/etc/systemd/system/getty.target.wants/getty@.service'
* Dangling symlinks of .automount unit files in .wants/ directories, set up * Dangling symlinks of .automount unit files in .wants/ directories, set up
automount points even when the original .automount file did not exist automount points even when the original .automount file did not exist
anymore. Only the .mount unit was still around. anymore. Only the .mount unit was still around.
* properly handle .mount unit state tracking when two mount points are stacked one on top of another on the exact same mount point. * properly handle .mount unit state tracking when two mount points are stacked one on top of another on the exact same mount point.
* shorten the message to sane length:
Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory. See system logs and 'systemctl status display-manager.service' for details.
* sd_bus_unref() is broken regarding self-references and "pseudo thread-safety".
See the comment in sd_bus_unref() for more..
External: External:
* Fedora: when installing fedora with yum --installroot /var/run is a directory, not a symlink * Fedora: when installing fedora with yum --installroot /var/run is a directory, not a symlink
https://bugzilla.redhat.com/show_bug.cgi?id=975864 https://bugzilla.redhat.com/show_bug.cgi?id=975864
@ -30,8 +18,29 @@ External:
* Fedora: post FPC ticket to move add %tmpfiles_create to the packaging guidelines * Fedora: post FPC ticket to move add %tmpfiles_create to the packaging guidelines
* Fedora: move kernel image to /usr/lib/modules/, kernel-install will take care of populating /boot
Features: Features:
* new component "systemd-first-boot" which asks for locale, timezone,
root password on first boot if the configuration for that has not
been provisioned yet. Similar in style to what the distros have, but
minimalist, text-only /dev/console stuff.
* Add a new verb "systemctl top"
* order OnCalendar timer units after timer-sync.target if DefaultDependencies=no so that we don't trigger them prematurely
* refuse mounting on symlinks
* logind: allow users to kill or lock their own sessions
* support empty /etc boots nicely:
- nspawn/gpt-generator: introduce new gpt partition type for /usr
- nspawn: add --mode=auto,stateful,stateless,volatile
- fstab-generator: support auot/stateful/stateless/volatile on the kernel cmdline, too
- fstab-generator: add support for usr= in addition to root= on the kernel cmdline
* generator that automatically discovers btrfs subvolumes, identifies their purpose based on some xattr on them. * generator that automatically discovers btrfs subvolumes, identifies their purpose based on some xattr on them.
* support setting empty environment variables with Environment= and EnvironmentFile= * support setting empty environment variables with Environment= and EnvironmentFile=
@ -41,26 +50,20 @@ Features:
* timer units: actually add extra delays to timer units with high AccuracySec values, don't start them already when we are awake... * timer units: actually add extra delays to timer units with high AccuracySec values, don't start them already when we are awake...
* timesyncd: * timesyncd - hookup with networkd: NTP servers from dhcp
- hookup with networkd: NTP servers from dhcp
* a way for container managers to turn off getty starting via $container_headless= or so... * a way for container managers to turn off getty starting via $container_headless= or so...
* figure out a nice way how we can let the admin know what child/sibling unit causes cgroup membership for a specific unit * figure out a nice way how we can let the admin know what child/sibling unit causes cgroup membership for a specific unit
* add a kernel command line option to enable the debug shell
* journalctl: add the ability to look for the most recent process of a binary. journalctl /usr/bin/X11 --pid=-1 or so... * journalctl: add the ability to look for the most recent process of a binary. journalctl /usr/bin/X11 --pid=-1 or so...
* set NOTIFY_SOCKET also for control processes * set NOTIFY_SOCKET also for control processes
* drop parsing of chkconfig header lines from service.c
* mount_cgroup_controllers(): symlinks need to get the label applied * mount_cgroup_controllers(): symlinks need to get the label applied
* For timer units: add some mechanisms so that timer units that trigger immediately on boot do not have the services they run added to the initial transaction and thus confuse Type=idle. * For timer units: add some mechanisms so that timer units that trigger immediately on boot do not have the services
they run added to the initial transaction and thus confuse Type=idle.
* Add RPM macros for registering/unregistering binfmt drop-ins
* Add timeout to early-boot, and shut down the system if it is hit. Solves the laptop-in-bag problem and is useful for embedded cases * Add timeout to early-boot, and shut down the system if it is hit. Solves the laptop-in-bag problem and is useful for embedded cases
@ -86,10 +89,6 @@ Features:
do not have to open it to know that it is not interesting for us, for do not have to open it to know that it is not interesting for us, for
the most common operations. the most common operations.
* support transient mount units
* add an "input" group to udev logic and add all input devices to it
* add generator that pulls in systemd-network from containers when * add generator that pulls in systemd-network from containers when
CAP_NET_ADMIN is set, more than the loopback device is defined, even CAP_NET_ADMIN is set, more than the loopback device is defined, even
when it is otherwise off when it is otherwise off
@ -223,12 +222,6 @@ Features:
- add 'set -e' to scripts in test/ - add 'set -e' to scripts in test/
- make stuff in test/ work with separate output dir - make stuff in test/ work with separate output dir
* systemctl delete x.snapshot leaves no trace in logs (at least at default level).
* make the coredump collector tool move itself into the user's cgroup
so that the coredump is properly written to the user's own journal
file.
* seems that when we follow symlinks to units we prefer the symlink * seems that when we follow symlinks to units we prefer the symlink
destination path over /etc and /usr. We should not do that. Instead destination path over /etc and /usr. We should not do that. Instead
/etc should always override /run+/usr and also any symlink /etc should always override /run+/usr and also any symlink
@ -266,8 +259,6 @@ Features:
* use "log level" rather than "log priority" everywhere * use "log level" rather than "log priority" everywhere
* timedate: have global on/off switches for auto-time (NTP), and auto-timezone that connman can subscribe to.
* merge unit_kill_common() and unit_kill_context() * merge unit_kill_common() and unit_kill_context()
* introduce ExecCondition= in services * introduce ExecCondition= in services
@ -374,7 +365,6 @@ Features:
about it. Should fix both to print nice actionable messages. about it. Should fix both to print nice actionable messages.
- print nice message from systemctl --failed if there are no entries shown, and hook that into ExecStartPre of rescue.service/emergency.service - print nice message from systemctl --failed if there are no entries shown, and hook that into ExecStartPre of rescue.service/emergency.service
- add new command to systemctl: "systemctl system-reexec" which reexecs as many daemons as virtually possible - add new command to systemctl: "systemctl system-reexec" which reexecs as many daemons as virtually possible
- systemctl enable: improve the success messages (i.e. more human readable, less shell-like)
- systemctl enable: fail if target to alias into does not exist? maybe show how many units are enabled afterwards? - systemctl enable: fail if target to alias into does not exist? maybe show how many units are enabled afterwards?
- systemctl: "Journal has been rotated since unit was started." message is misleading - systemctl: "Journal has been rotated since unit was started." message is misleading
- support "systemctl stop foobar@.service" to stop all units matching a certain template - support "systemctl stop foobar@.service" to stop all units matching a certain template
@ -385,14 +375,9 @@ Features:
* unit install: * unit install:
- "systemctl mask" should find all names by which a unit is accessible - "systemctl mask" should find all names by which a unit is accessible
(i.e. by scanning for symlinks to it) and link them all to /dev/null (i.e. by scanning for symlinks to it) and link them all to /dev/null
- "systemctl disable" of a unit instance removes all symlinks, but should
only remove the instance symlink (systemctl disable of a template
unit however should remove them all).
- systemctl list-unit-files should list generated files (and probably with a new state "generated" for them, or so) - systemctl list-unit-files should list generated files (and probably with a new state "generated" for them, or so)
- systemctl: maybe add "systemctl add-wants" or so... - systemctl: maybe add "systemctl add-wants" or so...
* deal with sendmail/postfix exclusivity
* timer units: * timer units:
- timer units should get the ability to trigger when: - timer units should get the ability to trigger when:
o CLOCK_REALTIME makes jumps (TFD_TIMER_CANCEL_ON_SET) o CLOCK_REALTIME makes jumps (TFD_TIMER_CANCEL_ON_SET)
@ -411,13 +396,6 @@ Features:
mode, it will never touch the RTC if the no reliable time source is active or the mode, it will never touch the RTC if the no reliable time source is active or the
user did not request anything like it. user did not request anything like it.
* libunwind support for coredump pattern hook, and includes this in
the message for coredumps. After all, libunwind is now capable to
unwind coredumps since a few weeks ago. This probably requires that
we have nice support for multi-line messages on display in
logs-show.c. Alternatively: use libelfutil, which seems to be the
better supported alternative.
* add libsystemd-password or so to query passwords during boot using the password agent logic * add libsystemd-password or so to query passwords during boot using the password agent logic
* If we show an error about a unit (such as not showing up) and it has no Description string, then show a description string generated form the reverse of unit_name_mangle(). * If we show an error about a unit (such as not showing up) and it has no Description string, then show a description string generated form the reverse of unit_name_mangle().
@ -426,19 +404,10 @@ Features:
* fedup: do not delete initrd on switch-root * fedup: do not delete initrd on switch-root
* fedup: generator * fedup: generator
* timedated: refuse time changes when NTP is on
* clean up date formatting and parsing so that all absolute/relative timestamps we format can also be parsed * clean up date formatting and parsing so that all absolute/relative timestamps we format can also be parsed
* on shutdown: move utmp, wall, audit logic all into PID 1 (or logind?), get rid of systemd-update-utmp-runlevel * on shutdown: move utmp, wall, audit logic all into PID 1 (or logind?), get rid of systemd-update-utmp-runlevel
* add "factory" instructions to setup an empty /etc + /var
- used to setup a new container from a shared /usr
- superset of tmpfiles model
- instructions shipped by packages and stored in /usr/lib/
- compose /etc/passwd and /etc/group, copy files
- able to create uid + gid used by packages, for file ownership
* make repeated alt-ctrl-del presses printing a dump, or even force a reboot without * make repeated alt-ctrl-del presses printing a dump, or even force a reboot without
waiting for the timeout waiting for the timeout
@ -464,21 +433,14 @@ Features:
* make timer units go away after they elapsed * make timer units go away after they elapsed
* http://lists.freedesktop.org/archives/systemd-devel/2012-September/006502.html
(network and remote-fs on shutdown)
* come up with a nice way to write queue/read_ahead_kb for a block device without interfering with readahead * come up with a nice way to write queue/read_ahead_kb for a block device without interfering with readahead
* move PID 1 segfaults to /var/lib/systemd/coredump? * move PID 1 segfaults to /var/lib/systemd/coredump?
* create /sbin/init symlinks from the build system * create /sbin/init symlinks from the build system
* Query Paul Moore about relabelling socket fds while they are open
* allow writing multiple conditions in unit files on one line * allow writing multiple conditions in unit files on one line
* explore multiple service instances per listening socket idea
* MountFlags=shared acts as MountFlags=slave right now. * MountFlags=shared acts as MountFlags=slave right now.
* drop PID 1 reloading, only do reexecing (difficult: Reload() * drop PID 1 reloading, only do reexecing (difficult: Reload()
@ -549,7 +511,6 @@ Features:
* when a bus name of a service disappears from the bus make sure to queue further activation requests * when a bus name of a service disappears from the bus make sure to queue further activation requests
* tmpfiles: * tmpfiles:
- check systemd-tmpfiles for selinux context hookup for mknod(), symlink() and similar
- apply "x" on "D" too (see patch from William Douglas) - apply "x" on "D" too (see patch from William Douglas)
* for services: do not set $HOME in services unless requested * for services: do not set $HOME in services unless requested
@ -588,8 +549,6 @@ Features:
- readahead: when bumping /sys readahead variable save mtime and compare later to detect changes - readahead: when bumping /sys readahead variable save mtime and compare later to detect changes
- readahead: make use of EXT4_IOC_MOVE_EXT, as used by http://e4rat.sourceforge.net/ - readahead: make use of EXT4_IOC_MOVE_EXT, as used by http://e4rat.sourceforge.net/
* add support for /bin/mount -s
* GC unreferenced jobs (such as .device jobs) * GC unreferenced jobs (such as .device jobs)
* write blog stories about: * write blog stories about:
@ -615,8 +574,6 @@ Features:
* allow port=0 in .socket units * allow port=0 in .socket units
* support systemd.mask= on the kernel command line.
* recreate systemd's D-Bus private socket file on SIGUSR2 * recreate systemd's D-Bus private socket file on SIGUSR2
* Support --test based on current system state * Support --test based on current system state
@ -660,12 +617,11 @@ Features:
- add reduced [Link] support to .network files - add reduced [Link] support to .network files
- add Scope= parsing option for [Network] - add Scope= parsing option for [Network]
- properly handle routerless dhcp leases - properly handle routerless dhcp leases
- set lifetime on the address acquired from dhcp
- patch kernel to support module alias for tunnel device (ipip/sit/gre),
then remove remove libkmod dependency and CAP_SYS_MODULE
- add veth netdev support (c.f. http://shorewall.net/bridge-Shorewall-perl.html#veth) - add veth netdev support (c.f. http://shorewall.net/bridge-Shorewall-perl.html#veth)
- add tun/tap netdev support - add tun/tap netdev support
- add more attribute support for SIT tunnel - add more attribute support for SIT tunnel
- make metric of routes configurable
- work with non-ethernet devices
* networkd-wait-online: * networkd-wait-online:
- make operstates to wait for configurable? - make operstates to wait for configurable?
@ -675,6 +631,22 @@ Features:
- export timezone information - export timezone information
- FORCERENEW - FORCERENEW
* dhcp6:
- add functions to set previously stored IPv6 addresses on startup and get
them at shutdown; store them in client->ia_na
- write more test cases
- implement and do duplicate address detection, see rfc 4862, 5.4.
- implement reconfigure support, see 5.3., 15.11. and 22.20.
- implement information request, see 1.2. and 18.1.5.
- implement support for temporary adressess (IA_TA)
- implement elapsed time option
- implement dhcpv6 authentication
- investigate the usefulness of Confirm messages; i.e. are there any
situations where the link changes without any loss in carrier detection
or interface down
- some servers don't do rapid commit without a filled in IA_NA, verify
this behavior
External: External:
* dbus: * dbus:

View File

@ -49,6 +49,30 @@
*/ */
#undef HAVE_DECL_GETTID #undef HAVE_DECL_GETTID
/* Define to 1 if you have the declaration of `IFLA_BOND_AD_INFO', and to 0 if
you don't. */
#undef HAVE_DECL_IFLA_BOND_AD_INFO
/* Define to 1 if you have the declaration of `IFLA_BRIDGE_VLAN_INFO', and to
0 if you don't. */
#undef HAVE_DECL_IFLA_BRIDGE_VLAN_INFO
/* Define to 1 if you have the declaration of
`IFLA_IPTUN_6RD_RELAY_PREFIXLEN', and to 0 if you don't. */
#undef HAVE_DECL_IFLA_IPTUN_6RD_RELAY_PREFIXLEN
/* Define to 1 if you have the declaration of `IFLA_PHYS_PORT_ID', and to 0 if
you don't. */
#undef HAVE_DECL_IFLA_PHYS_PORT_ID
/* Define to 1 if you have the declaration of `IFLA_VLAN_PROTOCOL', and to 0
if you don't. */
#undef HAVE_DECL_IFLA_VLAN_PROTOCOL
/* Define to 1 if you have the declaration of `IFLA_VXLAN_LOCAL6', and to 0 if
you don't. */
#undef HAVE_DECL_IFLA_VXLAN_LOCAL6
/* Define to 1 if you have the declaration of `LO_FLAGS_PARTSCAN', and to 0 if /* Define to 1 if you have the declaration of `LO_FLAGS_PARTSCAN', and to 0 if
you don't. */ you don't. */
#undef HAVE_DECL_LO_FLAGS_PARTSCAN #undef HAVE_DECL_LO_FLAGS_PARTSCAN
@ -68,6 +92,12 @@
/* Define to 1 if you have the <dlfcn.h> header file. */ /* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H #undef HAVE_DLFCN_H
/* ELFUTILS available */
#undef HAVE_ELFUTILS
/* Define to 1 if you have the <elfutils/libdwfl.h> header file. */
#undef HAVE_ELFUTILS_LIBDWFL_H
/* Define to 1 if you have the `fanotify_init' function. */ /* Define to 1 if you have the `fanotify_init' function. */
#undef HAVE_FANOTIFY_INIT #undef HAVE_FANOTIFY_INIT
@ -116,6 +146,9 @@
/* Define if libcryptsetup is available */ /* Define if libcryptsetup is available */
#undef HAVE_LIBCRYPTSETUP #undef HAVE_LIBCRYPTSETUP
/* Define to 1 if you have the `dw' library (-ldw). */
#undef HAVE_LIBDW
/* Define to 1 if you have the <linux/btrfs.h> header file. */ /* Define to 1 if you have the <linux/btrfs.h> header file. */
#undef HAVE_LINUX_BTRFS_H #undef HAVE_LINUX_BTRFS_H

470
configure vendored
View File

@ -1,6 +1,6 @@
#! /bin/sh #! /bin/sh
# Guess values for system-dependent variables and create Makefiles. # Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for systemd 214. # Generated by GNU Autoconf 2.69 for systemd 215.
# #
# Report bugs to <http://bugs.freedesktop.org/enter_bug.cgi?product=systemd>. # Report bugs to <http://bugs.freedesktop.org/enter_bug.cgi?product=systemd>.
# #
@ -591,8 +591,8 @@ MAKEFLAGS=
# Identity of this package. # Identity of this package.
PACKAGE_NAME='systemd' PACKAGE_NAME='systemd'
PACKAGE_TARNAME='systemd' PACKAGE_TARNAME='systemd'
PACKAGE_VERSION='214' PACKAGE_VERSION='215'
PACKAGE_STRING='systemd 214' PACKAGE_STRING='systemd 215'
PACKAGE_BUGREPORT='http://bugs.freedesktop.org/enter_bug.cgi?product=systemd' PACKAGE_BUGREPORT='http://bugs.freedesktop.org/enter_bug.cgi?product=systemd'
PACKAGE_URL='http://www.freedesktop.org/wiki/Software/systemd' PACKAGE_URL='http://www.freedesktop.org/wiki/Software/systemd'
@ -652,6 +652,7 @@ ENABLE_TESTS_FALSE
ENABLE_TESTS_TRUE ENABLE_TESTS_TRUE
ENABLE_GTK_DOC_TESTS_FALSE ENABLE_GTK_DOC_TESTS_FALSE
ENABLE_GTK_DOC_TESTS_TRUE ENABLE_GTK_DOC_TESTS_TRUE
TTY_GID
HAVE_SYSV_COMPAT_FALSE HAVE_SYSV_COMPAT_FALSE
HAVE_SYSV_COMPAT_TRUE HAVE_SYSV_COMPAT_TRUE
M4_DEFINES M4_DEFINES
@ -710,6 +711,8 @@ ENABLE_BACKLIGHT_FALSE
ENABLE_BACKLIGHT_TRUE ENABLE_BACKLIGHT_TRUE
ENABLE_RANDOMSEED_FALSE ENABLE_RANDOMSEED_FALSE
ENABLE_RANDOMSEED_TRUE ENABLE_RANDOMSEED_TRUE
ENABLE_SYSUSERS_FALSE
ENABLE_SYSUSERS_TRUE
ENABLE_TMPFILES_FALSE ENABLE_TMPFILES_FALSE
ENABLE_TMPFILES_TRUE ENABLE_TMPFILES_TRUE
ENABLE_QUOTACHECK_FALSE ENABLE_QUOTACHECK_FALSE
@ -738,6 +741,9 @@ HAVE_LIBCRYPTSETUP_FALSE
HAVE_LIBCRYPTSETUP_TRUE HAVE_LIBCRYPTSETUP_TRUE
LIBCRYPTSETUP_LIBS LIBCRYPTSETUP_LIBS
LIBCRYPTSETUP_CFLAGS LIBCRYPTSETUP_CFLAGS
HAVE_ELFUTILS_FALSE
HAVE_ELFUTILS_TRUE
ELFUTILS_LIBS
AUDIT_LIBS AUDIT_LIBS
HAVE_GCRYPT_FALSE HAVE_GCRYPT_FALSE
HAVE_GCRYPT_TRUE HAVE_GCRYPT_TRUE
@ -885,6 +891,7 @@ INTLTOOL_EXTRACT
INTLTOOL_MERGE INTLTOOL_MERGE
INTLTOOL_UPDATE INTLTOOL_UPDATE
USE_NLS USE_NLS
intltool_found
OTOOL64 OTOOL64
OTOOL OTOOL
LIPO LIPO
@ -1044,6 +1051,7 @@ with_smack_run_label
enable_gcrypt enable_gcrypt
with_libgcrypt_prefix with_libgcrypt_prefix
enable_audit enable_audit
enable_elfutils
enable_libcryptsetup enable_libcryptsetup
enable_qrencode enable_qrencode
enable_microhttpd enable_microhttpd
@ -1054,6 +1062,7 @@ enable_readahead
enable_bootchart enable_bootchart
enable_quotacheck enable_quotacheck
enable_tmpfiles enable_tmpfiles
enable_sysusers
enable_randomseed enable_randomseed
enable_backlight enable_backlight
enable_rfkill enable_rfkill
@ -1682,7 +1691,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing. # Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh. # This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF cat <<_ACEOF
\`configure' configures systemd 214 to adapt to many kinds of systems. \`configure' configures systemd 215 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]... Usage: $0 [OPTION]... [VAR=VALUE]...
@ -1752,7 +1761,7 @@ fi
if test -n "$ac_init_help"; then if test -n "$ac_init_help"; then
case $ac_init_help in case $ac_init_help in
short | recursive ) echo "Configuration of systemd 214:";; short | recursive ) echo "Configuration of systemd 215:";;
esac esac
cat <<\_ACEOF cat <<\_ACEOF
@ -1802,6 +1811,7 @@ Optional Features:
--disable-smack Disable optional SMACK support --disable-smack Disable optional SMACK support
--disable-gcrypt Disable optional GCRYPT support --disable-gcrypt Disable optional GCRYPT support
--disable-audit Disable optional AUDIT support --disable-audit Disable optional AUDIT support
--disable-elfutils Disable optional ELFUTILS support
--disable-libcryptsetup disable libcryptsetup tools --disable-libcryptsetup disable libcryptsetup tools
--disable-qrencode disable qrencode support --disable-qrencode disable qrencode support
--disable-microhttpd disable microhttpd support --disable-microhttpd disable microhttpd support
@ -1812,6 +1822,7 @@ Optional Features:
--disable-bootchart disable bootchart tool --disable-bootchart disable bootchart tool
--disable-quotacheck disable quotacheck tools --disable-quotacheck disable quotacheck tools
--disable-tmpfiles disable tmpfiles support --disable-tmpfiles disable tmpfiles support
--disable-sysusers disable sysusers support
--disable-randomseed disable randomseed tools --disable-randomseed disable randomseed tools
--disable-backlight disable backlight tools --disable-backlight disable backlight tools
--disable-rfkill disable rfkill tools --disable-rfkill disable rfkill tools
@ -2029,7 +2040,7 @@ fi
test -n "$ac_init_help" && exit $ac_status test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then if $ac_init_version; then
cat <<\_ACEOF cat <<\_ACEOF
systemd configure 214 systemd configure 215
generated by GNU Autoconf 2.69 generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc. Copyright (C) 2012 Free Software Foundation, Inc.
@ -2681,7 +2692,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake. running configure, to aid debugging if configure makes a mistake.
It was created by systemd $as_me 214, which was It was created by systemd $as_me 215, which was
generated by GNU Autoconf 2.69. Invocation command line was generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@ $ $0 $@
@ -5087,7 +5098,7 @@ fi
# Define the identity of the package. # Define the identity of the package.
PACKAGE='systemd' PACKAGE='systemd'
VERSION='214' VERSION='215'
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
@ -12606,6 +12617,60 @@ fi
# i18n stuff for the PolicyKit policy files # i18n stuff for the PolicyKit policy files
# Check whether intltool can be found, disable NLS otherwise
# Extract the first word of "intltool-merge", so it can be a program name with args.
set dummy intltool-merge; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_intltool_found+:} false; then :
$as_echo_n "(cached) " >&6
else
if test -n "$intltool_found"; then
ac_cv_prog_intltool_found="$intltool_found" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_prog_intltool_found="yes"
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
IFS=$as_save_IFS
test -z "$ac_cv_prog_intltool_found" && ac_cv_prog_intltool_found="no"
fi
fi
intltool_found=$ac_cv_prog_intltool_found
if test -n "$intltool_found"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $intltool_found" >&5
$as_echo "$intltool_found" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
if test x"$intltool_found" != xyes; then :
if test x"$enable_nls" = xyes; then :
as_fn_error $? "--enable-nls requested but intltool not found" "$LINENO" 5
else
if test x"$enable_nls" != xno; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling NLS support because intltool was not found" >&5
$as_echo "$as_me: WARNING: *** Disabling NLS support because intltool was not found" >&2;}
enable_nls=no
fi
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
$as_echo_n "checking whether NLS is requested... " >&6; } $as_echo_n "checking whether NLS is requested... " >&6; }
# Check whether --enable-nls was given. # Check whether --enable-nls was given.
@ -12619,6 +12684,9 @@ fi
$as_echo "$USE_NLS" >&6; } $as_echo "$USE_NLS" >&6; }
if test x"$enable_nls" != xno; then :
# intltoolize greps for '^(AC|IT)_PROG_INTLTOOL', so it needs to be on its own line
case "$am__api_version" in case "$am__api_version" in
@ -13185,6 +13253,16 @@ fi
fi
if test -z "$INTLTOOL_POLICY_RULE"; then :
# If intltool is not available, provide a dummy rule to fail generation of %.policy files with a meaningful error message
INTLTOOL_POLICY_RULE='%.policy: %.policy.in ; @echo " ITMRG " $@ && echo "*** intltool support required to build target $@" && false'
fi
GETTEXT_PACKAGE=systemd GETTEXT_PACKAGE=systemd
@ -15268,16 +15346,37 @@ $as_echo "$am_cv_python_pyexecdir" >&6; }
fi fi
if "$PYTHON" -c 'import lxml' 2>/dev/null; then : if test "x$PYTHON" != "x:"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for python lxml module" >&5
$as_echo_n "checking for python lxml module... " >&6; }
if "$PYTHON" -c 'import lxml' 2>/dev/null; then :
have_lxml=yes have_lxml=yes
else
have_lxml=no
fi fi
if test "$PYTHON" != : -a $have_lxml = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_lxml" >&5
$as_echo "$have_lxml" >&6; }
if test "x$have_lxml" = "xyes"; then :
have_python=yes have_python=yes
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** python support requires python-lxml module installed" >&5
$as_echo "$as_me: WARNING: *** python support requires python-lxml module installed" >&2;}
fi fi
fi fi
fi
if test "$have_python" != "yes"; then :
if test "$with_python" = "yes"; then :
as_fn_error $? "*** python support requested but python support not found" "$LINENO" 5
fi
if test "$with_python" != "no"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** python support not found, some documentation cannot be built" >&5
$as_echo "$as_me: WARNING: *** python support not found, some documentation cannot be built" >&2;}
fi
fi
if test "x$have_python" = "xyes"; then if test "x$have_python" = "xyes"; then
HAVE_PYTHON_TRUE= HAVE_PYTHON_TRUE=
HAVE_PYTHON_FALSE='#' HAVE_PYTHON_FALSE='#'
@ -15872,12 +15971,14 @@ _ACEOF
fi fi
done done
ac_fn_c_check_decl "$LINENO" "gettid" "ac_cv_have_decl_gettid" "#include <sys/types.h> ac_fn_c_check_decl "$LINENO" "gettid" "ac_cv_have_decl_gettid" "
#include <sys/types.h>
#include <unistd.h> #include <unistd.h>
#include <sys/mount.h> #include <sys/mount.h>
#include <fcntl.h> #include <fcntl.h>
#include <sched.h> #include <sched.h>
#include <linux/loop.h> #include <linux/loop.h>
" "
if test "x$ac_cv_have_decl_gettid" = xyes; then : if test "x$ac_cv_have_decl_gettid" = xyes; then :
ac_have_decl=1 ac_have_decl=1
@ -15888,12 +15989,14 @@ fi
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_GETTID $ac_have_decl #define HAVE_DECL_GETTID $ac_have_decl
_ACEOF _ACEOF
ac_fn_c_check_decl "$LINENO" "pivot_root" "ac_cv_have_decl_pivot_root" "#include <sys/types.h> ac_fn_c_check_decl "$LINENO" "pivot_root" "ac_cv_have_decl_pivot_root" "
#include <sys/types.h>
#include <unistd.h> #include <unistd.h>
#include <sys/mount.h> #include <sys/mount.h>
#include <fcntl.h> #include <fcntl.h>
#include <sched.h> #include <sched.h>
#include <linux/loop.h> #include <linux/loop.h>
" "
if test "x$ac_cv_have_decl_pivot_root" = xyes; then : if test "x$ac_cv_have_decl_pivot_root" = xyes; then :
ac_have_decl=1 ac_have_decl=1
@ -15904,12 +16007,14 @@ fi
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_PIVOT_ROOT $ac_have_decl #define HAVE_DECL_PIVOT_ROOT $ac_have_decl
_ACEOF _ACEOF
ac_fn_c_check_decl "$LINENO" "name_to_handle_at" "ac_cv_have_decl_name_to_handle_at" "#include <sys/types.h> ac_fn_c_check_decl "$LINENO" "name_to_handle_at" "ac_cv_have_decl_name_to_handle_at" "
#include <sys/types.h>
#include <unistd.h> #include <unistd.h>
#include <sys/mount.h> #include <sys/mount.h>
#include <fcntl.h> #include <fcntl.h>
#include <sched.h> #include <sched.h>
#include <linux/loop.h> #include <linux/loop.h>
" "
if test "x$ac_cv_have_decl_name_to_handle_at" = xyes; then : if test "x$ac_cv_have_decl_name_to_handle_at" = xyes; then :
ac_have_decl=1 ac_have_decl=1
@ -15920,12 +16025,14 @@ fi
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_NAME_TO_HANDLE_AT $ac_have_decl #define HAVE_DECL_NAME_TO_HANDLE_AT $ac_have_decl
_ACEOF _ACEOF
ac_fn_c_check_decl "$LINENO" "setns" "ac_cv_have_decl_setns" "#include <sys/types.h> ac_fn_c_check_decl "$LINENO" "setns" "ac_cv_have_decl_setns" "
#include <sys/types.h>
#include <unistd.h> #include <unistd.h>
#include <sys/mount.h> #include <sys/mount.h>
#include <fcntl.h> #include <fcntl.h>
#include <sched.h> #include <sched.h>
#include <linux/loop.h> #include <linux/loop.h>
" "
if test "x$ac_cv_have_decl_setns" = xyes; then : if test "x$ac_cv_have_decl_setns" = xyes; then :
ac_have_decl=1 ac_have_decl=1
@ -15936,12 +16043,14 @@ fi
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_SETNS $ac_have_decl #define HAVE_DECL_SETNS $ac_have_decl
_ACEOF _ACEOF
ac_fn_c_check_decl "$LINENO" "LO_FLAGS_PARTSCAN" "ac_cv_have_decl_LO_FLAGS_PARTSCAN" "#include <sys/types.h> ac_fn_c_check_decl "$LINENO" "LO_FLAGS_PARTSCAN" "ac_cv_have_decl_LO_FLAGS_PARTSCAN" "
#include <sys/types.h>
#include <unistd.h> #include <unistd.h>
#include <sys/mount.h> #include <sys/mount.h>
#include <fcntl.h> #include <fcntl.h>
#include <sched.h> #include <sched.h>
#include <linux/loop.h> #include <linux/loop.h>
" "
if test "x$ac_cv_have_decl_LO_FLAGS_PARTSCAN" = xyes; then : if test "x$ac_cv_have_decl_LO_FLAGS_PARTSCAN" = xyes; then :
ac_have_decl=1 ac_have_decl=1
@ -15954,6 +16063,134 @@ cat >>confdefs.h <<_ACEOF
_ACEOF _ACEOF
ac_fn_c_check_decl "$LINENO" "IFLA_PHYS_PORT_ID" "ac_cv_have_decl_IFLA_PHYS_PORT_ID" "
#include <inttypes.h>
#include <netinet/in.h>
#include <netinet/ether.h>
#include <linux/rtnetlink.h>
#include <net/if.h>
#include <linux/ip.h>
#include <linux/if_tunnel.h>
#include <linux/if_link.h>
#include <linux/if_bridge.h>
"
if test "x$ac_cv_have_decl_IFLA_PHYS_PORT_ID" = xyes; then :
ac_have_decl=1
else
ac_have_decl=0
fi
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_IFLA_PHYS_PORT_ID $ac_have_decl
_ACEOF
ac_fn_c_check_decl "$LINENO" "IFLA_BOND_AD_INFO" "ac_cv_have_decl_IFLA_BOND_AD_INFO" "
#include <inttypes.h>
#include <netinet/in.h>
#include <netinet/ether.h>
#include <linux/rtnetlink.h>
#include <net/if.h>
#include <linux/ip.h>
#include <linux/if_tunnel.h>
#include <linux/if_link.h>
#include <linux/if_bridge.h>
"
if test "x$ac_cv_have_decl_IFLA_BOND_AD_INFO" = xyes; then :
ac_have_decl=1
else
ac_have_decl=0
fi
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_IFLA_BOND_AD_INFO $ac_have_decl
_ACEOF
ac_fn_c_check_decl "$LINENO" "IFLA_VLAN_PROTOCOL" "ac_cv_have_decl_IFLA_VLAN_PROTOCOL" "
#include <inttypes.h>
#include <netinet/in.h>
#include <netinet/ether.h>
#include <linux/rtnetlink.h>
#include <net/if.h>
#include <linux/ip.h>
#include <linux/if_tunnel.h>
#include <linux/if_link.h>
#include <linux/if_bridge.h>
"
if test "x$ac_cv_have_decl_IFLA_VLAN_PROTOCOL" = xyes; then :
ac_have_decl=1
else
ac_have_decl=0
fi
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_IFLA_VLAN_PROTOCOL $ac_have_decl
_ACEOF
ac_fn_c_check_decl "$LINENO" "IFLA_VXLAN_LOCAL6" "ac_cv_have_decl_IFLA_VXLAN_LOCAL6" "
#include <inttypes.h>
#include <netinet/in.h>
#include <netinet/ether.h>
#include <linux/rtnetlink.h>
#include <net/if.h>
#include <linux/ip.h>
#include <linux/if_tunnel.h>
#include <linux/if_link.h>
#include <linux/if_bridge.h>
"
if test "x$ac_cv_have_decl_IFLA_VXLAN_LOCAL6" = xyes; then :
ac_have_decl=1
else
ac_have_decl=0
fi
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_IFLA_VXLAN_LOCAL6 $ac_have_decl
_ACEOF
ac_fn_c_check_decl "$LINENO" "IFLA_IPTUN_6RD_RELAY_PREFIXLEN" "ac_cv_have_decl_IFLA_IPTUN_6RD_RELAY_PREFIXLEN" "
#include <inttypes.h>
#include <netinet/in.h>
#include <netinet/ether.h>
#include <linux/rtnetlink.h>
#include <net/if.h>
#include <linux/ip.h>
#include <linux/if_tunnel.h>
#include <linux/if_link.h>
#include <linux/if_bridge.h>
"
if test "x$ac_cv_have_decl_IFLA_IPTUN_6RD_RELAY_PREFIXLEN" = xyes; then :
ac_have_decl=1
else
ac_have_decl=0
fi
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_IFLA_IPTUN_6RD_RELAY_PREFIXLEN $ac_have_decl
_ACEOF
ac_fn_c_check_decl "$LINENO" "IFLA_BRIDGE_VLAN_INFO" "ac_cv_have_decl_IFLA_BRIDGE_VLAN_INFO" "
#include <inttypes.h>
#include <netinet/in.h>
#include <netinet/ether.h>
#include <linux/rtnetlink.h>
#include <net/if.h>
#include <linux/ip.h>
#include <linux/if_tunnel.h>
#include <linux/if_link.h>
#include <linux/if_bridge.h>
"
if test "x$ac_cv_have_decl_IFLA_BRIDGE_VLAN_INFO" = xyes; then :
ac_have_decl=1
else
ac_have_decl=0
fi
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_IFLA_BRIDGE_VLAN_INFO $ac_have_decl
_ACEOF
# This makes sure pkg.m4 is available. # This makes sure pkg.m4 is available.
@ -17448,6 +17685,153 @@ else
fi fi
# ------------------------------------------------------------------------------
# Check whether --enable-elfutils was given.
if test "${enable_elfutils+set}" = set; then :
enableval=$enable_elfutils; case "${enableval}" in
yes) have_elfutils=yes ;;
no) have_elfutils=no ;;
*) as_fn_error $? "bad value ${enableval} for --disable-elfutils" "$LINENO" 5 ;;
esac
else
have_elfutils=auto
fi
if test "x${have_elfutils}" != xno ; then
for ac_header in elfutils/libdwfl.h
do :
ac_fn_c_check_header_mongrel "$LINENO" "elfutils/libdwfl.h" "ac_cv_header_elfutils_libdwfl_h" "$ac_includes_default"
if test "x$ac_cv_header_elfutils_libdwfl_h" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_ELFUTILS_LIBDWFL_H 1
_ACEOF
else
if test "x$have_elfutils" = xyes ; then
as_fn_error $? "*** ELFUTILS headers not found." "$LINENO" 5
fi
fi
done
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwfl_begin in -ldw" >&5
$as_echo_n "checking for dwfl_begin in -ldw... " >&6; }
if ${ac_cv_lib_dw_dwfl_begin+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-ldw $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char dwfl_begin ();
int
main ()
{
return dwfl_begin ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_dw_dwfl_begin=yes
else
ac_cv_lib_dw_dwfl_begin=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwfl_begin" >&5
$as_echo "$ac_cv_lib_dw_dwfl_begin" >&6; }
if test "x$ac_cv_lib_dw_dwfl_begin" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBDW 1
_ACEOF
LIBS="-ldw $LIBS"
else
if test "x$have_elfutils" = xyes ; then
as_fn_error $? "*** ELFUTILS libs not found." "$LINENO" 5
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwfl_core_file_attach in -ldw" >&5
$as_echo_n "checking for dwfl_core_file_attach in -ldw... " >&6; }
if ${ac_cv_lib_dw_dwfl_core_file_attach+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-ldw $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char dwfl_core_file_attach ();
int
main ()
{
return dwfl_core_file_attach ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_dw_dwfl_core_file_attach=yes
else
ac_cv_lib_dw_dwfl_core_file_attach=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwfl_core_file_attach" >&5
$as_echo "$ac_cv_lib_dw_dwfl_core_file_attach" >&6; }
if test "x$ac_cv_lib_dw_dwfl_core_file_attach" = xyes; then :
have_elfutils=yes
else
if test "x$have_elfutils" = xyes ; then
as_fn_error $? "*** ELFUTILS >= 158 is required." "$LINENO" 5
fi
fi
if test "x$have_elfutils" = xyes ; then
ELFUTILS_LIBS="-lelf -ldw"
$as_echo "#define HAVE_ELFUTILS 1" >>confdefs.h
else
have_elfutils=no
fi
else
ELFUTILS_LIBS=
fi
if test "$have_elfutils" = "yes"; then
HAVE_ELFUTILS_TRUE=
HAVE_ELFUTILS_FALSE='#'
else
HAVE_ELFUTILS_TRUE='#'
HAVE_ELFUTILS_FALSE=
fi
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
have_libcryptsetup=no have_libcryptsetup=no
# Check whether --enable-libcryptsetup was given. # Check whether --enable-libcryptsetup was given.
@ -17938,6 +18322,25 @@ else
fi fi
# ------------------------------------------------------------------------------
have_sysusers=no
# Check whether --enable-sysusers was given.
if test "${enable_sysusers+set}" = set; then :
enableval=$enable_sysusers;
fi
if test "x$enable_sysusers" != "xno"; then
have_sysusers=yes
fi
if test "$have_sysusers" = "yes"; then
ENABLE_SYSUSERS_TRUE=
ENABLE_SYSUSERS_FALSE='#'
else
ENABLE_SYSUSERS_TRUE='#'
ENABLE_SYSUSERS_FALSE=
fi
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
have_randomseed=no have_randomseed=no
# Check whether --enable-randomseed was given. # Check whether --enable-randomseed was given.
@ -18267,11 +18670,13 @@ if test "${enable_networkd+set}" = set; then :
enableval=$enable_networkd; enableval=$enable_networkd;
fi fi
if test "x$enable_networkd" != "xno"; then if test "x$enable_networkd" != "xno"; then :
$as_echo "#define ENABLE_NETWORKD 1" >>confdefs.h $as_echo "#define ENABLE_NETWORKD 1" >>confdefs.h
have_networkd=yes have_networkd=yes
fi fi
if test "x$have_networkd" = "xyes"; then if test "x$have_networkd" = "xyes"; then
ENABLE_NETWORKD_TRUE= ENABLE_NETWORKD_TRUE=
@ -19096,12 +19501,17 @@ fi
# Check whether --with-tty-gid was given. # Check whether --with-tty-gid was given.
if test "${with_tty_gid+set}" = set; then : if test "${with_tty_gid+set}" = set; then :
withval=$with_tty_gid; withval=$with_tty_gid; TTY_GID="$withval"
else
TTY_GID="5"
fi
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define TTY_GID $withval #define TTY_GID $TTY_GID
_ACEOF _ACEOF
fi
@ -19503,6 +19913,10 @@ if test -z "${HAVE_GCRYPT_TRUE}" && test -z "${HAVE_GCRYPT_FALSE}"; then
as_fn_error $? "conditional \"HAVE_GCRYPT\" was never defined. as_fn_error $? "conditional \"HAVE_GCRYPT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5 Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi fi
if test -z "${HAVE_ELFUTILS_TRUE}" && test -z "${HAVE_ELFUTILS_FALSE}"; then
as_fn_error $? "conditional \"HAVE_ELFUTILS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_LIBCRYPTSETUP_TRUE}" && test -z "${HAVE_LIBCRYPTSETUP_FALSE}"; then if test -z "${HAVE_LIBCRYPTSETUP_TRUE}" && test -z "${HAVE_LIBCRYPTSETUP_FALSE}"; then
as_fn_error $? "conditional \"HAVE_LIBCRYPTSETUP\" was never defined. as_fn_error $? "conditional \"HAVE_LIBCRYPTSETUP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5 Usually this means the macro was only invoked conditionally." "$LINENO" 5
@ -19543,6 +19957,10 @@ if test -z "${ENABLE_TMPFILES_TRUE}" && test -z "${ENABLE_TMPFILES_FALSE}"; then
as_fn_error $? "conditional \"ENABLE_TMPFILES\" was never defined. as_fn_error $? "conditional \"ENABLE_TMPFILES\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5 Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi fi
if test -z "${ENABLE_SYSUSERS_TRUE}" && test -z "${ENABLE_SYSUSERS_FALSE}"; then
as_fn_error $? "conditional \"ENABLE_SYSUSERS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_RANDOMSEED_TRUE}" && test -z "${ENABLE_RANDOMSEED_FALSE}"; then if test -z "${ENABLE_RANDOMSEED_TRUE}" && test -z "${ENABLE_RANDOMSEED_FALSE}"; then
as_fn_error $? "conditional \"ENABLE_RANDOMSEED\" was never defined. as_fn_error $? "conditional \"ENABLE_RANDOMSEED\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5 Usually this means the macro was only invoked conditionally." "$LINENO" 5
@ -20032,7 +20450,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their # report actual input values of CONFIG_FILES etc. instead of their
# values after options handling. # values after options handling.
ac_log=" ac_log="
This file was extended by systemd $as_me 214, which was This file was extended by systemd $as_me 215, which was
generated by GNU Autoconf 2.69. Invocation command line was generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES CONFIG_FILES = $CONFIG_FILES
@ -20099,7 +20517,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\ ac_cs_version="\\
systemd config.status 214 systemd config.status 215
configured by $0, generated by GNU Autoconf 2.69, configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\" with options \\"\$ac_cs_config\\"
@ -21909,12 +22327,14 @@ fi
MICROHTTPD: ${have_microhttpd} MICROHTTPD: ${have_microhttpd}
CHKCONFIG: ${have_chkconfig} CHKCONFIG: ${have_chkconfig}
GNUTLS: ${have_gnutls} GNUTLS: ${have_gnutls}
ELFUTILS: ${have_elfutils}
binfmt: ${have_binfmt} binfmt: ${have_binfmt}
vconsole: ${have_vconsole} vconsole: ${have_vconsole}
readahead: ${have_readahead} readahead: ${have_readahead}
bootchart: ${have_bootchart} bootchart: ${have_bootchart}
quotacheck: ${have_quotacheck} quotacheck: ${have_quotacheck}
tmpfiles: ${have_tmpfiles} tmpfiles: ${have_tmpfiles}
sysusers: ${have_sysusers}
randomseed: ${have_randomseed} randomseed: ${have_randomseed}
backlight: ${have_backlight} backlight: ${have_backlight}
rfkill: ${have_rfkill} rfkill: ${have_rfkill}
@ -21974,6 +22394,7 @@ fi
Extra start script: ${RC_LOCAL_SCRIPT_PATH_START} Extra start script: ${RC_LOCAL_SCRIPT_PATH_START}
Extra stop script: ${RC_LOCAL_SCRIPT_PATH_STOP} Extra stop script: ${RC_LOCAL_SCRIPT_PATH_STOP}
Debug shell: ${SUSHELL} @ ${DEBUGTTY} Debug shell: ${SUSHELL} @ ${DEBUGTTY}
TTY GID: ${TTY_GID}
Maximum System UID: ${SYSTEM_UID_MAX} Maximum System UID: ${SYSTEM_UID_MAX}
Maximum System GID: ${SYSTEM_GID_MAX} Maximum System GID: ${SYSTEM_GID_MAX}
@ -22001,12 +22422,14 @@ $as_echo "
MICROHTTPD: ${have_microhttpd} MICROHTTPD: ${have_microhttpd}
CHKCONFIG: ${have_chkconfig} CHKCONFIG: ${have_chkconfig}
GNUTLS: ${have_gnutls} GNUTLS: ${have_gnutls}
ELFUTILS: ${have_elfutils}
binfmt: ${have_binfmt} binfmt: ${have_binfmt}
vconsole: ${have_vconsole} vconsole: ${have_vconsole}
readahead: ${have_readahead} readahead: ${have_readahead}
bootchart: ${have_bootchart} bootchart: ${have_bootchart}
quotacheck: ${have_quotacheck} quotacheck: ${have_quotacheck}
tmpfiles: ${have_tmpfiles} tmpfiles: ${have_tmpfiles}
sysusers: ${have_sysusers}
randomseed: ${have_randomseed} randomseed: ${have_randomseed}
backlight: ${have_backlight} backlight: ${have_backlight}
rfkill: ${have_rfkill} rfkill: ${have_rfkill}
@ -22066,6 +22489,7 @@ $as_echo "
Extra start script: ${RC_LOCAL_SCRIPT_PATH_START} Extra start script: ${RC_LOCAL_SCRIPT_PATH_START}
Extra stop script: ${RC_LOCAL_SCRIPT_PATH_STOP} Extra stop script: ${RC_LOCAL_SCRIPT_PATH_STOP}
Debug shell: ${SUSHELL} @ ${DEBUGTTY} Debug shell: ${SUSHELL} @ ${DEBUGTTY}
TTY GID: ${TTY_GID}
Maximum System UID: ${SYSTEM_UID_MAX} Maximum System UID: ${SYSTEM_UID_MAX}
Maximum System GID: ${SYSTEM_GID_MAX} Maximum System GID: ${SYSTEM_GID_MAX}

View File

@ -20,7 +20,7 @@
AC_PREREQ([2.64]) AC_PREREQ([2.64])
AC_INIT([systemd], AC_INIT([systemd],
[214], [215],
[http://bugs.freedesktop.org/enter_bug.cgi?product=systemd], [http://bugs.freedesktop.org/enter_bug.cgi?product=systemd],
[systemd], [systemd],
[http://www.freedesktop.org/wiki/Software/systemd]) [http://www.freedesktop.org/wiki/Software/systemd])
@ -49,7 +49,29 @@ AS_IF([test "x$enable_static" = "xyes"], [AC_MSG_ERROR([--enable-static is not s
AS_IF([test "x$enable_largefile" = "xno"], [AC_MSG_ERROR([--disable-largefile is not supported by systemd])]) AS_IF([test "x$enable_largefile" = "xno"], [AC_MSG_ERROR([--disable-largefile is not supported by systemd])])
# i18n stuff for the PolicyKit policy files # i18n stuff for the PolicyKit policy files
# Check whether intltool can be found, disable NLS otherwise
AC_CHECK_PROG(intltool_found, [intltool-merge], [yes], [no])
AS_IF([test x"$intltool_found" != xyes],
[AS_IF([test x"$enable_nls" = xyes],
[AC_MSG_ERROR([--enable-nls requested but intltool not found])],
[AS_IF([test x"$enable_nls" != xno],
[AC_MSG_WARN([*** Disabling NLS support because intltool was not found])
enable_nls=no])
])
])
AM_NLS
AS_IF([test x"$enable_nls" != xno], [
# intltoolize greps for '^(AC|IT)_PROG_INTLTOOL', so it needs to be on its own line
IT_PROG_INTLTOOL([0.40.0]) IT_PROG_INTLTOOL([0.40.0])
])
AS_IF([test -z "$INTLTOOL_POLICY_RULE"], [
# If intltool is not available, provide a dummy rule to fail generation of %.policy files with a meaningful error message
INTLTOOL_POLICY_RULE='%.policy: %.policy.in ; @echo " ITMRG " $@ && echo "*** intltool support required to build target $@" && false'
AC_SUBST(INTLTOOL_POLICY_RULE)
])
GETTEXT_PACKAGE=systemd GETTEXT_PACKAGE=systemd
AC_SUBST(GETTEXT_PACKAGE) AC_SUBST(GETTEXT_PACKAGE)
@ -216,9 +238,21 @@ AC_ARG_WITH([python],
have_lxml=no have_lxml=no
AS_IF([test "x$with_python" != "xno"], [ AS_IF([test "x$with_python" != "xno"], [
AM_PATH_PYTHON(,, [:]) AM_PATH_PYTHON(,, [:])
AS_IF(["$PYTHON" -c 'import lxml' 2>/dev/null], [have_lxml=yes], [have_lxml=no]) AS_IF([test "x$PYTHON" != "x:"], [
AS_IF([test "$PYTHON" != : -a $have_lxml = yes], [have_python=yes]) AC_MSG_CHECKING([for python lxml module])
AS_IF(["$PYTHON" -c 'import lxml' 2>/dev/null], [have_lxml=yes])
AC_MSG_RESULT([$have_lxml])
AS_IF([test "x$have_lxml" = "xyes"], [have_python=yes],
[AC_MSG_WARN([*** python support requires python-lxml module installed])])
])
]) ])
AS_IF([test "$have_python" != "yes"], [
AS_IF([test "$with_python" = "yes"],
[AC_MSG_ERROR([*** python support requested but python support not found])])
AS_IF([test "$with_python" != "no"],
[AC_MSG_WARN([*** python support not found, some documentation cannot be built])])
])
AM_CONDITIONAL([HAVE_PYTHON], [test "x$have_python" = "xyes"]) AM_CONDITIONAL([HAVE_PYTHON], [test "x$have_python" = "xyes"])
AS_IF([test "x$PYTHON_BINARY" = "x"], AS_IF([test "x$PYTHON_BINARY" = "x"],
[AS_IF([test "x$have_python" = "xyes"], [AS_IF([test "x$have_python" = "xyes"],
@ -266,12 +300,33 @@ LIBS="$save_LIBS"
AC_CHECK_FUNCS([fanotify_init fanotify_mark]) AC_CHECK_FUNCS([fanotify_init fanotify_mark])
AC_CHECK_FUNCS([__secure_getenv secure_getenv]) AC_CHECK_FUNCS([__secure_getenv secure_getenv])
AC_CHECK_DECLS([gettid, pivot_root, name_to_handle_at, setns, LO_FLAGS_PARTSCAN], [], [], [[#include <sys/types.h> AC_CHECK_DECLS([gettid, pivot_root, name_to_handle_at, setns, LO_FLAGS_PARTSCAN],
[], [], [[
#include <sys/types.h>
#include <unistd.h> #include <unistd.h>
#include <sys/mount.h> #include <sys/mount.h>
#include <fcntl.h> #include <fcntl.h>
#include <sched.h> #include <sched.h>
#include <linux/loop.h>]]) #include <linux/loop.h>
]])
AC_CHECK_DECLS([IFLA_PHYS_PORT_ID,
IFLA_BOND_AD_INFO,
IFLA_VLAN_PROTOCOL,
IFLA_VXLAN_LOCAL6,
IFLA_IPTUN_6RD_RELAY_PREFIXLEN,
IFLA_BRIDGE_VLAN_INFO],
[], [], [[
#include <inttypes.h>
#include <netinet/in.h>
#include <netinet/ether.h>
#include <linux/rtnetlink.h>
#include <net/if.h>
#include <linux/ip.h>
#include <linux/if_tunnel.h>
#include <linux/if_link.h>
#include <linux/if_bridge.h>
]])
# This makes sure pkg.m4 is available. # This makes sure pkg.m4 is available.
m4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config]) m4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
@ -626,6 +681,52 @@ else
fi fi
AC_SUBST(AUDIT_LIBS) AC_SUBST(AUDIT_LIBS)
# ------------------------------------------------------------------------------
AC_ARG_ENABLE([elfutils],
AS_HELP_STRING([--disable-elfutils],[Disable optional ELFUTILS support]),
[case "${enableval}" in
yes) have_elfutils=yes ;;
no) have_elfutils=no ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-elfutils) ;;
esac],
[have_elfutils=auto])
if test "x${have_elfutils}" != xno ; then
AC_CHECK_HEADERS(
[elfutils/libdwfl.h],
[],
[if test "x$have_elfutils" = xyes ; then
AC_MSG_ERROR([*** ELFUTILS headers not found.])
fi])
AC_CHECK_LIB(
[dw],
[dwfl_begin],
[],
[if test "x$have_elfutils" = xyes ; then
AC_MSG_ERROR([*** ELFUTILS libs not found.])
fi])
AC_CHECK_LIB(
[dw],
[dwfl_core_file_attach],
[have_elfutils=yes],
[if test "x$have_elfutils" = xyes ; then
AC_MSG_ERROR([*** ELFUTILS >= 158 is required.])
fi])
if test "x$have_elfutils" = xyes ; then
ELFUTILS_LIBS="-lelf -ldw"
AC_DEFINE(HAVE_ELFUTILS, 1, [ELFUTILS available])
else
have_elfutils=no
fi
else
ELFUTILS_LIBS=
fi
AC_SUBST(ELFUTILS_LIBS)
AM_CONDITIONAL(HAVE_ELFUTILS, [test "$have_elfutils" = "yes"])
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
have_libcryptsetup=no have_libcryptsetup=no
AC_ARG_ENABLE(libcryptsetup, AS_HELP_STRING([--disable-libcryptsetup], [disable libcryptsetup tools])) AC_ARG_ENABLE(libcryptsetup, AS_HELP_STRING([--disable-libcryptsetup], [disable libcryptsetup tools]))
@ -722,6 +823,14 @@ if test "x$enable_tmpfiles" != "xno"; then
fi fi
AM_CONDITIONAL(ENABLE_TMPFILES, [test "$have_tmpfiles" = "yes"]) AM_CONDITIONAL(ENABLE_TMPFILES, [test "$have_tmpfiles" = "yes"])
# ------------------------------------------------------------------------------
have_sysusers=no
AC_ARG_ENABLE(sysusers, AS_HELP_STRING([--disable-sysusers], [disable sysusers support]))
if test "x$enable_sysusers" != "xno"; then
have_sysusers=yes
fi
AM_CONDITIONAL(ENABLE_SYSUSERS, [test "$have_sysusers" = "yes"])
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
have_randomseed=no have_randomseed=no
AC_ARG_ENABLE(randomseed, AS_HELP_STRING([--disable-randomseed], [disable randomseed tools])) AC_ARG_ENABLE(randomseed, AS_HELP_STRING([--disable-randomseed], [disable randomseed tools]))
@ -870,10 +979,10 @@ AC_SUBST(DNS_SERVERS)
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
have_networkd=no have_networkd=no
AC_ARG_ENABLE(networkd, AS_HELP_STRING([--disable-networkd], [disable networkd])) AC_ARG_ENABLE(networkd, AS_HELP_STRING([--disable-networkd], [disable networkd]))
if test "x$enable_networkd" != "xno"; then AS_IF([test "x$enable_networkd" != "xno"], [
AC_DEFINE(ENABLE_NETWORKD, 1, [Define if networkd support is to be enabled]) AC_DEFINE(ENABLE_NETWORKD, 1, [Define if networkd support is to be enabled])
have_networkd=yes have_networkd=yes
fi ])
AM_CONDITIONAL(ENABLE_NETWORKD, [test "x$have_networkd" = "xyes"]) AM_CONDITIONAL(ENABLE_NETWORKD, [test "x$have_networkd" = "xyes"])
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
@ -1042,8 +1151,11 @@ AM_CONDITIONAL(HAVE_SYSV_COMPAT, test "$SYSTEM_SYSV_COMPAT" = "yes")
AC_ARG_WITH([tty-gid], AC_ARG_WITH([tty-gid],
[AS_HELP_STRING([--with-tty-gid=GID], [AS_HELP_STRING([--with-tty-gid=GID],
[Specify the numeric GID of the 'tty' group])], [Specify the numeric GID of the 'tty' group])],
[AC_DEFINE_UNQUOTED(TTY_GID, [$withval], [GID of the 'tty' group])], [TTY_GID="$withval"],
[]) [TTY_GID="5"])
AC_DEFINE_UNQUOTED(TTY_GID, [$TTY_GID], [GID of the 'tty' group])
AC_SUBST(TTY_GID)
AC_ARG_WITH([dbuspolicydir], AC_ARG_WITH([dbuspolicydir],
AS_HELP_STRING([--with-dbuspolicydir=DIR], [D-Bus policy directory]), AS_HELP_STRING([--with-dbuspolicydir=DIR], [D-Bus policy directory]),
@ -1160,12 +1272,14 @@ AC_MSG_RESULT([
MICROHTTPD: ${have_microhttpd} MICROHTTPD: ${have_microhttpd}
CHKCONFIG: ${have_chkconfig} CHKCONFIG: ${have_chkconfig}
GNUTLS: ${have_gnutls} GNUTLS: ${have_gnutls}
ELFUTILS: ${have_elfutils}
binfmt: ${have_binfmt} binfmt: ${have_binfmt}
vconsole: ${have_vconsole} vconsole: ${have_vconsole}
readahead: ${have_readahead} readahead: ${have_readahead}
bootchart: ${have_bootchart} bootchart: ${have_bootchart}
quotacheck: ${have_quotacheck} quotacheck: ${have_quotacheck}
tmpfiles: ${have_tmpfiles} tmpfiles: ${have_tmpfiles}
sysusers: ${have_sysusers}
randomseed: ${have_randomseed} randomseed: ${have_randomseed}
backlight: ${have_backlight} backlight: ${have_backlight}
rfkill: ${have_rfkill} rfkill: ${have_rfkill}
@ -1225,6 +1339,7 @@ AC_MSG_RESULT([
Extra start script: ${RC_LOCAL_SCRIPT_PATH_START} Extra start script: ${RC_LOCAL_SCRIPT_PATH_START}
Extra stop script: ${RC_LOCAL_SCRIPT_PATH_STOP} Extra stop script: ${RC_LOCAL_SCRIPT_PATH_STOP}
Debug shell: ${SUSHELL} @ ${DEBUGTTY} Debug shell: ${SUSHELL} @ ${DEBUGTTY}
TTY GID: ${TTY_GID}
Maximum System UID: ${SYSTEM_UID_MAX} Maximum System UID: ${SYSTEM_UID_MAX}
Maximum System GID: ${SYSTEM_GID_MAX} Maximum System GID: ${SYSTEM_GID_MAX}

View File

@ -156,6 +156,7 @@ ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@ ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@ ECHO_T = @ECHO_T@
EGREP = @EGREP@ EGREP = @EGREP@
ELFUTILS_LIBS = @ELFUTILS_LIBS@
EXEEXT = @EXEEXT@ EXEEXT = @EXEEXT@
FGREP = @FGREP@ FGREP = @FGREP@
FIRMWARE_PATH = @FIRMWARE_PATH@ FIRMWARE_PATH = @FIRMWARE_PATH@
@ -280,6 +281,7 @@ SYSTEM_SYSVINIT_PATH = @SYSTEM_SYSVINIT_PATH@
SYSTEM_SYSVRCND_PATH = @SYSTEM_SYSVRCND_PATH@ SYSTEM_SYSVRCND_PATH = @SYSTEM_SYSVRCND_PATH@
SYSTEM_UID_MAX = @SYSTEM_UID_MAX@ SYSTEM_UID_MAX = @SYSTEM_UID_MAX@
TELINIT = @TELINIT@ TELINIT = @TELINIT@
TTY_GID = @TTY_GID@
USE_NLS = @USE_NLS@ USE_NLS = @USE_NLS@
VERSION = @VERSION@ VERSION = @VERSION@
XGETTEXT = @XGETTEXT@ XGETTEXT = @XGETTEXT@
@ -326,6 +328,7 @@ infodir = @infodir@
install_sh = @install_sh@ install_sh = @install_sh@
intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_ = @intltool__v_merge_options_@
intltool__v_merge_options_0 = @intltool__v_merge_options_0@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@
intltool_found = @intltool_found@
lcov_found = @lcov_found@ lcov_found = @lcov_found@
libdir = @libdir@ libdir = @libdir@
libexecdir = @libexecdir@ libexecdir = @libexecdir@

View File

@ -15,7 +15,7 @@
<div> <div>
<div><table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">GUdev Reference Manual</p></th></tr></table></div> <div><table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">GUdev Reference Manual</p></th></tr></table></div>
<div><p class="releaseinfo"> <div><p class="releaseinfo">
For version 214 For version 215
— the latest version of this — the latest version of this
documentation can be found at documentation can be found at
<a class="ulink" href="http://www.freedesktop.org/software/systemd/gudev/" target="_top"> <a class="ulink" href="http://www.freedesktop.org/software/systemd/gudev/" target="_top">

View File

@ -1 +1 @@
214 215

View File

@ -156,6 +156,7 @@ ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@ ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@ ECHO_T = @ECHO_T@
EGREP = @EGREP@ EGREP = @EGREP@
ELFUTILS_LIBS = @ELFUTILS_LIBS@
EXEEXT = @EXEEXT@ EXEEXT = @EXEEXT@
FGREP = @FGREP@ FGREP = @FGREP@
FIRMWARE_PATH = @FIRMWARE_PATH@ FIRMWARE_PATH = @FIRMWARE_PATH@
@ -280,6 +281,7 @@ SYSTEM_SYSVINIT_PATH = @SYSTEM_SYSVINIT_PATH@
SYSTEM_SYSVRCND_PATH = @SYSTEM_SYSVRCND_PATH@ SYSTEM_SYSVRCND_PATH = @SYSTEM_SYSVRCND_PATH@
SYSTEM_UID_MAX = @SYSTEM_UID_MAX@ SYSTEM_UID_MAX = @SYSTEM_UID_MAX@
TELINIT = @TELINIT@ TELINIT = @TELINIT@
TTY_GID = @TTY_GID@
USE_NLS = @USE_NLS@ USE_NLS = @USE_NLS@
VERSION = @VERSION@ VERSION = @VERSION@
XGETTEXT = @XGETTEXT@ XGETTEXT = @XGETTEXT@
@ -326,6 +328,7 @@ infodir = @infodir@
install_sh = @install_sh@ install_sh = @install_sh@
intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_ = @intltool__v_merge_options_@
intltool__v_merge_options_0 = @intltool__v_merge_options_0@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@
intltool_found = @intltool_found@
lcov_found = @lcov_found@ lcov_found = @lcov_found@
libdir = @libdir@ libdir = @libdir@
libexecdir = @libexecdir@ libexecdir = @libexecdir@

View File

@ -374,6 +374,14 @@
</dt> </dt>
<dd></dd> <dd></dd>
<dt> <dt>
<a class="link" href="libudev-udev-queue.html#udev-queue-flush" title="udev_queue_flush ()">udev_queue_flush</a>, function in <a class="link" href="libudev-udev-queue.html" title="udev_queue">udev_queue</a>
</dt>
<dd></dd>
<dt>
<a class="link" href="libudev-udev-queue.html#udev-queue-get-fd" title="udev_queue_get_fd ()">udev_queue_get_fd</a>, function in <a class="link" href="libudev-udev-queue.html" title="udev_queue">udev_queue</a>
</dt>
<dd></dd>
<dt>
<a class="link" href="libudev-udev-queue.html#udev-queue-get-kernel-seqnum" title="udev_queue_get_kernel_seqnum ()">udev_queue_get_kernel_seqnum</a>, function in <a class="link" href="libudev-udev-queue.html" title="udev_queue">udev_queue</a> <a class="link" href="libudev-udev-queue.html#udev-queue-get-kernel-seqnum" title="udev_queue_get_kernel_seqnum ()">udev_queue_get_kernel_seqnum</a>, function in <a class="link" href="libudev-udev-queue.html" title="udev_queue">udev_queue</a>
</dt> </dt>
<dd></dd> <dd></dd>

View File

@ -15,7 +15,7 @@
<div> <div>
<div><table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">libudev Reference Manual</p></th></tr></table></div> <div><table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">libudev Reference Manual</p></th></tr></table></div>
<div><p class="releaseinfo"> <div><p class="releaseinfo">
For version 214 For version 215
— the latest version of this — the latest version of this
documentation can be found at documentation can be found at
<a class="ulink" href="http://www.freedesktop.org/software/systemd/libudev/" target="_top"> <a class="ulink" href="http://www.freedesktop.org/software/systemd/libudev/" target="_top">

View File

@ -113,6 +113,8 @@
<ANCHOR id="udev-queue-get-queued-list-entry" href="libudev/libudev-udev-queue.html#udev-queue-get-queued-list-entry"> <ANCHOR id="udev-queue-get-queued-list-entry" href="libudev/libudev-udev-queue.html#udev-queue-get-queued-list-entry">
<ANCHOR id="udev-queue-get-kernel-seqnum" href="libudev/libudev-udev-queue.html#udev-queue-get-kernel-seqnum"> <ANCHOR id="udev-queue-get-kernel-seqnum" href="libudev/libudev-udev-queue.html#udev-queue-get-kernel-seqnum">
<ANCHOR id="udev-queue-get-udev-seqnum" href="libudev/libudev-udev-queue.html#udev-queue-get-udev-seqnum"> <ANCHOR id="udev-queue-get-udev-seqnum" href="libudev/libudev-udev-queue.html#udev-queue-get-udev-seqnum">
<ANCHOR id="udev-queue-get-fd" href="libudev/libudev-udev-queue.html#udev-queue-get-fd">
<ANCHOR id="udev-queue-flush" href="libudev/libudev-udev-queue.html#udev-queue-flush">
<ANCHOR id="libudev-udev-hwdb" href="libudev/libudev-udev-hwdb.html"> <ANCHOR id="libudev-udev-hwdb" href="libudev/libudev-udev-hwdb.html">
<ANCHOR id="libudev-udev-hwdb.synopsis" href="libudev/libudev-udev-hwdb.html#libudev-udev-hwdb.synopsis"> <ANCHOR id="libudev-udev-hwdb.synopsis" href="libudev/libudev-udev-hwdb.html#libudev-udev-hwdb.synopsis">
<ANCHOR id="libudev-udev-hwdb.description" href="libudev/libudev-udev-hwdb.html#libudev-udev-hwdb.description"> <ANCHOR id="libudev-udev-hwdb.description" href="libudev/libudev-udev-hwdb.html#libudev-udev-hwdb.description">

View File

@ -54,6 +54,8 @@ struct <a class="link" href="libudev-udev-list.html#udev-list-entry" title="stru
(<em class="parameter"><code><span class="type">struct udev_queue</span> *udev_queue</code></em>); (<em class="parameter"><code><span class="type">struct udev_queue</span> *udev_queue</code></em>);
unsigned long long <span class="returnvalue">int</span> <a class="link" href="libudev-udev-queue.html#udev-queue-get-kernel-seqnum" title="udev_queue_get_kernel_seqnum ()">udev_queue_get_kernel_seqnum</a> (<em class="parameter"><code><span class="type">struct udev_queue</span> *udev_queue</code></em>); unsigned long long <span class="returnvalue">int</span> <a class="link" href="libudev-udev-queue.html#udev-queue-get-kernel-seqnum" title="udev_queue_get_kernel_seqnum ()">udev_queue_get_kernel_seqnum</a> (<em class="parameter"><code><span class="type">struct udev_queue</span> *udev_queue</code></em>);
unsigned long long <span class="returnvalue">int</span> <a class="link" href="libudev-udev-queue.html#udev-queue-get-udev-seqnum" title="udev_queue_get_udev_seqnum ()">udev_queue_get_udev_seqnum</a> (<em class="parameter"><code><span class="type">struct udev_queue</span> *udev_queue</code></em>); unsigned long long <span class="returnvalue">int</span> <a class="link" href="libudev-udev-queue.html#udev-queue-get-udev-seqnum" title="udev_queue_get_udev_seqnum ()">udev_queue_get_udev_seqnum</a> (<em class="parameter"><code><span class="type">struct udev_queue</span> *udev_queue</code></em>);
<span class="returnvalue">int</span> <a class="link" href="libudev-udev-queue.html#udev-queue-get-fd" title="udev_queue_get_fd ()">udev_queue_get_fd</a> (<em class="parameter"><code><span class="type">struct udev_queue</span> *udev_queue</code></em>);
<span class="returnvalue">int</span> <a class="link" href="libudev-udev-queue.html#udev-queue-flush" title="udev_queue_flush ()">udev_queue_flush</a> (<em class="parameter"><code><span class="type">struct udev_queue</span> *udev_queue</code></em>);
</pre> </pre>
</div> </div>
<div class="refsect1"> <div class="refsect1">
@ -356,6 +358,16 @@ This function is deprecated.
</tbody> </tbody>
</table></div> </table></div>
</div> </div>
<hr>
<div class="refsect2">
<a name="udev-queue-get-fd"></a><h3>udev_queue_get_fd ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> udev_queue_get_fd (<em class="parameter"><code><span class="type">struct udev_queue</span> *udev_queue</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="udev-queue-flush"></a><h3>udev_queue_flush ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> udev_queue_flush (<em class="parameter"><code><span class="type">struct udev_queue</span> *udev_queue</code></em>);</pre>
</div>
</div> </div>
</div> </div>
<div class="footer"> <div class="footer">

View File

@ -105,6 +105,8 @@
<keyword type="function" name="udev_queue_get_queued_list_entry ()" link="libudev-udev-queue.html#udev-queue-get-queued-list-entry"/> <keyword type="function" name="udev_queue_get_queued_list_entry ()" link="libudev-udev-queue.html#udev-queue-get-queued-list-entry"/>
<keyword type="function" name="udev_queue_get_kernel_seqnum ()" link="libudev-udev-queue.html#udev-queue-get-kernel-seqnum"/> <keyword type="function" name="udev_queue_get_kernel_seqnum ()" link="libudev-udev-queue.html#udev-queue-get-kernel-seqnum"/>
<keyword type="function" name="udev_queue_get_udev_seqnum ()" link="libudev-udev-queue.html#udev-queue-get-udev-seqnum"/> <keyword type="function" name="udev_queue_get_udev_seqnum ()" link="libudev-udev-queue.html#udev-queue-get-udev-seqnum"/>
<keyword type="function" name="udev_queue_get_fd ()" link="libudev-udev-queue.html#udev-queue-get-fd"/>
<keyword type="function" name="udev_queue_flush ()" link="libudev-udev-queue.html#udev-queue-flush"/>
<keyword type="struct" name="struct udev_hwdb" link="libudev-udev-hwdb.html#udev-hwdb"/> <keyword type="struct" name="struct udev_hwdb" link="libudev-udev-hwdb.html#udev-hwdb"/>
<keyword type="function" name="udev_hwdb_ref ()" link="libudev-udev-hwdb.html#udev-hwdb-ref"/> <keyword type="function" name="udev_hwdb_ref ()" link="libudev-udev-hwdb.html#udev-hwdb-ref"/>
<keyword type="function" name="udev_hwdb_unref ()" link="libudev-udev-hwdb.html#udev-hwdb-unref"/> <keyword type="function" name="udev_hwdb_unref ()" link="libudev-udev-hwdb.html#udev-hwdb-unref"/>

View File

@ -116,6 +116,8 @@ udev_queue_get_seqnum_sequence_is_finished
udev_queue_get_queued_list_entry udev_queue_get_queued_list_entry
udev_queue_get_kernel_seqnum udev_queue_get_kernel_seqnum
udev_queue_get_udev_seqnum udev_queue_get_udev_seqnum
udev_queue_get_fd
udev_queue_flush
</SECTION> </SECTION>
<SECTION> <SECTION>

View File

@ -1 +1 @@
214 215

File diff suppressed because it is too large Load Diff

View File

@ -115,7 +115,7 @@ bluetooth:v0024*
ID_VENDOR_FROM_DATABASE=Alcatel ID_VENDOR_FROM_DATABASE=Alcatel
bluetooth:v0025* bluetooth:v0025*
ID_VENDOR_FROM_DATABASE=Philips Semiconductors ID_VENDOR_FROM_DATABASE=NXP Semiconductors (formerly Philips Semiconductors)
bluetooth:v0026* bluetooth:v0026*
ID_VENDOR_FROM_DATABASE=C Technologies ID_VENDOR_FROM_DATABASE=C Technologies
@ -427,7 +427,7 @@ bluetooth:v008B*
ID_VENDOR_FROM_DATABASE=Topcorn Positioning Systems, LLC ID_VENDOR_FROM_DATABASE=Topcorn Positioning Systems, LLC
bluetooth:v008C* bluetooth:v008C*
ID_VENDOR_FROM_DATABASE=Qualcomm Retail Solutions, Inc. (formerly Qualcomm Labs, Inc.) ID_VENDOR_FROM_DATABASE=Gimbal Inc. (formerly Qualcomm Labs, Inc. and Qualcomm Retail Solutions, Inc.)
bluetooth:v008D* bluetooth:v008D*
ID_VENDOR_FROM_DATABASE=Zscan Software ID_VENDOR_FROM_DATABASE=Zscan Software
@ -1006,10 +1006,70 @@ bluetooth:v014C*
ID_VENDOR_FROM_DATABASE=Mesh-Net Ltd ID_VENDOR_FROM_DATABASE=Mesh-Net Ltd
bluetooth:v014D* bluetooth:v014D*
ID_VENDOR_FROM_DATABASE=HUIZHOU DESAY SV AUTOMOTIVE CO., LTD. ID_VENDOR_FROM_DATABASE=Huizhou Desay SV Automotive CO., LTD.
bluetooth:v014E* bluetooth:v014E*
ID_VENDOR_FROM_DATABASE=Tangerine, Inc. ID_VENDOR_FROM_DATABASE=Tangerine, Inc.
bluetooth:v014F* bluetooth:v014F*
ID_VENDOR_FROM_DATABASE=B&W Group Ltd. ID_VENDOR_FROM_DATABASE=B&W Group Ltd.
bluetooth:v0150*
ID_VENDOR_FROM_DATABASE=Pioneer Corporation
bluetooth:v0151*
ID_VENDOR_FROM_DATABASE=OnBeep
bluetooth:v0152*
ID_VENDOR_FROM_DATABASE=Vernier Software & Technology
bluetooth:v0153*
ID_VENDOR_FROM_DATABASE=ROL Ergo
bluetooth:v0154*
ID_VENDOR_FROM_DATABASE=Pebble Technology
bluetooth:v0155*
ID_VENDOR_FROM_DATABASE=NETATMO
bluetooth:v0156*
ID_VENDOR_FROM_DATABASE=Accumulate AB
bluetooth:v0157*
ID_VENDOR_FROM_DATABASE=Anhui Huami Information Technology Co., Ltd.
bluetooth:v0158*
ID_VENDOR_FROM_DATABASE=Inmite s.r.o.
bluetooth:v0159*
ID_VENDOR_FROM_DATABASE=ChefSteps, Inc.
bluetooth:v015A*
ID_VENDOR_FROM_DATABASE=micas AG
bluetooth:v015B*
ID_VENDOR_FROM_DATABASE=Biomedical Research Ltd.
bluetooth:v015C*
ID_VENDOR_FROM_DATABASE=Pitius Tec S.L.
bluetooth:v015D*
ID_VENDOR_FROM_DATABASE=Estimote, Inc.
bluetooth:v015E*
ID_VENDOR_FROM_DATABASE=Unikey Technologies, Inc.
bluetooth:v015F*
ID_VENDOR_FROM_DATABASE=Timer Cap Co.
bluetooth:v0160*
ID_VENDOR_FROM_DATABASE=AwoX
bluetooth:v0161*
ID_VENDOR_FROM_DATABASE=yikes
bluetooth:v0162*
ID_VENDOR_FROM_DATABASE=MADSGlobal NZ Ltd.
bluetooth:v0163*
ID_VENDOR_FROM_DATABASE=PCH International

View File

@ -47,12 +47,24 @@ pci:v*d*sv*sd*bc01sc06i00*
pci:v*d*sv*sd*bc01sc06i01* pci:v*d*sv*sd*bc01sc06i01*
ID_PCI_INTERFACE_FROM_DATABASE=AHCI 1.0 ID_PCI_INTERFACE_FROM_DATABASE=AHCI 1.0
pci:v*d*sv*sd*bc01sc06i02*
ID_PCI_INTERFACE_FROM_DATABASE=Serial Storage Bus
pci:v*d*sv*sd*bc01sc07* pci:v*d*sv*sd*bc01sc07*
ID_PCI_SUBCLASS_FROM_DATABASE=Serial Attached SCSI controller ID_PCI_SUBCLASS_FROM_DATABASE=Serial Attached SCSI controller
pci:v*d*sv*sd*bc01sc07i01*
ID_PCI_INTERFACE_FROM_DATABASE=Serial Storage Bus
pci:v*d*sv*sd*bc01sc08* pci:v*d*sv*sd*bc01sc08*
ID_PCI_SUBCLASS_FROM_DATABASE=Non-Volatile memory controller ID_PCI_SUBCLASS_FROM_DATABASE=Non-Volatile memory controller
pci:v*d*sv*sd*bc01sc08i01*
ID_PCI_INTERFACE_FROM_DATABASE=NVMHCI
pci:v*d*sv*sd*bc01sc08i02*
ID_PCI_INTERFACE_FROM_DATABASE=NVM Express
pci:v*d*sv*sd*bc01sc80* pci:v*d*sv*sd*bc01sc80*
ID_PCI_SUBCLASS_FROM_DATABASE=Mass storage controller ID_PCI_SUBCLASS_FROM_DATABASE=Mass storage controller
@ -80,6 +92,9 @@ pci:v*d*sv*sd*bc02sc05*
pci:v*d*sv*sd*bc02sc06* pci:v*d*sv*sd*bc02sc06*
ID_PCI_SUBCLASS_FROM_DATABASE=PICMG controller ID_PCI_SUBCLASS_FROM_DATABASE=PICMG controller
pci:v*d*sv*sd*bc02sc07*
ID_PCI_SUBCLASS_FROM_DATABASE=Infiniband controller
pci:v*d*sv*sd*bc02sc80* pci:v*d*sv*sd*bc02sc80*
ID_PCI_SUBCLASS_FROM_DATABASE=Network controller ID_PCI_SUBCLASS_FROM_DATABASE=Network controller
@ -311,6 +326,9 @@ pci:v*d*sv*sd*bc08sc02i01*
pci:v*d*sv*sd*bc08sc02i02* pci:v*d*sv*sd*bc08sc02i02*
ID_PCI_INTERFACE_FROM_DATABASE=EISA Timers ID_PCI_INTERFACE_FROM_DATABASE=EISA Timers
pci:v*d*sv*sd*bc08sc02i03*
ID_PCI_INTERFACE_FROM_DATABASE=HPET
pci:v*d*sv*sd*bc08sc03* pci:v*d*sv*sd*bc08sc03*
ID_PCI_SUBCLASS_FROM_DATABASE=RTC ID_PCI_SUBCLASS_FROM_DATABASE=RTC
@ -527,5 +545,14 @@ pci:v*d*sv*sd*bc11sc20*
pci:v*d*sv*sd*bc11sc80* pci:v*d*sv*sd*bc11sc80*
ID_PCI_SUBCLASS_FROM_DATABASE=Signal processing controller ID_PCI_SUBCLASS_FROM_DATABASE=Signal processing controller
pci:v*d*sv*sd*bc12*
ID_PCI_CLASS_FROM_DATABASE=Processing accelerators
pci:v*d*sv*sd*bc12sc00*
ID_PCI_SUBCLASS_FROM_DATABASE=Processing accelerators
pci:v*d*sv*sd*bc13*
ID_PCI_CLASS_FROM_DATABASE=Non-Essential Instrumentation
pci:v*d*sv*sd*bcFF* pci:v*d*sv*sd*bcFF*
ID_PCI_CLASS_FROM_DATABASE=Unassigned class ID_PCI_CLASS_FROM_DATABASE=Unassigned class

File diff suppressed because it is too large Load Diff

View File

@ -311,6 +311,9 @@ usb:v*p*d*dcEFdsc02dp02*
usb:v*p*d*dcEFdsc03dp01* usb:v*p*d*dcEFdsc03dp01*
ID_USB_PROTOCOL_FROM_DATABASE=Cable Based Association ID_USB_PROTOCOL_FROM_DATABASE=Cable Based Association
usb:v*p*d*dcEFdsc05*
ID_USB_SUBCLASS_FROM_DATABASE=USB3 Vision
usb:v*p*d*dcFE* usb:v*p*d*dcFE*
ID_USB_CLASS_FROM_DATABASE=Application Specific Interface ID_USB_CLASS_FROM_DATABASE=Application Specific Interface

View File

@ -284,9 +284,18 @@ usb:v03EBp2310*
usb:v03EBp2FE4* usb:v03EBp2FE4*
ID_MODEL_FROM_DATABASE=ATxmega32A4U DFU bootloader ID_MODEL_FROM_DATABASE=ATxmega32A4U DFU bootloader
usb:v03EBp2FE6*
ID_MODEL_FROM_DATABASE=Cactus V6 (DFU)
usb:v03EBp2FEA*
ID_MODEL_FROM_DATABASE=Cactus RF60 (DFU)
usb:v03EBp2FF0* usb:v03EBp2FF0*
ID_MODEL_FROM_DATABASE=atmega32u2 DFU bootloader ID_MODEL_FROM_DATABASE=atmega32u2 DFU bootloader
usb:v03EBp2FF4*
ID_MODEL_FROM_DATABASE=atmega32u4 DFU bootloader
usb:v03EBp2FFA* usb:v03EBp2FFA*
ID_MODEL_FROM_DATABASE=at90usb162 DFU bootloader ID_MODEL_FROM_DATABASE=at90usb162 DFU bootloader
@ -4409,6 +4418,9 @@ usb:v0424p2602*
usb:v0424p2640* usb:v0424p2640*
ID_MODEL_FROM_DATABASE=USB 2.0 Hub ID_MODEL_FROM_DATABASE=USB 2.0 Hub
usb:v0424p2660*
ID_MODEL_FROM_DATABASE=Hub
usb:v0424p4060* usb:v0424p4060*
ID_MODEL_FROM_DATABASE=Ultra Fast Media Reader ID_MODEL_FROM_DATABASE=Ultra Fast Media Reader
@ -5373,7 +5385,7 @@ usb:v0457p0162*
ID_MODEL_FROM_DATABASE=SiS162 usb Wireless LAN Adapter ID_MODEL_FROM_DATABASE=SiS162 usb Wireless LAN Adapter
usb:v0457p0163* usb:v0457p0163*
ID_MODEL_FROM_DATABASE=802.11 Wireless LAN Adapter ID_MODEL_FROM_DATABASE=SiS163U 802.11 Wireless LAN Adapter
usb:v0457p0817* usb:v0457p0817*
ID_MODEL_FROM_DATABASE=SiS-184-ASUS-4352.17 touch panel ID_MODEL_FROM_DATABASE=SiS-184-ASUS-4352.17 touch panel
@ -6947,6 +6959,9 @@ usb:v046Dp082D*
usb:v046Dp0830* usb:v046Dp0830*
ID_MODEL_FROM_DATABASE=QuickClip ID_MODEL_FROM_DATABASE=QuickClip
usb:v046Dp0837*
ID_MODEL_FROM_DATABASE=BCC950 ConferenceCam
usb:v046Dp0840* usb:v046Dp0840*
ID_MODEL_FROM_DATABASE=QuickCam Express ID_MODEL_FROM_DATABASE=QuickCam Express
@ -7856,6 +7871,9 @@ usb:v046DpC52F*
usb:v046DpC532* usb:v046DpC532*
ID_MODEL_FROM_DATABASE=Unifying Receiver ID_MODEL_FROM_DATABASE=Unifying Receiver
usb:v046DpC534*
ID_MODEL_FROM_DATABASE=Unifying Receiver
usb:v046DpC603* usb:v046DpC603*
ID_MODEL_FROM_DATABASE=3Dconnexion Spacemouse Plus XT ID_MODEL_FROM_DATABASE=3Dconnexion Spacemouse Plus XT
@ -8738,6 +8756,9 @@ usb:v0480pA007*
usb:v0480pA009* usb:v0480pA009*
ID_MODEL_FROM_DATABASE=Stor.E Basics ID_MODEL_FROM_DATABASE=Stor.E Basics
usb:v0480pA00D*
ID_MODEL_FROM_DATABASE=STOR.E BASICS 500GB
usb:v0480pD010* usb:v0480pD010*
ID_MODEL_FROM_DATABASE=External Disk 3TB ID_MODEL_FROM_DATABASE=External Disk 3TB
@ -10943,6 +10964,9 @@ usb:v04A9p3196*
usb:v04A9p319A* usb:v04A9p319A*
ID_MODEL_FROM_DATABASE=EOS 7D ID_MODEL_FROM_DATABASE=EOS 7D
usb:v04A9p319B*
ID_MODEL_FROM_DATABASE=EOS 50D
usb:v04A9p31AA* usb:v04A9p31AA*
ID_MODEL_FROM_DATABASE=SELPHY CP770 ID_MODEL_FROM_DATABASE=SELPHY CP770
@ -11219,6 +11243,15 @@ usb:v04A9p3277*
usb:v04A9p327D* usb:v04A9p327D*
ID_MODEL_FROM_DATABASE=Powershot ELPH 115 IS / IXUS 132 ID_MODEL_FROM_DATABASE=Powershot ELPH 115 IS / IXUS 132
usb:v04A9p327F*
ID_MODEL_FROM_DATABASE=EOS Rebel T5 / EOS 1200D / EOS Kiss X70
usb:v04A9p3284*
ID_MODEL_FROM_DATABASE=PowerShot D30
usb:v04A9p3286*
ID_MODEL_FROM_DATABASE=PowerShot SX600 HS
usb:v04A9p3288* usb:v04A9p3288*
ID_MODEL_FROM_DATABASE=Powershot ELPH 135 / IXUS 145 ID_MODEL_FROM_DATABASE=Powershot ELPH 135 / IXUS 145
@ -13040,6 +13073,9 @@ usb:v04D8p0036*
usb:v04D8p00E0* usb:v04D8p00E0*
ID_MODEL_FROM_DATABASE=PIC32 Starter Board ID_MODEL_FROM_DATABASE=PIC32 Starter Board
usb:v04D8p04CD*
ID_MODEL_FROM_DATABASE=28Cxxx EEPROM Programmer
usb:v04D8p0A04* usb:v04D8p0A04*
ID_MODEL_FROM_DATABASE=AGP LIN Serial Analyzer ID_MODEL_FROM_DATABASE=AGP LIN Serial Analyzer
@ -14093,6 +14129,9 @@ usb:v04E8p5F05*
usb:v04E8p6032* usb:v04E8p6032*
ID_MODEL_FROM_DATABASE=G2 Portable hard drive ID_MODEL_FROM_DATABASE=G2 Portable hard drive
usb:v04E8p6033*
ID_MODEL_FROM_DATABASE=G2 Portable device
usb:v04E8p6034* usb:v04E8p6034*
ID_MODEL_FROM_DATABASE=G2 Portable hard drive ID_MODEL_FROM_DATABASE=G2 Portable hard drive
@ -14102,6 +14141,9 @@ usb:v04E8p60B3*
usb:v04E8p60C4* usb:v04E8p60C4*
ID_MODEL_FROM_DATABASE=M2 Portable Hard Drive USB 3.0 ID_MODEL_FROM_DATABASE=M2 Portable Hard Drive USB 3.0
usb:v04E8p6124*
ID_MODEL_FROM_DATABASE=D3 Station External Hard Drive
usb:v04E8p61B6* usb:v04E8p61B6*
ID_MODEL_FROM_DATABASE=M3 Portable Hard Drive 1TB ID_MODEL_FROM_DATABASE=M3 Portable Hard Drive 1TB
@ -15224,6 +15266,9 @@ usb:v04F9p0223*
usb:v04F9p0248* usb:v04F9p0248*
ID_MODEL_FROM_DATABASE=DCP-7055 scanner/printer ID_MODEL_FROM_DATABASE=DCP-7055 scanner/printer
usb:v04F9p02B3*
ID_MODEL_FROM_DATABASE=MFC J4510DW
usb:v04F9p1000* usb:v04F9p1000*
ID_MODEL_FROM_DATABASE=Printer ID_MODEL_FROM_DATABASE=Printer
@ -15546,7 +15591,7 @@ usb:v050Dp0013*
ID_MODEL_FROM_DATABASE=F8T013 Bluetooth Adapter ID_MODEL_FROM_DATABASE=F8T013 Bluetooth Adapter
usb:v050Dp0017* usb:v050Dp0017*
ID_MODEL_FROM_DATABASE=B8T017 Bluetooth+EDR 2.1 ID_MODEL_FROM_DATABASE=B8T017 Bluetooth+EDR 2.1 / F4U017 USB 2.0 7-port Hub
usb:v050Dp003A* usb:v050Dp003A*
ID_MODEL_FROM_DATABASE=Universal Media Reader ID_MODEL_FROM_DATABASE=Universal Media Reader
@ -15683,6 +15728,9 @@ usb:v050Dp1106*
usb:v050Dp1109* usb:v050Dp1109*
ID_MODEL_FROM_DATABASE=F9L1109v1 802.11a/b/g/n/ac Wireless Adapter [Realtek RTL8812AU] ID_MODEL_FROM_DATABASE=F9L1109v1 802.11a/b/g/n/ac Wireless Adapter [Realtek RTL8812AU]
usb:v050Dp110A*
ID_MODEL_FROM_DATABASE=F9L1101v2 802.11abgn Wireless Adapter [Realtek RTL8192DU]
usb:v050Dp11F2* usb:v050Dp11F2*
ID_MODEL_FROM_DATABASE=ISY Wireless Micro Adapter IWL 2000 [RTL8188CUS] ID_MODEL_FROM_DATABASE=ISY Wireless Micro Adapter IWL 2000 [RTL8188CUS]
@ -15723,7 +15771,7 @@ usb:v050Dp6051*
ID_MODEL_FROM_DATABASE=F5D6051 802.11b Wireless Network Adapter [ZyDAS ZD1201] ID_MODEL_FROM_DATABASE=F5D6051 802.11b Wireless Network Adapter [ZyDAS ZD1201]
usb:v050Dp615A* usb:v050Dp615A*
ID_MODEL_FROM_DATABASE=F7D4101 / F9L1101 802.11abgn Wireless Adapter [Broadcom BCM4323] ID_MODEL_FROM_DATABASE=F7D4101 / F9L1101v1 802.11abgn Wireless Adapter [Broadcom BCM4323]
usb:v050Dp7050* usb:v050Dp7050*
ID_MODEL_FROM_DATABASE=F5D7050 Wireless G Adapter v1000/v2000 [Intersil ISL3887] ID_MODEL_FROM_DATABASE=F5D7050 Wireless G Adapter v1000/v2000 [Intersil ISL3887]
@ -16358,6 +16406,9 @@ usb:v0547p2810*
usb:v0547p4D90* usb:v0547p4D90*
ID_MODEL_FROM_DATABASE=AmScope MD1900 camera ID_MODEL_FROM_DATABASE=AmScope MD1900 camera
usb:v0547p7000*
ID_MODEL_FROM_DATABASE=PowerSpec MCE460 Front Panel LED Display
usb:v0547p7777* usb:v0547p7777*
ID_MODEL_FROM_DATABASE=Bluetooth Device ID_MODEL_FROM_DATABASE=Bluetooth Device
@ -21677,6 +21728,9 @@ usb:v05F9p2601*
usb:v05F9p2602* usb:v05F9p2602*
ID_MODEL_FROM_DATABASE=Datalogic Magellan 1100i Barcode Scanner ID_MODEL_FROM_DATABASE=Datalogic Magellan 1100i Barcode Scanner
usb:v05F9p4204*
ID_MODEL_FROM_DATABASE=Datalogic Gryphon GFS4470 Fixed Scanner
usb:v05F9p5204* usb:v05F9p5204*
ID_MODEL_FROM_DATABASE=Datalogic Gryphon GFS4170 (config mode) ID_MODEL_FROM_DATABASE=Datalogic Gryphon GFS4170 (config mode)
@ -23234,6 +23288,9 @@ usb:v068Ep00D3*
usb:v068Ep00E2* usb:v068Ep00E2*
ID_MODEL_FROM_DATABASE=HFX OEM Joystick ID_MODEL_FROM_DATABASE=HFX OEM Joystick
usb:v068Ep00F0*
ID_MODEL_FROM_DATABASE=Multi-Function Panel
usb:v068Ep00F1* usb:v068Ep00F1*
ID_MODEL_FROM_DATABASE=Pro Throttle ID_MODEL_FROM_DATABASE=Pro Throttle
@ -25838,6 +25895,9 @@ usb:v0781p74D0*
usb:v0781p74D1* usb:v0781p74D1*
ID_MODEL_FROM_DATABASE=Sansa Clip+ (msc) ID_MODEL_FROM_DATABASE=Sansa Clip+ (msc)
usb:v0781p74E5*
ID_MODEL_FROM_DATABASE=Sansa Clip Zip
usb:v0781p8181* usb:v0781p8181*
ID_MODEL_FROM_DATABASE=Pen Flash ID_MODEL_FROM_DATABASE=Pen Flash
@ -26219,6 +26279,9 @@ usb:v07AAp001A*
usb:v07AAp001C* usb:v07AAp001C*
ID_MODEL_FROM_DATABASE=CG-WLUSB2GT 802.11g Wireless Adapter [Intersil ISL3880] ID_MODEL_FROM_DATABASE=CG-WLUSB2GT 802.11g Wireless Adapter [Intersil ISL3880]
usb:v07AAp0020*
ID_MODEL_FROM_DATABASE=CG-WLUSB2GTST 802.11g Wireless Adapter [Intersil ISL3887]
usb:v07AAp002E* usb:v07AAp002E*
ID_MODEL_FROM_DATABASE=CG-WLUSB2GPX [Ralink RT2571W] ID_MODEL_FROM_DATABASE=CG-WLUSB2GPX [Ralink RT2571W]
@ -26939,6 +27002,9 @@ usb:v07CApA827*
usb:v07CApA867* usb:v07CApA867*
ID_MODEL_FROM_DATABASE=AVerTV DVB-T (A867) ID_MODEL_FROM_DATABASE=AVerTV DVB-T (A867)
usb:v07CApB300*
ID_MODEL_FROM_DATABASE=A300 DVB-T TV receiver
usb:v07CApB800* usb:v07CApB800*
ID_MODEL_FROM_DATABASE=MR800 FM Radio ID_MODEL_FROM_DATABASE=MR800 FM Radio
@ -27941,6 +28007,9 @@ usb:v083Ap4507*
usb:v083Ap4521* usb:v083Ap4521*
ID_MODEL_FROM_DATABASE=Siemens S30863-S1016-R107-2 802.11g Wireless Adapter [Intersil ISL3887] ID_MODEL_FROM_DATABASE=Siemens S30863-S1016-R107-2 802.11g Wireless Adapter [Intersil ISL3887]
usb:v083Ap4531*
ID_MODEL_FROM_DATABASE=T-Com Sinus 154 data II [Intersil ISL3887]
usb:v083Ap5046* usb:v083Ap5046*
ID_MODEL_FROM_DATABASE=SpeedStream 10/100 Ethernet [pegasus] ID_MODEL_FROM_DATABASE=SpeedStream 10/100 Ethernet [pegasus]
@ -30476,6 +30545,9 @@ usb:v0957p0518*
usb:v0957p0A07* usb:v0957p0A07*
ID_MODEL_FROM_DATABASE=34411A Multimeter ID_MODEL_FROM_DATABASE=34411A Multimeter
usb:v0957p1507*
ID_MODEL_FROM_DATABASE=33210A Waveform Generator
usb:v0957p1745* usb:v0957p1745*
ID_MODEL_FROM_DATABASE=Test and Measurement Device (IVI) ID_MODEL_FROM_DATABASE=Test and Measurement Device (IVI)
@ -30876,13 +30948,13 @@ usb:v09D9*
ID_VENDOR_FROM_DATABASE=KRF Tech, Ltd ID_VENDOR_FROM_DATABASE=KRF Tech, Ltd
usb:v09DA* usb:v09DA*
ID_VENDOR_FROM_DATABASE=A4 Tech Co., Ltd ID_VENDOR_FROM_DATABASE=A4Tech Co., Ltd.
usb:v09DAp0006* usb:v09DAp0006*
ID_MODEL_FROM_DATABASE=Optical Mouse WOP-35 / Trust 450L Optical Mouse ID_MODEL_FROM_DATABASE=Optical Mouse WOP-35 / Trust 450L Optical Mouse
usb:v09DAp000A* usb:v09DAp000A*
ID_MODEL_FROM_DATABASE=Optical Mouse Opto 510D ID_MODEL_FROM_DATABASE=Optical Mouse Opto 510D / OP-620D
usb:v09DAp000E* usb:v09DAp000E*
ID_MODEL_FROM_DATABASE=X-F710F Optical Mouse 3xFire Gaming Mouse ID_MODEL_FROM_DATABASE=X-F710F Optical Mouse 3xFire Gaming Mouse
@ -32174,6 +32246,9 @@ usb:v0AB1*
usb:v0AB1p0002* usb:v0AB1p0002*
ID_MODEL_FROM_DATABASE=OBID RFID-Reader ID_MODEL_FROM_DATABASE=OBID RFID-Reader
usb:v0AB1p0004*
ID_MODEL_FROM_DATABASE=OBID classic-pro
usb:v0ABA* usb:v0ABA*
ID_VENDOR_FROM_DATABASE=Ellisys ID_VENDOR_FROM_DATABASE=Ellisys
@ -32571,7 +32646,7 @@ usb:v0B05p1708*
ID_MODEL_FROM_DATABASE=Mass Storage Device ID_MODEL_FROM_DATABASE=Mass Storage Device
usb:v0B05p170B* usb:v0B05p170B*
ID_MODEL_FROM_DATABASE=Mass Storage Device ID_MODEL_FROM_DATABASE=Multi card reader
usb:v0B05p170C* usb:v0B05p170C*
ID_MODEL_FROM_DATABASE=WL-159g 802.11bg ID_MODEL_FROM_DATABASE=WL-159g 802.11bg
@ -32687,6 +32762,9 @@ usb:v0B05p17A1*
usb:v0B05p17AB* usb:v0B05p17AB*
ID_MODEL_FROM_DATABASE=USB-N13 802.11n Network Adapter (rev. B1) [Realtek RTL8192CU] ID_MODEL_FROM_DATABASE=USB-N13 802.11n Network Adapter (rev. B1) [Realtek RTL8192CU]
usb:v0B05p17C7*
ID_MODEL_FROM_DATABASE=WL-330NUL
usb:v0B05p17C9* usb:v0B05p17C9*
ID_MODEL_FROM_DATABASE=USB-AC53 802.11a/b/g/n/ac Wireless Adapter [Broadcom BCM43526] ID_MODEL_FROM_DATABASE=USB-AC53 802.11a/b/g/n/ac Wireless Adapter [Broadcom BCM43526]
@ -32714,6 +32792,9 @@ usb:v0B05p5410*
usb:v0B05p5412* usb:v0B05p5412*
ID_MODEL_FROM_DATABASE=MeMO Pad HD 7 (PTP mode) ID_MODEL_FROM_DATABASE=MeMO Pad HD 7 (PTP mode)
usb:v0B05p550F*
ID_MODEL_FROM_DATABASE=ASUS fonepad 7
usb:v0B05p6101* usb:v0B05p6101*
ID_MODEL_FROM_DATABASE=Cable Modem ID_MODEL_FROM_DATABASE=Cable Modem
@ -32756,6 +32837,9 @@ usb:v0B0Dp0000*
usb:v0B0E* usb:v0B0E*
ID_VENDOR_FROM_DATABASE=GN Netcom ID_VENDOR_FROM_DATABASE=GN Netcom
usb:v0B0Ep034C*
ID_MODEL_FROM_DATABASE=Jabra UC Voice 750 MS
usb:v0B0Ep0420* usb:v0B0Ep0420*
ID_MODEL_FROM_DATABASE=Jabra SPEAK 510 ID_MODEL_FROM_DATABASE=Jabra SPEAK 510
@ -49610,6 +49694,12 @@ usb:v2659p1212*
usb:v2659p1213* usb:v2659p1213*
ID_MODEL_FROM_DATABASE=MediaTV Pro III MiniPCIe (US) ID_MODEL_FROM_DATABASE=MediaTV Pro III MiniPCIe (US)
usb:v2676*
ID_VENDOR_FROM_DATABASE=Basler AG
usb:v2676pBA02*
ID_MODEL_FROM_DATABASE=ace
usb:v2730* usb:v2730*
ID_VENDOR_FROM_DATABASE=Citizen ID_VENDOR_FROM_DATABASE=Citizen

View File

@ -19,8 +19,8 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="sd-daemon"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd-daemon, SD_EMERG, SD_ALERT, SD_CRIT, SD_ERR, SD_WARNING, SD_NOTICE, SD_INFO, SD_DEBUG — APIs for <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="sd-daemon"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd-daemon, SD_EMERG, SD_ALERT, SD_CRIT, SD_ERR, SD_WARNING, SD_NOTICE, SD_INFO, SD_DEBUG — APIs for
new-style daemons</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-daemon.h&gt;</pre></div><div class="cmdsynopsis"><p><code class="command">pkg-config --cflags --libs libsystemd</code> </p></div></div><div class="refsect1"><a name="idm214188016064"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="filename">sd-daemon.h</code> provide APIs new-style daemons</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-daemon.h&gt;</pre></div><div class="cmdsynopsis"><p><code class="command">pkg-config --cflags --libs libsystemd</code> </p></div></div><div class="refsect1"><a name="idm214195900512"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="filename">sd-daemon.h</code> provide APIs
for new-style daemons, as implemented by the for new-style daemons, as implemented by the
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a> <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>
init system.</p><p>See init system.</p><p>See
@ -52,11 +52,11 @@
log level system. To use these prefixes simply prefix log level system. To use these prefixes simply prefix
every line with one of these strings. A line that is every line with one of these strings. A line that is
not prefixed will be logged at the default log level not prefixed will be logged at the default log level
SD_INFO.</p><div class="example"><a name="idm214184167584"></a><p class="title"><b>Example 1. Hello World</b></p><div class="example-contents"><p>A daemon may log with the log level SD_INFO.</p><div class="example"><a name="idm214195045552"></a><p class="title"><b>Example 1. Hello World</b></p><div class="example-contents"><p>A daemon may log with the log level
NOTICE by issuing this call:</p><pre class="programlisting">fprintf(stderr, SD_NOTICE "Hello World!\n");</pre></div></div><br class="example-break"></div><div class="refsect1"><a name="idm214180497360"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p><a name="pkgconfig-text"></a>These APIs are implemented as a shared NOTICE by issuing this call:</p><pre class="programlisting">fprintf(stderr, SD_NOTICE "Hello World!\n");</pre></div></div><br class="example-break"></div><div class="refsect1"><a name="idm214192388800"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p><a name="pkgconfig-text"></a>These APIs are implemented as a shared
library, which can be compiled and linked to with the library, which can be compiled and linked to with the
<code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a> <code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a>
file.</p></div><div class="refsect1"><a name="idm214184164912"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> file.</p></div><div class="refsect1"><a name="idm214193723968"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="sd_listen_fds.html"><span class="citerefentry"><span class="refentrytitle">sd_listen_fds</span>(3)</span></a>, <a href="sd_listen_fds.html"><span class="citerefentry"><span class="refentrytitle">sd_listen_fds</span>(3)</span></a>,
<a href="sd_notify.html"><span class="citerefentry"><span class="refentrytitle">sd_notify</span>(3)</span></a>, <a href="sd_notify.html"><span class="citerefentry"><span class="refentrytitle">sd_notify</span>(3)</span></a>,

View File

@ -19,8 +19,8 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="sd-daemon"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd-daemon, SD_EMERG, SD_ALERT, SD_CRIT, SD_ERR, SD_WARNING, SD_NOTICE, SD_INFO, SD_DEBUG — APIs for <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="sd-daemon"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd-daemon, SD_EMERG, SD_ALERT, SD_CRIT, SD_ERR, SD_WARNING, SD_NOTICE, SD_INFO, SD_DEBUG — APIs for
new-style daemons</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-daemon.h&gt;</pre></div><div class="cmdsynopsis"><p><code class="command">pkg-config --cflags --libs libsystemd</code> </p></div></div><div class="refsect1"><a name="idm214188016064"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="filename">sd-daemon.h</code> provide APIs new-style daemons</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-daemon.h&gt;</pre></div><div class="cmdsynopsis"><p><code class="command">pkg-config --cflags --libs libsystemd</code> </p></div></div><div class="refsect1"><a name="idm214195900512"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="filename">sd-daemon.h</code> provide APIs
for new-style daemons, as implemented by the for new-style daemons, as implemented by the
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a> <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>
init system.</p><p>See init system.</p><p>See
@ -52,11 +52,11 @@
log level system. To use these prefixes simply prefix log level system. To use these prefixes simply prefix
every line with one of these strings. A line that is every line with one of these strings. A line that is
not prefixed will be logged at the default log level not prefixed will be logged at the default log level
SD_INFO.</p><div class="example"><a name="idm214184167584"></a><p class="title"><b>Example 1. Hello World</b></p><div class="example-contents"><p>A daemon may log with the log level SD_INFO.</p><div class="example"><a name="idm214195045552"></a><p class="title"><b>Example 1. Hello World</b></p><div class="example-contents"><p>A daemon may log with the log level
NOTICE by issuing this call:</p><pre class="programlisting">fprintf(stderr, SD_NOTICE "Hello World!\n");</pre></div></div><br class="example-break"></div><div class="refsect1"><a name="idm214180497360"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p><a name="pkgconfig-text"></a>These APIs are implemented as a shared NOTICE by issuing this call:</p><pre class="programlisting">fprintf(stderr, SD_NOTICE "Hello World!\n");</pre></div></div><br class="example-break"></div><div class="refsect1"><a name="idm214192388800"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p><a name="pkgconfig-text"></a>These APIs are implemented as a shared
library, which can be compiled and linked to with the library, which can be compiled and linked to with the
<code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a> <code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a>
file.</p></div><div class="refsect1"><a name="idm214184164912"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> file.</p></div><div class="refsect1"><a name="idm214193723968"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="sd_listen_fds.html"><span class="citerefentry"><span class="refentrytitle">sd_listen_fds</span>(3)</span></a>, <a href="sd_listen_fds.html"><span class="citerefentry"><span class="refentrytitle">sd_listen_fds</span>(3)</span></a>,
<a href="sd_notify.html"><span class="citerefentry"><span class="refentrytitle">sd_notify</span>(3)</span></a>, <a href="sd_notify.html"><span class="citerefentry"><span class="refentrytitle">sd_notify</span>(3)</span></a>,

View File

@ -19,8 +19,8 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="sd-daemon"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd-daemon, SD_EMERG, SD_ALERT, SD_CRIT, SD_ERR, SD_WARNING, SD_NOTICE, SD_INFO, SD_DEBUG — APIs for <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="sd-daemon"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd-daemon, SD_EMERG, SD_ALERT, SD_CRIT, SD_ERR, SD_WARNING, SD_NOTICE, SD_INFO, SD_DEBUG — APIs for
new-style daemons</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-daemon.h&gt;</pre></div><div class="cmdsynopsis"><p><code class="command">pkg-config --cflags --libs libsystemd</code> </p></div></div><div class="refsect1"><a name="idm214188016064"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="filename">sd-daemon.h</code> provide APIs new-style daemons</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-daemon.h&gt;</pre></div><div class="cmdsynopsis"><p><code class="command">pkg-config --cflags --libs libsystemd</code> </p></div></div><div class="refsect1"><a name="idm214195900512"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="filename">sd-daemon.h</code> provide APIs
for new-style daemons, as implemented by the for new-style daemons, as implemented by the
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a> <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>
init system.</p><p>See init system.</p><p>See
@ -52,11 +52,11 @@
log level system. To use these prefixes simply prefix log level system. To use these prefixes simply prefix
every line with one of these strings. A line that is every line with one of these strings. A line that is
not prefixed will be logged at the default log level not prefixed will be logged at the default log level
SD_INFO.</p><div class="example"><a name="idm214184167584"></a><p class="title"><b>Example 1. Hello World</b></p><div class="example-contents"><p>A daemon may log with the log level SD_INFO.</p><div class="example"><a name="idm214195045552"></a><p class="title"><b>Example 1. Hello World</b></p><div class="example-contents"><p>A daemon may log with the log level
NOTICE by issuing this call:</p><pre class="programlisting">fprintf(stderr, SD_NOTICE "Hello World!\n");</pre></div></div><br class="example-break"></div><div class="refsect1"><a name="idm214180497360"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p><a name="pkgconfig-text"></a>These APIs are implemented as a shared NOTICE by issuing this call:</p><pre class="programlisting">fprintf(stderr, SD_NOTICE "Hello World!\n");</pre></div></div><br class="example-break"></div><div class="refsect1"><a name="idm214192388800"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p><a name="pkgconfig-text"></a>These APIs are implemented as a shared
library, which can be compiled and linked to with the library, which can be compiled and linked to with the
<code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a> <code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a>
file.</p></div><div class="refsect1"><a name="idm214184164912"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> file.</p></div><div class="refsect1"><a name="idm214193723968"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="sd_listen_fds.html"><span class="citerefentry"><span class="refentrytitle">sd_listen_fds</span>(3)</span></a>, <a href="sd_listen_fds.html"><span class="citerefentry"><span class="refentrytitle">sd_listen_fds</span>(3)</span></a>,
<a href="sd_notify.html"><span class="citerefentry"><span class="refentrytitle">sd_notify</span>(3)</span></a>, <a href="sd_notify.html"><span class="citerefentry"><span class="refentrytitle">sd_notify</span>(3)</span></a>,

View File

@ -19,8 +19,8 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="sd-daemon"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd-daemon, SD_EMERG, SD_ALERT, SD_CRIT, SD_ERR, SD_WARNING, SD_NOTICE, SD_INFO, SD_DEBUG — APIs for <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="sd-daemon"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd-daemon, SD_EMERG, SD_ALERT, SD_CRIT, SD_ERR, SD_WARNING, SD_NOTICE, SD_INFO, SD_DEBUG — APIs for
new-style daemons</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-daemon.h&gt;</pre></div><div class="cmdsynopsis"><p><code class="command">pkg-config --cflags --libs libsystemd</code> </p></div></div><div class="refsect1"><a name="idm214188016064"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="filename">sd-daemon.h</code> provide APIs new-style daemons</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-daemon.h&gt;</pre></div><div class="cmdsynopsis"><p><code class="command">pkg-config --cflags --libs libsystemd</code> </p></div></div><div class="refsect1"><a name="idm214195900512"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="filename">sd-daemon.h</code> provide APIs
for new-style daemons, as implemented by the for new-style daemons, as implemented by the
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a> <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>
init system.</p><p>See init system.</p><p>See
@ -52,11 +52,11 @@
log level system. To use these prefixes simply prefix log level system. To use these prefixes simply prefix
every line with one of these strings. A line that is every line with one of these strings. A line that is
not prefixed will be logged at the default log level not prefixed will be logged at the default log level
SD_INFO.</p><div class="example"><a name="idm214184167584"></a><p class="title"><b>Example 1. Hello World</b></p><div class="example-contents"><p>A daemon may log with the log level SD_INFO.</p><div class="example"><a name="idm214195045552"></a><p class="title"><b>Example 1. Hello World</b></p><div class="example-contents"><p>A daemon may log with the log level
NOTICE by issuing this call:</p><pre class="programlisting">fprintf(stderr, SD_NOTICE "Hello World!\n");</pre></div></div><br class="example-break"></div><div class="refsect1"><a name="idm214180497360"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p><a name="pkgconfig-text"></a>These APIs are implemented as a shared NOTICE by issuing this call:</p><pre class="programlisting">fprintf(stderr, SD_NOTICE "Hello World!\n");</pre></div></div><br class="example-break"></div><div class="refsect1"><a name="idm214192388800"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p><a name="pkgconfig-text"></a>These APIs are implemented as a shared
library, which can be compiled and linked to with the library, which can be compiled and linked to with the
<code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a> <code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a>
file.</p></div><div class="refsect1"><a name="idm214184164912"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> file.</p></div><div class="refsect1"><a name="idm214193723968"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="sd_listen_fds.html"><span class="citerefentry"><span class="refentrytitle">sd_listen_fds</span>(3)</span></a>, <a href="sd_listen_fds.html"><span class="citerefentry"><span class="refentrytitle">sd_listen_fds</span>(3)</span></a>,
<a href="sd_notify.html"><span class="citerefentry"><span class="refentrytitle">sd_notify</span>(3)</span></a>, <a href="sd_notify.html"><span class="citerefentry"><span class="refentrytitle">sd_notify</span>(3)</span></a>,

View File

@ -19,8 +19,8 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="sd-daemon"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd-daemon, SD_EMERG, SD_ALERT, SD_CRIT, SD_ERR, SD_WARNING, SD_NOTICE, SD_INFO, SD_DEBUG — APIs for <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="sd-daemon"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd-daemon, SD_EMERG, SD_ALERT, SD_CRIT, SD_ERR, SD_WARNING, SD_NOTICE, SD_INFO, SD_DEBUG — APIs for
new-style daemons</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-daemon.h&gt;</pre></div><div class="cmdsynopsis"><p><code class="command">pkg-config --cflags --libs libsystemd</code> </p></div></div><div class="refsect1"><a name="idm214188016064"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="filename">sd-daemon.h</code> provide APIs new-style daemons</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-daemon.h&gt;</pre></div><div class="cmdsynopsis"><p><code class="command">pkg-config --cflags --libs libsystemd</code> </p></div></div><div class="refsect1"><a name="idm214195900512"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="filename">sd-daemon.h</code> provide APIs
for new-style daemons, as implemented by the for new-style daemons, as implemented by the
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a> <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>
init system.</p><p>See init system.</p><p>See
@ -52,11 +52,11 @@
log level system. To use these prefixes simply prefix log level system. To use these prefixes simply prefix
every line with one of these strings. A line that is every line with one of these strings. A line that is
not prefixed will be logged at the default log level not prefixed will be logged at the default log level
SD_INFO.</p><div class="example"><a name="idm214184167584"></a><p class="title"><b>Example 1. Hello World</b></p><div class="example-contents"><p>A daemon may log with the log level SD_INFO.</p><div class="example"><a name="idm214195045552"></a><p class="title"><b>Example 1. Hello World</b></p><div class="example-contents"><p>A daemon may log with the log level
NOTICE by issuing this call:</p><pre class="programlisting">fprintf(stderr, SD_NOTICE "Hello World!\n");</pre></div></div><br class="example-break"></div><div class="refsect1"><a name="idm214180497360"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p><a name="pkgconfig-text"></a>These APIs are implemented as a shared NOTICE by issuing this call:</p><pre class="programlisting">fprintf(stderr, SD_NOTICE "Hello World!\n");</pre></div></div><br class="example-break"></div><div class="refsect1"><a name="idm214192388800"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p><a name="pkgconfig-text"></a>These APIs are implemented as a shared
library, which can be compiled and linked to with the library, which can be compiled and linked to with the
<code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a> <code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a>
file.</p></div><div class="refsect1"><a name="idm214184164912"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> file.</p></div><div class="refsect1"><a name="idm214193723968"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="sd_listen_fds.html"><span class="citerefentry"><span class="refentrytitle">sd_listen_fds</span>(3)</span></a>, <a href="sd_listen_fds.html"><span class="citerefentry"><span class="refentrytitle">sd_listen_fds</span>(3)</span></a>,
<a href="sd_notify.html"><span class="citerefentry"><span class="refentrytitle">sd_notify</span>(3)</span></a>, <a href="sd_notify.html"><span class="citerefentry"><span class="refentrytitle">sd_notify</span>(3)</span></a>,

View File

@ -19,7 +19,7 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="sd-id128"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd-id128, sd_id128_t, SD_ID128_MAKE, SD_ID128_CONST_STR, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL, sd_id128_equal — APIs for processing 128-bit IDs</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-id128.h&gt;</pre></div><div class="cmdsynopsis"><p><code class="command">pkg-config --cflags --libs libsystemd</code> </p></div></div><div class="refsect1"><a name="idm214203487536"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="filename">sd-id128.h</code> provides APIs to <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="sd-id128"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd-id128, sd_id128_t, SD_ID128_MAKE, SD_ID128_CONST_STR, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL, sd_id128_equal — APIs for processing 128-bit IDs</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-id128.h&gt;</pre></div><div class="cmdsynopsis"><p><code class="command">pkg-config --cflags --libs libsystemd</code> </p></div></div><div class="refsect1"><a name="idm214191197712"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="filename">sd-id128.h</code> provides APIs to
process and generate 128-bit ID values. The 128-bit ID process and generate 128-bit ID values. The 128-bit ID
values processed and generated by these APIs are a values processed and generated by these APIs are a
generalization of OSF UUIDs as defined by <a class="ulink" href="https://tools.ietf.org/html/rfc4122" target="_top">RFC generalization of OSF UUIDs as defined by <a class="ulink" href="https://tools.ietf.org/html/rfc4122" target="_top">RFC
@ -73,10 +73,10 @@
}</pre><p>Note that new, randomized IDs may be generated }</pre><p>Note that new, randomized IDs may be generated
with with
<a href="journalctl.html"><span class="citerefentry"><span class="refentrytitle">journalctl</span>(1)</span></a>'s <a href="journalctl.html"><span class="citerefentry"><span class="refentrytitle">journalctl</span>(1)</span></a>'s
<code class="option">--new-id</code> option.</p></div><div class="refsect1"><a name="idm214194742784"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p><a name="pkgconfig-text"></a>These APIs are implemented as a shared <code class="option">--new-id</code> option.</p></div><div class="refsect1"><a name="idm214187744304"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p><a name="pkgconfig-text"></a>These APIs are implemented as a shared
library, which can be compiled and linked to with the library, which can be compiled and linked to with the
<code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a> <code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a>
file.</p></div><div class="refsect1"><a name="idm214203585552"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> file.</p></div><div class="refsect1"><a name="idm214191643840"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="sd_id128_to_string.html"><span class="citerefentry"><span class="refentrytitle">sd_id128_to_string</span>(3)</span></a>, <a href="sd_id128_to_string.html"><span class="citerefentry"><span class="refentrytitle">sd_id128_to_string</span>(3)</span></a>,
<a href="sd_id128_randomize.html"><span class="citerefentry"><span class="refentrytitle">sd_id128_randomize</span>(3)</span></a>, <a href="sd_id128_randomize.html"><span class="citerefentry"><span class="refentrytitle">sd_id128_randomize</span>(3)</span></a>,

View File

@ -19,7 +19,7 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="sd-id128"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd-id128, sd_id128_t, SD_ID128_MAKE, SD_ID128_CONST_STR, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL, sd_id128_equal — APIs for processing 128-bit IDs</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-id128.h&gt;</pre></div><div class="cmdsynopsis"><p><code class="command">pkg-config --cflags --libs libsystemd</code> </p></div></div><div class="refsect1"><a name="idm214203487536"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="filename">sd-id128.h</code> provides APIs to <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="sd-id128"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd-id128, sd_id128_t, SD_ID128_MAKE, SD_ID128_CONST_STR, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL, sd_id128_equal — APIs for processing 128-bit IDs</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-id128.h&gt;</pre></div><div class="cmdsynopsis"><p><code class="command">pkg-config --cflags --libs libsystemd</code> </p></div></div><div class="refsect1"><a name="idm214191197712"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="filename">sd-id128.h</code> provides APIs to
process and generate 128-bit ID values. The 128-bit ID process and generate 128-bit ID values. The 128-bit ID
values processed and generated by these APIs are a values processed and generated by these APIs are a
generalization of OSF UUIDs as defined by <a class="ulink" href="https://tools.ietf.org/html/rfc4122" target="_top">RFC generalization of OSF UUIDs as defined by <a class="ulink" href="https://tools.ietf.org/html/rfc4122" target="_top">RFC
@ -73,10 +73,10 @@
}</pre><p>Note that new, randomized IDs may be generated }</pre><p>Note that new, randomized IDs may be generated
with with
<a href="journalctl.html"><span class="citerefentry"><span class="refentrytitle">journalctl</span>(1)</span></a>'s <a href="journalctl.html"><span class="citerefentry"><span class="refentrytitle">journalctl</span>(1)</span></a>'s
<code class="option">--new-id</code> option.</p></div><div class="refsect1"><a name="idm214194742784"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p><a name="pkgconfig-text"></a>These APIs are implemented as a shared <code class="option">--new-id</code> option.</p></div><div class="refsect1"><a name="idm214187744304"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p><a name="pkgconfig-text"></a>These APIs are implemented as a shared
library, which can be compiled and linked to with the library, which can be compiled and linked to with the
<code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a> <code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a>
file.</p></div><div class="refsect1"><a name="idm214203585552"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> file.</p></div><div class="refsect1"><a name="idm214191643840"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="sd_id128_to_string.html"><span class="citerefentry"><span class="refentrytitle">sd_id128_to_string</span>(3)</span></a>, <a href="sd_id128_to_string.html"><span class="citerefentry"><span class="refentrytitle">sd_id128_to_string</span>(3)</span></a>,
<a href="sd_id128_randomize.html"><span class="citerefentry"><span class="refentrytitle">sd_id128_randomize</span>(3)</span></a>, <a href="sd_id128_randomize.html"><span class="citerefentry"><span class="refentrytitle">sd_id128_randomize</span>(3)</span></a>,

View File

@ -19,7 +19,7 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="sd-id128"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd-id128, sd_id128_t, SD_ID128_MAKE, SD_ID128_CONST_STR, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL, sd_id128_equal — APIs for processing 128-bit IDs</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-id128.h&gt;</pre></div><div class="cmdsynopsis"><p><code class="command">pkg-config --cflags --libs libsystemd</code> </p></div></div><div class="refsect1"><a name="idm214203487536"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="filename">sd-id128.h</code> provides APIs to <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="sd-id128"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd-id128, sd_id128_t, SD_ID128_MAKE, SD_ID128_CONST_STR, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL, sd_id128_equal — APIs for processing 128-bit IDs</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-id128.h&gt;</pre></div><div class="cmdsynopsis"><p><code class="command">pkg-config --cflags --libs libsystemd</code> </p></div></div><div class="refsect1"><a name="idm214191197712"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="filename">sd-id128.h</code> provides APIs to
process and generate 128-bit ID values. The 128-bit ID process and generate 128-bit ID values. The 128-bit ID
values processed and generated by these APIs are a values processed and generated by these APIs are a
generalization of OSF UUIDs as defined by <a class="ulink" href="https://tools.ietf.org/html/rfc4122" target="_top">RFC generalization of OSF UUIDs as defined by <a class="ulink" href="https://tools.ietf.org/html/rfc4122" target="_top">RFC
@ -73,10 +73,10 @@
}</pre><p>Note that new, randomized IDs may be generated }</pre><p>Note that new, randomized IDs may be generated
with with
<a href="journalctl.html"><span class="citerefentry"><span class="refentrytitle">journalctl</span>(1)</span></a>'s <a href="journalctl.html"><span class="citerefentry"><span class="refentrytitle">journalctl</span>(1)</span></a>'s
<code class="option">--new-id</code> option.</p></div><div class="refsect1"><a name="idm214194742784"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p><a name="pkgconfig-text"></a>These APIs are implemented as a shared <code class="option">--new-id</code> option.</p></div><div class="refsect1"><a name="idm214187744304"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p><a name="pkgconfig-text"></a>These APIs are implemented as a shared
library, which can be compiled and linked to with the library, which can be compiled and linked to with the
<code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a> <code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a>
file.</p></div><div class="refsect1"><a name="idm214203585552"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> file.</p></div><div class="refsect1"><a name="idm214191643840"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="sd_id128_to_string.html"><span class="citerefentry"><span class="refentrytitle">sd_id128_to_string</span>(3)</span></a>, <a href="sd_id128_to_string.html"><span class="citerefentry"><span class="refentrytitle">sd_id128_to_string</span>(3)</span></a>,
<a href="sd_id128_randomize.html"><span class="citerefentry"><span class="refentrytitle">sd_id128_randomize</span>(3)</span></a>, <a href="sd_id128_randomize.html"><span class="citerefentry"><span class="refentrytitle">sd_id128_randomize</span>(3)</span></a>,

View File

@ -19,7 +19,7 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="sd-id128"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd-id128, sd_id128_t, SD_ID128_MAKE, SD_ID128_CONST_STR, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL, sd_id128_equal — APIs for processing 128-bit IDs</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-id128.h&gt;</pre></div><div class="cmdsynopsis"><p><code class="command">pkg-config --cflags --libs libsystemd</code> </p></div></div><div class="refsect1"><a name="idm214203487536"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="filename">sd-id128.h</code> provides APIs to <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="sd-id128"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd-id128, sd_id128_t, SD_ID128_MAKE, SD_ID128_CONST_STR, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL, sd_id128_equal — APIs for processing 128-bit IDs</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-id128.h&gt;</pre></div><div class="cmdsynopsis"><p><code class="command">pkg-config --cflags --libs libsystemd</code> </p></div></div><div class="refsect1"><a name="idm214191197712"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="filename">sd-id128.h</code> provides APIs to
process and generate 128-bit ID values. The 128-bit ID process and generate 128-bit ID values. The 128-bit ID
values processed and generated by these APIs are a values processed and generated by these APIs are a
generalization of OSF UUIDs as defined by <a class="ulink" href="https://tools.ietf.org/html/rfc4122" target="_top">RFC generalization of OSF UUIDs as defined by <a class="ulink" href="https://tools.ietf.org/html/rfc4122" target="_top">RFC
@ -73,10 +73,10 @@
}</pre><p>Note that new, randomized IDs may be generated }</pre><p>Note that new, randomized IDs may be generated
with with
<a href="journalctl.html"><span class="citerefentry"><span class="refentrytitle">journalctl</span>(1)</span></a>'s <a href="journalctl.html"><span class="citerefentry"><span class="refentrytitle">journalctl</span>(1)</span></a>'s
<code class="option">--new-id</code> option.</p></div><div class="refsect1"><a name="idm214194742784"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p><a name="pkgconfig-text"></a>These APIs are implemented as a shared <code class="option">--new-id</code> option.</p></div><div class="refsect1"><a name="idm214187744304"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p><a name="pkgconfig-text"></a>These APIs are implemented as a shared
library, which can be compiled and linked to with the library, which can be compiled and linked to with the
<code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a> <code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a>
file.</p></div><div class="refsect1"><a name="idm214203585552"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> file.</p></div><div class="refsect1"><a name="idm214191643840"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="sd_id128_to_string.html"><span class="citerefentry"><span class="refentrytitle">sd_id128_to_string</span>(3)</span></a>, <a href="sd_id128_to_string.html"><span class="citerefentry"><span class="refentrytitle">sd_id128_to_string</span>(3)</span></a>,
<a href="sd_id128_randomize.html"><span class="citerefentry"><span class="refentrytitle">sd_id128_randomize</span>(3)</span></a>, <a href="sd_id128_randomize.html"><span class="citerefentry"><span class="refentrytitle">sd_id128_randomize</span>(3)</span></a>,

View File

@ -19,8 +19,8 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="sd-daemon"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd-daemon, SD_EMERG, SD_ALERT, SD_CRIT, SD_ERR, SD_WARNING, SD_NOTICE, SD_INFO, SD_DEBUG — APIs for <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="sd-daemon"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd-daemon, SD_EMERG, SD_ALERT, SD_CRIT, SD_ERR, SD_WARNING, SD_NOTICE, SD_INFO, SD_DEBUG — APIs for
new-style daemons</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-daemon.h&gt;</pre></div><div class="cmdsynopsis"><p><code class="command">pkg-config --cflags --libs libsystemd</code> </p></div></div><div class="refsect1"><a name="idm214188016064"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="filename">sd-daemon.h</code> provide APIs new-style daemons</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-daemon.h&gt;</pre></div><div class="cmdsynopsis"><p><code class="command">pkg-config --cflags --libs libsystemd</code> </p></div></div><div class="refsect1"><a name="idm214195900512"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="filename">sd-daemon.h</code> provide APIs
for new-style daemons, as implemented by the for new-style daemons, as implemented by the
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a> <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>
init system.</p><p>See init system.</p><p>See
@ -52,11 +52,11 @@
log level system. To use these prefixes simply prefix log level system. To use these prefixes simply prefix
every line with one of these strings. A line that is every line with one of these strings. A line that is
not prefixed will be logged at the default log level not prefixed will be logged at the default log level
SD_INFO.</p><div class="example"><a name="idm214184167584"></a><p class="title"><b>Example 1. Hello World</b></p><div class="example-contents"><p>A daemon may log with the log level SD_INFO.</p><div class="example"><a name="idm214195045552"></a><p class="title"><b>Example 1. Hello World</b></p><div class="example-contents"><p>A daemon may log with the log level
NOTICE by issuing this call:</p><pre class="programlisting">fprintf(stderr, SD_NOTICE "Hello World!\n");</pre></div></div><br class="example-break"></div><div class="refsect1"><a name="idm214180497360"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p><a name="pkgconfig-text"></a>These APIs are implemented as a shared NOTICE by issuing this call:</p><pre class="programlisting">fprintf(stderr, SD_NOTICE "Hello World!\n");</pre></div></div><br class="example-break"></div><div class="refsect1"><a name="idm214192388800"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p><a name="pkgconfig-text"></a>These APIs are implemented as a shared
library, which can be compiled and linked to with the library, which can be compiled and linked to with the
<code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a> <code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a>
file.</p></div><div class="refsect1"><a name="idm214184164912"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> file.</p></div><div class="refsect1"><a name="idm214193723968"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="sd_listen_fds.html"><span class="citerefentry"><span class="refentrytitle">sd_listen_fds</span>(3)</span></a>, <a href="sd_listen_fds.html"><span class="citerefentry"><span class="refentrytitle">sd_listen_fds</span>(3)</span></a>,
<a href="sd_notify.html"><span class="citerefentry"><span class="refentrytitle">sd_notify</span>(3)</span></a>, <a href="sd_notify.html"><span class="citerefentry"><span class="refentrytitle">sd_notify</span>(3)</span></a>,

View File

@ -19,8 +19,8 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="sd_journal_get_fd"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd_journal_get_fd, sd_journal_get_events, sd_journal_get_timeout, sd_journal_process, sd_journal_wait, sd_journal_reliable_fd, SD_JOURNAL_NOP, SD_JOURNAL_APPEND, SD_JOURNAL_INVALIDATE — Journal change notification <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="sd_journal_get_fd"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd_journal_get_fd, sd_journal_get_events, sd_journal_get_timeout, sd_journal_process, sd_journal_wait, sd_journal_reliable_fd, SD_JOURNAL_NOP, SD_JOURNAL_APPEND, SD_JOURNAL_INVALIDATE — Journal change notification
interface</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-journal.h&gt;</pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_get_fd</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_get_events</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_get_timeout</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>uint64_t *<var class="pdparam">timeout_usec</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_process</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_wait</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>uint64_t <var class="pdparam">timeout_usec</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_reliable_fd</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm214189551600"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="function">sd_journal_get_fd()</code> returns interface</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-journal.h&gt;</pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_get_fd</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_get_events</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_get_timeout</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>uint64_t *<var class="pdparam">timeout_usec</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_process</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_wait</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>uint64_t <var class="pdparam">timeout_usec</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_reliable_fd</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm214185830672"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="function">sd_journal_get_fd()</code> returns
a file descriptor that may be asynchronously polled in a file descriptor that may be asynchronously polled in
an external event loop and is signaled as soon as the an external event loop and is signaled as soon as the
journal changes, because new entries or files were journal changes, because new entries or files were
@ -112,7 +112,7 @@ else {
no need to invoke this function directly as no need to invoke this function directly as
<code class="function">sd_journal_get_timeout()</code> on these <code class="function">sd_journal_get_timeout()</code> on these
file systems will ask for timeouts explicitly file systems will ask for timeouts explicitly
anyway.</p></div><div class="refsect1"><a name="idm214189511696"></a><h2 id="Return Value">Return Value<a class="headerlink" title="Permalink to this headline" href="#Return%20Value"></a></h2><p><code class="function">sd_journal_get_fd()</code> returns anyway.</p></div><div class="refsect1"><a name="idm214185790416"></a><h2 id="Return Value">Return Value<a class="headerlink" title="Permalink to this headline" href="#Return%20Value"></a></h2><p><code class="function">sd_journal_get_fd()</code> returns
a valid file descriptor on success or a negative a valid file descriptor on success or a negative
errno-style error code.</p><p><code class="function">sd_journal_get_events()</code> errno-style error code.</p><p><code class="function">sd_journal_get_events()</code>
returns a combination of <code class="constant">POLLIN</code>, returns a combination of <code class="constant">POLLIN</code>,
@ -138,7 +138,7 @@ else {
probably refresh their entire display, while in the probably refresh their entire display, while in the
case of <code class="constant">SD_JOURNAL_APPEND</code>, it is case of <code class="constant">SD_JOURNAL_APPEND</code>, it is
sufficient to simply continue reading at the previous sufficient to simply continue reading at the previous
end of the journal.</p></div><div class="refsect1"><a name="idm214184533264"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p>The <code class="function">sd_journal_get_fd()</code>, end of the journal.</p></div><div class="refsect1"><a name="idm214180864000"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p>The <code class="function">sd_journal_get_fd()</code>,
<code class="function">sd_journal_get_events()</code>, <code class="function">sd_journal_get_events()</code>,
<code class="function">sd_journal_reliable_fd()</code>, <code class="function">sd_journal_reliable_fd()</code>,
<code class="function">sd_journal_process()</code> and <code class="function">sd_journal_process()</code> and
@ -146,7 +146,7 @@ else {
available as a shared library, which can be compiled and available as a shared library, which can be compiled and
linked to with the linked to with the
<code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a> <code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a>
file.</p></div><div class="refsect1"><a name="idm214184527680"></a><h2 id="Examples">Examples<a class="headerlink" title="Permalink to this headline" href="#Examples"></a></h2><p>Iterating through the journal, in a live view tracking all changes:</p><pre class="programlisting">#include &lt;stdio.h&gt; file.</p></div><div class="refsect1"><a name="idm214180858416"></a><h2 id="Examples">Examples<a class="headerlink" title="Permalink to this headline" href="#Examples"></a></h2><p>Iterating through the journal, in a live view tracking all changes:</p><pre class="programlisting">#include &lt;stdio.h&gt;
#include &lt;string.h&gt; #include &lt;string.h&gt;
#include &lt;systemd/sd-journal.h&gt; #include &lt;systemd/sd-journal.h&gt;
@ -208,7 +208,7 @@ int wait_for_changes(sd_journal *j) {
pollfd.events = sd_journal_get_events(j); pollfd.events = sd_journal_get_events(j);
poll(&amp;pollfd, 1, msec); poll(&amp;pollfd, 1, msec);
return sd_journal_process(j); return sd_journal_process(j);
}</pre></div><div class="refsect1"><a name="idm214184521056"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> }</pre></div><div class="refsect1"><a name="idm214180851792"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="sd-journal.html"><span class="citerefentry"><span class="refentrytitle">sd-journal</span>(3)</span></a>, <a href="sd-journal.html"><span class="citerefentry"><span class="refentrytitle">sd-journal</span>(3)</span></a>,
<a href="sd_journal_open.html"><span class="citerefentry"><span class="refentrytitle">sd_journal_open</span>(3)</span></a>, <a href="sd_journal_open.html"><span class="citerefentry"><span class="refentrytitle">sd_journal_open</span>(3)</span></a>,

View File

@ -19,7 +19,7 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="sd_journal_open"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd_journal_open, sd_journal_open_directory, sd_journal_open_files, sd_journal_open_container, sd_journal_close, sd_journal, SD_JOURNAL_LOCAL_ONLY, SD_JOURNAL_RUNTIME_ONLY, SD_JOURNAL_SYSTEM, SD_JOURNAL_CURRENT_USER — Open the system journal for reading</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-journal.h&gt;</pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_open</b>(</code></td><td>sd_journal **<var class="pdparam">ret</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_open_directory</b>(</code></td><td>sd_journal **<var class="pdparam">ret</var>, </td></tr><tr><td> </td><td>const char *<var class="pdparam">path</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_open_files</b>(</code></td><td>sd_journal **<var class="pdparam">ret</var>, </td></tr><tr><td> </td><td>const char **<var class="pdparam">paths</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_open_container</b>(</code></td><td>sd_journal **<var class="pdparam">ret</var>, </td></tr><tr><td> </td><td>const char *<var class="pdparam">machine</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">void <b class="fsfunc">sd_journal_close</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm214195234384"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="function">sd_journal_open()</code> opens <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="sd_journal_open"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd_journal_open, sd_journal_open_directory, sd_journal_open_files, sd_journal_open_container, sd_journal_close, sd_journal, SD_JOURNAL_LOCAL_ONLY, SD_JOURNAL_RUNTIME_ONLY, SD_JOURNAL_SYSTEM, SD_JOURNAL_CURRENT_USER — Open the system journal for reading</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-journal.h&gt;</pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_open</b>(</code></td><td>sd_journal **<var class="pdparam">ret</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_open_directory</b>(</code></td><td>sd_journal **<var class="pdparam">ret</var>, </td></tr><tr><td> </td><td>const char *<var class="pdparam">path</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_open_files</b>(</code></td><td>sd_journal **<var class="pdparam">ret</var>, </td></tr><tr><td> </td><td>const char **<var class="pdparam">paths</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_open_container</b>(</code></td><td>sd_journal **<var class="pdparam">ret</var>, </td></tr><tr><td> </td><td>const char *<var class="pdparam">machine</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">void <b class="fsfunc">sd_journal_close</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm214202620928"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="function">sd_journal_open()</code> opens
the log journal for reading. It will find all journal the log journal for reading. It will find all journal
files automatically and interleave them automatically files automatically and interleave them automatically
when reading. As first argument it takes a pointer to when reading. As first argument it takes a pointer to
@ -95,18 +95,18 @@
locally, to its closest entry in time) locally, to its closest entry in time)
<a href="sd_journal_seek_cursor.html"><span class="citerefentry"><span class="refentrytitle">sd_journal_seek_cursor</span>(3)</span></a>.</p><p>Notification of journal changes is available via <a href="sd_journal_seek_cursor.html"><span class="citerefentry"><span class="refentrytitle">sd_journal_seek_cursor</span>(3)</span></a>.</p><p>Notification of journal changes is available via
<code class="function">sd_journal_get_fd()</code> and related <code class="function">sd_journal_get_fd()</code> and related
calls.</p></div><div class="refsect1"><a name="idm214195199952"></a><h2 id="Return Value">Return Value<a class="headerlink" title="Permalink to this headline" href="#Return%20Value"></a></h2><p>The <code class="function">sd_journal_open()</code>, calls.</p></div><div class="refsect1"><a name="idm214202586464"></a><h2 id="Return Value">Return Value<a class="headerlink" title="Permalink to this headline" href="#Return%20Value"></a></h2><p>The <code class="function">sd_journal_open()</code>,
<code class="function">sd_journal_open_directory()</code>, and <code class="function">sd_journal_open_directory()</code>, and
<code class="function">sd_journal_open_files()</code> calls <code class="function">sd_journal_open_files()</code> calls
return 0 on success or a negative errno-style error return 0 on success or a negative errno-style error
code. <code class="function">sd_journal_close()</code> returns code. <code class="function">sd_journal_close()</code> returns
nothing.</p></div><div class="refsect1"><a name="idm214195195744"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p>The <code class="function">sd_journal_open()</code>, nothing.</p></div><div class="refsect1"><a name="idm214202582256"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p>The <code class="function">sd_journal_open()</code>,
<code class="function">sd_journal_open_directory()</code> and <code class="function">sd_journal_open_directory()</code> and
<code class="function">sd_journal_close()</code> interfaces are <code class="function">sd_journal_close()</code> interfaces are
available as a shared library, which can be compiled and available as a shared library, which can be compiled and
linked to with the linked to with the
<code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a> <code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a>
file.</p></div><div class="refsect1"><a name="idm214190277136"></a><h2 id="History">History<a class="headerlink" title="Permalink to this headline" href="#History"></a></h2><p><code class="function">sd_journal_open()</code>, file.</p></div><div class="refsect1"><a name="idm214197661808"></a><h2 id="History">History<a class="headerlink" title="Permalink to this headline" href="#History"></a></h2><p><code class="function">sd_journal_open()</code>,
<code class="function">sd_journal_close()</code>, <code class="function">sd_journal_close()</code>,
<code class="constant">SD_JOURNAL_LOCAL_ONLY</code>, <code class="constant">SD_JOURNAL_LOCAL_ONLY</code>,
<code class="constant">SD_JOURNAL_RUNTIME_ONLY</code>, <code class="constant">SD_JOURNAL_RUNTIME_ONLY</code>,
@ -117,7 +117,7 @@
and <code class="function">sd_journal_open_files()</code> and <code class="function">sd_journal_open_files()</code>
were added in systemd-205. were added in systemd-205.
<code class="constant">SD_JOURNAL_SYSTEM_ONLY</code> <code class="constant">SD_JOURNAL_SYSTEM_ONLY</code>
was deprecated.</p></div><div class="refsect1"><a name="idm214190270800"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> was deprecated.</p></div><div class="refsect1"><a name="idm214197655472"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="sd-journal.html"><span class="citerefentry"><span class="refentrytitle">sd-journal</span>(3)</span></a>, <a href="sd-journal.html"><span class="citerefentry"><span class="refentrytitle">sd-journal</span>(3)</span></a>,
<a href="sd_journal_next.html"><span class="citerefentry"><span class="refentrytitle">sd_journal_next</span>(3)</span></a>, <a href="sd_journal_next.html"><span class="citerefentry"><span class="refentrytitle">sd_journal_next</span>(3)</span></a>,

View File

@ -19,7 +19,7 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="sd_journal_next"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd_journal_next, sd_journal_previous, sd_journal_next_skip, sd_journal_previous_skip, SD_JOURNAL_FOREACH, SD_JOURNAL_FOREACH_BACKWARDS — Advance or set back the read pointer in the journal</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-journal.h&gt;</pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_next</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_previous</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_next_skip</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>uint64_t <var class="pdparam">skip</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_previous_skip</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>uint64_t <var class="pdparam">skip</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef"><b class="fsfunc">SD_JOURNAL_FOREACH</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef"><b class="fsfunc">SD_JOURNAL_FOREACH_BACKWARDS</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm214184331424"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="function">sd_journal_next()</code> advances <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="sd_journal_next"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd_journal_next, sd_journal_previous, sd_journal_next_skip, sd_journal_previous_skip, SD_JOURNAL_FOREACH, SD_JOURNAL_FOREACH_BACKWARDS — Advance or set back the read pointer in the journal</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-journal.h&gt;</pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_next</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_previous</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_next_skip</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>uint64_t <var class="pdparam">skip</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_previous_skip</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>uint64_t <var class="pdparam">skip</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef"><b class="fsfunc">SD_JOURNAL_FOREACH</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef"><b class="fsfunc">SD_JOURNAL_FOREACH_BACKWARDS</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm214197612176"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="function">sd_journal_next()</code> advances
the read pointer into the journal by one entry. The the read pointer into the journal by one entry. The
only argument taken is a journal context object as only argument taken is a journal context object as
allocated via allocated via
@ -48,7 +48,7 @@
for an example. Similarly, for an example. Similarly,
<code class="function">SD_JOURNAL_FOREACH_BACKWARDS()</code> <code class="function">SD_JOURNAL_FOREACH_BACKWARDS()</code>
may be used for iterating the journal in reverse may be used for iterating the journal in reverse
order.</p></div><div class="refsect1"><a name="idm214184318032"></a><h2 id="Return Value">Return Value<a class="headerlink" title="Permalink to this headline" href="#Return%20Value"></a></h2><p>The four calls return the number of entries order.</p></div><div class="refsect1"><a name="idm214197598784"></a><h2 id="Return Value">Return Value<a class="headerlink" title="Permalink to this headline" href="#Return%20Value"></a></h2><p>The four calls return the number of entries
advanced/set back on success or a negative errno-style advanced/set back on success or a negative errno-style
error code. When the end or beginning of the journal error code. When the end or beginning of the journal
is reached, a number smaller than requested is is reached, a number smaller than requested is
@ -57,13 +57,13 @@
<code class="function">sd_journal_previous()</code> reach the <code class="function">sd_journal_previous()</code> reach the
end/beginning of the journal they will return 0, end/beginning of the journal they will return 0,
instead of 1 when they are successful. This should be instead of 1 when they are successful. This should be
considered an EOF marker.</p></div><div class="refsect1"><a name="idm214184307648"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p>The <code class="function">sd_journal_next()</code>, <code class="function">sd_journal_previous()</code>, considered an EOF marker.</p></div><div class="refsect1"><a name="idm214197588368"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p>The <code class="function">sd_journal_next()</code>, <code class="function">sd_journal_previous()</code>,
<code class="function">sd_journal_next_skip()</code> and <code class="function">sd_journal_next_skip()</code> and
<code class="function">sd_journal_previous_skip()</code> interfaces are <code class="function">sd_journal_previous_skip()</code> interfaces are
available as a shared library, which can be compiled and available as a shared library, which can be compiled and
linked to with the linked to with the
<code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a> <code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a>
file.</p></div><div class="refsect1"><a name="idm214184302064"></a><h2 id="Examples">Examples<a class="headerlink" title="Permalink to this headline" href="#Examples"></a></h2><p>Iterating through the journal:</p><pre class="programlisting">#include &lt;stdio.h&gt; file.</p></div><div class="refsect1"><a name="idm214197582832"></a><h2 id="Examples">Examples<a class="headerlink" title="Permalink to this headline" href="#Examples"></a></h2><p>Iterating through the journal:</p><pre class="programlisting">#include &lt;stdio.h&gt;
#include &lt;string.h&gt; #include &lt;string.h&gt;
#include &lt;systemd/sd-journal.h&gt; #include &lt;systemd/sd-journal.h&gt;
@ -79,7 +79,7 @@ int main(int argc, char *argv[]) {
const char *d; const char *d;
size_t l; size_t l;
r = sd_journal_get_data(j, "MESSAGE", &amp;d, &amp;l); r = sd_journal_get_data(j, "MESSAGE", (const void **)&amp;d, &amp;l);
if (r &lt; 0) { if (r &lt; 0) {
fprintf(stderr, "Failed to read message field: %s\n", strerror(-r)); fprintf(stderr, "Failed to read message field: %s\n", strerror(-r));
continue; continue;
@ -89,7 +89,7 @@ int main(int argc, char *argv[]) {
} }
sd_journal_close(j); sd_journal_close(j);
return 0; return 0;
}</pre></div><div class="refsect1"><a name="idm214184298560"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> }</pre></div><div class="refsect1"><a name="idm214197579328"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="sd-journal.html"><span class="citerefentry"><span class="refentrytitle">sd-journal</span>(3)</span></a>, <a href="sd-journal.html"><span class="citerefentry"><span class="refentrytitle">sd-journal</span>(3)</span></a>,
<a href="sd_journal_open.html"><span class="citerefentry"><span class="refentrytitle">sd_journal_open</span>(3)</span></a>, <a href="sd_journal_open.html"><span class="citerefentry"><span class="refentrytitle">sd_journal_open</span>(3)</span></a>,

View File

@ -19,7 +19,7 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="sd_journal_next"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd_journal_next, sd_journal_previous, sd_journal_next_skip, sd_journal_previous_skip, SD_JOURNAL_FOREACH, SD_JOURNAL_FOREACH_BACKWARDS — Advance or set back the read pointer in the journal</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-journal.h&gt;</pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_next</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_previous</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_next_skip</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>uint64_t <var class="pdparam">skip</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_previous_skip</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>uint64_t <var class="pdparam">skip</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef"><b class="fsfunc">SD_JOURNAL_FOREACH</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef"><b class="fsfunc">SD_JOURNAL_FOREACH_BACKWARDS</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm214184331424"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="function">sd_journal_next()</code> advances <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="sd_journal_next"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd_journal_next, sd_journal_previous, sd_journal_next_skip, sd_journal_previous_skip, SD_JOURNAL_FOREACH, SD_JOURNAL_FOREACH_BACKWARDS — Advance or set back the read pointer in the journal</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-journal.h&gt;</pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_next</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_previous</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_next_skip</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>uint64_t <var class="pdparam">skip</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_previous_skip</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>uint64_t <var class="pdparam">skip</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef"><b class="fsfunc">SD_JOURNAL_FOREACH</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef"><b class="fsfunc">SD_JOURNAL_FOREACH_BACKWARDS</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm214197612176"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="function">sd_journal_next()</code> advances
the read pointer into the journal by one entry. The the read pointer into the journal by one entry. The
only argument taken is a journal context object as only argument taken is a journal context object as
allocated via allocated via
@ -48,7 +48,7 @@
for an example. Similarly, for an example. Similarly,
<code class="function">SD_JOURNAL_FOREACH_BACKWARDS()</code> <code class="function">SD_JOURNAL_FOREACH_BACKWARDS()</code>
may be used for iterating the journal in reverse may be used for iterating the journal in reverse
order.</p></div><div class="refsect1"><a name="idm214184318032"></a><h2 id="Return Value">Return Value<a class="headerlink" title="Permalink to this headline" href="#Return%20Value"></a></h2><p>The four calls return the number of entries order.</p></div><div class="refsect1"><a name="idm214197598784"></a><h2 id="Return Value">Return Value<a class="headerlink" title="Permalink to this headline" href="#Return%20Value"></a></h2><p>The four calls return the number of entries
advanced/set back on success or a negative errno-style advanced/set back on success or a negative errno-style
error code. When the end or beginning of the journal error code. When the end or beginning of the journal
is reached, a number smaller than requested is is reached, a number smaller than requested is
@ -57,13 +57,13 @@
<code class="function">sd_journal_previous()</code> reach the <code class="function">sd_journal_previous()</code> reach the
end/beginning of the journal they will return 0, end/beginning of the journal they will return 0,
instead of 1 when they are successful. This should be instead of 1 when they are successful. This should be
considered an EOF marker.</p></div><div class="refsect1"><a name="idm214184307648"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p>The <code class="function">sd_journal_next()</code>, <code class="function">sd_journal_previous()</code>, considered an EOF marker.</p></div><div class="refsect1"><a name="idm214197588368"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p>The <code class="function">sd_journal_next()</code>, <code class="function">sd_journal_previous()</code>,
<code class="function">sd_journal_next_skip()</code> and <code class="function">sd_journal_next_skip()</code> and
<code class="function">sd_journal_previous_skip()</code> interfaces are <code class="function">sd_journal_previous_skip()</code> interfaces are
available as a shared library, which can be compiled and available as a shared library, which can be compiled and
linked to with the linked to with the
<code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a> <code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a>
file.</p></div><div class="refsect1"><a name="idm214184302064"></a><h2 id="Examples">Examples<a class="headerlink" title="Permalink to this headline" href="#Examples"></a></h2><p>Iterating through the journal:</p><pre class="programlisting">#include &lt;stdio.h&gt; file.</p></div><div class="refsect1"><a name="idm214197582832"></a><h2 id="Examples">Examples<a class="headerlink" title="Permalink to this headline" href="#Examples"></a></h2><p>Iterating through the journal:</p><pre class="programlisting">#include &lt;stdio.h&gt;
#include &lt;string.h&gt; #include &lt;string.h&gt;
#include &lt;systemd/sd-journal.h&gt; #include &lt;systemd/sd-journal.h&gt;
@ -79,7 +79,7 @@ int main(int argc, char *argv[]) {
const char *d; const char *d;
size_t l; size_t l;
r = sd_journal_get_data(j, "MESSAGE", &amp;d, &amp;l); r = sd_journal_get_data(j, "MESSAGE", (const void **)&amp;d, &amp;l);
if (r &lt; 0) { if (r &lt; 0) {
fprintf(stderr, "Failed to read message field: %s\n", strerror(-r)); fprintf(stderr, "Failed to read message field: %s\n", strerror(-r));
continue; continue;
@ -89,7 +89,7 @@ int main(int argc, char *argv[]) {
} }
sd_journal_close(j); sd_journal_close(j);
return 0; return 0;
}</pre></div><div class="refsect1"><a name="idm214184298560"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> }</pre></div><div class="refsect1"><a name="idm214197579328"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="sd-journal.html"><span class="citerefentry"><span class="refentrytitle">sd-journal</span>(3)</span></a>, <a href="sd-journal.html"><span class="citerefentry"><span class="refentrytitle">sd-journal</span>(3)</span></a>,
<a href="sd_journal_open.html"><span class="citerefentry"><span class="refentrytitle">sd_journal_open</span>(3)</span></a>, <a href="sd_journal_open.html"><span class="citerefentry"><span class="refentrytitle">sd_journal_open</span>(3)</span></a>,

View File

@ -19,7 +19,7 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="sd_journal_get_data"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd_journal_get_data, sd_journal_enumerate_data, sd_journal_restart_data, SD_JOURNAL_FOREACH_DATA, sd_journal_set_data_threshold, sd_journal_get_data_threshold — Read data fields from the current journal entry</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-journal.h&gt;</pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_get_data</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>const char *<var class="pdparam">field</var>, </td></tr><tr><td> </td><td>const void **<var class="pdparam">data</var>, </td></tr><tr><td> </td><td>size_t *<var class="pdparam">length</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_enumerate_data</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>const void **<var class="pdparam">data</var>, </td></tr><tr><td> </td><td>size_t *<var class="pdparam">length</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">void <b class="fsfunc">sd_journal_restart_data</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef"><b class="fsfunc">SD_JOURNAL_FOREACH_DATA</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>const void *<var class="pdparam">data</var>, </td></tr><tr><td> </td><td>size_t <var class="pdparam">length</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_set_data_threshold</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>size_t <var class="pdparam">sz</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_get_data_threshold</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>size_t *<var class="pdparam">sz</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm214187428608"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="function">sd_journal_get_data()</code> gets <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="sd_journal_get_data"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd_journal_get_data, sd_journal_enumerate_data, sd_journal_restart_data, SD_JOURNAL_FOREACH_DATA, sd_journal_set_data_threshold, sd_journal_get_data_threshold — Read data fields from the current journal entry</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-journal.h&gt;</pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_get_data</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>const char *<var class="pdparam">field</var>, </td></tr><tr><td> </td><td>const void **<var class="pdparam">data</var>, </td></tr><tr><td> </td><td>size_t *<var class="pdparam">length</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_enumerate_data</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>const void **<var class="pdparam">data</var>, </td></tr><tr><td> </td><td>size_t *<var class="pdparam">length</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">void <b class="fsfunc">sd_journal_restart_data</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef"><b class="fsfunc">SD_JOURNAL_FOREACH_DATA</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>const void *<var class="pdparam">data</var>, </td></tr><tr><td> </td><td>size_t <var class="pdparam">length</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_set_data_threshold</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>size_t <var class="pdparam">sz</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_get_data_threshold</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>size_t *<var class="pdparam">sz</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm214182872080"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="function">sd_journal_get_data()</code> gets
the data object associated with a specific field from the data object associated with a specific field from
the current journal entry. It takes four arguments: the current journal entry. It takes four arguments:
the journal context object, a string with the field the journal context object, a string with the field
@ -77,7 +77,7 @@
having to decompress large compressed data objects in having to decompress large compressed data objects in
full.</p><p><code class="function">sd_journal_get_data_threshold()</code> full.</p><p><code class="function">sd_journal_get_data_threshold()</code>
returns the currently configured data field size returns the currently configured data field size
threshold.</p></div><div class="refsect1"><a name="idm214187402928"></a><h2 id="Return Value">Return Value<a class="headerlink" title="Permalink to this headline" href="#Return%20Value"></a></h2><p><code class="function">sd_journal_get_data()</code> threshold.</p></div><div class="refsect1"><a name="idm214182845904"></a><h2 id="Return Value">Return Value<a class="headerlink" title="Permalink to this headline" href="#Return%20Value"></a></h2><p><code class="function">sd_journal_get_data()</code>
returns 0 on success or a negative errno-style error returns 0 on success or a negative errno-style error
code. If the current entry does not include the code. If the current entry does not include the
specified field, -ENOENT is returned. If specified field, -ENOENT is returned. If
@ -92,7 +92,7 @@
nothing. <code class="function">sd_journal_set_data_threshold()</code> nothing. <code class="function">sd_journal_set_data_threshold()</code>
and <code class="function">sd_journal_get_threshold()</code> and <code class="function">sd_journal_get_threshold()</code>
return 0 on success or a negative errno-style error return 0 on success or a negative errno-style error
code.</p></div><div class="refsect1"><a name="idm214187396880"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p>The <code class="function">sd_journal_get_data()</code>, code.</p></div><div class="refsect1"><a name="idm214182839856"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p>The <code class="function">sd_journal_get_data()</code>,
<code class="function">sd_journal_enumerate_data()</code>, <code class="function">sd_journal_enumerate_data()</code>,
<code class="function">sd_journal_restart_data()</code>, <code class="function">sd_journal_restart_data()</code>,
<code class="function">sd_journal_set_data_threshold()</code> <code class="function">sd_journal_set_data_threshold()</code>
@ -101,7 +101,7 @@
interfaces are available as a shared library, which can interfaces are available as a shared library, which can
be compiled and linked to with the be compiled and linked to with the
<code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a> <code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a>
file.</p></div><div class="refsect1"><a name="idm214187390528"></a><h2 id="Examples">Examples<a class="headerlink" title="Permalink to this headline" href="#Examples"></a></h2><p>See file.</p></div><div class="refsect1"><a name="idm214177917392"></a><h2 id="Examples">Examples<a class="headerlink" title="Permalink to this headline" href="#Examples"></a></h2><p>See
<a href="sd_journal_next.html"><span class="citerefentry"><span class="refentrytitle">sd_journal_next</span>(3)</span></a> <a href="sd_journal_next.html"><span class="citerefentry"><span class="refentrytitle">sd_journal_next</span>(3)</span></a>
for a complete example how to use for a complete example how to use
<code class="function">sd_journal_get_data()</code>.</p><p>Use the <code class="function">sd_journal_get_data()</code>.</p><p>Use the
@ -110,11 +110,11 @@
entry:</p><pre class="programlisting">... entry:</p><pre class="programlisting">...
int print_fields(sd_journal *j) { int print_fields(sd_journal *j) {
const void *data; const void *data;
size_t l; size_t length;
SD_JOURNAL_FOREACH_DATA(j, data, length) SD_JOURNAL_FOREACH_DATA(j, data, length)
printf("%.*s\n", (int) length, data); printf("%.*s\n", (int) length, data);
} }
...</pre></div><div class="refsect1"><a name="idm214182417888"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> ...</pre></div><div class="refsect1"><a name="idm214177912896"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="systemd.journal-fields.html"><span class="citerefentry"><span class="refentrytitle">systemd.journal-fields</span>(7)</span></a>, <a href="systemd.journal-fields.html"><span class="citerefentry"><span class="refentrytitle">systemd.journal-fields</span>(7)</span></a>,
<a href="sd-journal.html"><span class="citerefentry"><span class="refentrytitle">sd-journal</span>(3)</span></a>, <a href="sd-journal.html"><span class="citerefentry"><span class="refentrytitle">sd-journal</span>(3)</span></a>,

View File

@ -19,7 +19,7 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="sd_journal_query_unique"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd_journal_query_unique, sd_journal_enumerate_unique, sd_journal_restart_unique, SD_JOURNAL_FOREACH_UNIQUE — Read unique data fields from the journal</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-journal.h&gt;</pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_query_unique</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>const char *<var class="pdparam">field</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_enumerate_unique</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>const void **<var class="pdparam">data</var>, </td></tr><tr><td> </td><td>size_t *<var class="pdparam">length</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">void <b class="fsfunc">sd_journal_restart_unique</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef"><b class="fsfunc">SD_JOURNAL_FOREACH_UNIQUE</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>const void *<var class="pdparam">data</var>, </td></tr><tr><td> </td><td>size_t <var class="pdparam">length</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm214170804784"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="function">sd_journal_query_unique()</code> <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="sd_journal_query_unique"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd_journal_query_unique, sd_journal_enumerate_unique, sd_journal_restart_unique, SD_JOURNAL_FOREACH_UNIQUE — Read unique data fields from the journal</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-journal.h&gt;</pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_query_unique</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>const char *<var class="pdparam">field</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_enumerate_unique</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>const void **<var class="pdparam">data</var>, </td></tr><tr><td> </td><td>size_t *<var class="pdparam">length</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">void <b class="fsfunc">sd_journal_restart_unique</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef"><b class="fsfunc">SD_JOURNAL_FOREACH_UNIQUE</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>const void *<var class="pdparam">data</var>, </td></tr><tr><td> </td><td>size_t <var class="pdparam">length</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm214197431712"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="function">sd_journal_query_unique()</code>
queries the journal for all unique values the queries the journal for all unique values the
specified field can take. It takes two arguments: the specified field can take. It takes two arguments: the
journal to query and the field name to look journal to query and the field name to look
@ -60,20 +60,20 @@
influenced by matches set with influenced by matches set with
<code class="function">sd_journal_add_match()</code> but this <code class="function">sd_journal_add_match()</code> but this
might change in a later version of this might change in a later version of this
software.</p></div><div class="refsect1"><a name="idm214170790992"></a><h2 id="Return Value">Return Value<a class="headerlink" title="Permalink to this headline" href="#Return%20Value"></a></h2><p><code class="function">sd_journal_query_unique()</code> software.</p></div><div class="refsect1"><a name="idm214197493904"></a><h2 id="Return Value">Return Value<a class="headerlink" title="Permalink to this headline" href="#Return%20Value"></a></h2><p><code class="function">sd_journal_query_unique()</code>
returns 0 on success or a negative errno-style error returns 0 on success or a negative errno-style error
code. <code class="function">sd_journal_enumerate_unique()</code> code. <code class="function">sd_journal_enumerate_unique()</code>
returns a positive integer if the next field data has returns a positive integer if the next field data has
been read, 0 when no more fields are known, or a been read, 0 when no more fields are known, or a
negative errno-style error negative errno-style error
code. <code class="function">sd_journal_restart_unique()</code> code. <code class="function">sd_journal_restart_unique()</code>
returns nothing.</p></div><div class="refsect1"><a name="idm214170780096"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p>The <code class="function">sd_journal_query_unique()</code>, returns nothing.</p></div><div class="refsect1"><a name="idm214197490352"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p>The <code class="function">sd_journal_query_unique()</code>,
<code class="function">sd_journal_enumerate_unique()</code> and <code class="function">sd_journal_enumerate_unique()</code> and
<code class="function">sd_journal_restart_unique()</code> <code class="function">sd_journal_restart_unique()</code>
interfaces are available as a shared library, which can interfaces are available as a shared library, which can
be compiled and linked to with the be compiled and linked to with the
<code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a> <code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a>
file.</p></div><div class="refsect1"><a name="idm214170775216"></a><h2 id="Examples">Examples<a class="headerlink" title="Permalink to this headline" href="#Examples"></a></h2><p>Use the file.</p></div><div class="refsect1"><a name="idm214197485472"></a><h2 id="Examples">Examples<a class="headerlink" title="Permalink to this headline" href="#Examples"></a></h2><p>Use the
<code class="function">SD_JOURNAL_FOREACH_UNIQUE</code> macro <code class="function">SD_JOURNAL_FOREACH_UNIQUE</code> macro
to iterate through all values a field of the journal to iterate through all values a field of the journal
can take. The following example lists all unit names can take. The following example lists all unit names
@ -101,7 +101,7 @@ int main(int argc, char *argv[]) {
printf("%.*s\n", (int) l, (const char*) d); printf("%.*s\n", (int) l, (const char*) d);
sd_journal_close(j); sd_journal_close(j);
return 0; return 0;
}</pre></div><div class="refsect1"><a name="idm214170770608"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> }</pre></div><div class="refsect1"><a name="idm214197482672"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="systemd.journal-fields.html"><span class="citerefentry"><span class="refentrytitle">systemd.journal-fields</span>(7)</span></a>, <a href="systemd.journal-fields.html"><span class="citerefentry"><span class="refentrytitle">systemd.journal-fields</span>(7)</span></a>,
<a href="sd-journal.html"><span class="citerefentry"><span class="refentrytitle">sd-journal</span>(3)</span></a>, <a href="sd-journal.html"><span class="citerefentry"><span class="refentrytitle">sd-journal</span>(3)</span></a>,

View File

@ -19,8 +19,8 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="sd_journal_get_fd"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd_journal_get_fd, sd_journal_get_events, sd_journal_get_timeout, sd_journal_process, sd_journal_wait, sd_journal_reliable_fd, SD_JOURNAL_NOP, SD_JOURNAL_APPEND, SD_JOURNAL_INVALIDATE — Journal change notification <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="sd_journal_get_fd"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd_journal_get_fd, sd_journal_get_events, sd_journal_get_timeout, sd_journal_process, sd_journal_wait, sd_journal_reliable_fd, SD_JOURNAL_NOP, SD_JOURNAL_APPEND, SD_JOURNAL_INVALIDATE — Journal change notification
interface</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-journal.h&gt;</pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_get_fd</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_get_events</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_get_timeout</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>uint64_t *<var class="pdparam">timeout_usec</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_process</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_wait</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>uint64_t <var class="pdparam">timeout_usec</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_reliable_fd</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm214189551600"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="function">sd_journal_get_fd()</code> returns interface</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-journal.h&gt;</pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_get_fd</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_get_events</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_get_timeout</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>uint64_t *<var class="pdparam">timeout_usec</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_process</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_wait</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>uint64_t <var class="pdparam">timeout_usec</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_reliable_fd</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm214185830672"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="function">sd_journal_get_fd()</code> returns
a file descriptor that may be asynchronously polled in a file descriptor that may be asynchronously polled in
an external event loop and is signaled as soon as the an external event loop and is signaled as soon as the
journal changes, because new entries or files were journal changes, because new entries or files were
@ -112,7 +112,7 @@ else {
no need to invoke this function directly as no need to invoke this function directly as
<code class="function">sd_journal_get_timeout()</code> on these <code class="function">sd_journal_get_timeout()</code> on these
file systems will ask for timeouts explicitly file systems will ask for timeouts explicitly
anyway.</p></div><div class="refsect1"><a name="idm214189511696"></a><h2 id="Return Value">Return Value<a class="headerlink" title="Permalink to this headline" href="#Return%20Value"></a></h2><p><code class="function">sd_journal_get_fd()</code> returns anyway.</p></div><div class="refsect1"><a name="idm214185790416"></a><h2 id="Return Value">Return Value<a class="headerlink" title="Permalink to this headline" href="#Return%20Value"></a></h2><p><code class="function">sd_journal_get_fd()</code> returns
a valid file descriptor on success or a negative a valid file descriptor on success or a negative
errno-style error code.</p><p><code class="function">sd_journal_get_events()</code> errno-style error code.</p><p><code class="function">sd_journal_get_events()</code>
returns a combination of <code class="constant">POLLIN</code>, returns a combination of <code class="constant">POLLIN</code>,
@ -138,7 +138,7 @@ else {
probably refresh their entire display, while in the probably refresh their entire display, while in the
case of <code class="constant">SD_JOURNAL_APPEND</code>, it is case of <code class="constant">SD_JOURNAL_APPEND</code>, it is
sufficient to simply continue reading at the previous sufficient to simply continue reading at the previous
end of the journal.</p></div><div class="refsect1"><a name="idm214184533264"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p>The <code class="function">sd_journal_get_fd()</code>, end of the journal.</p></div><div class="refsect1"><a name="idm214180864000"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p>The <code class="function">sd_journal_get_fd()</code>,
<code class="function">sd_journal_get_events()</code>, <code class="function">sd_journal_get_events()</code>,
<code class="function">sd_journal_reliable_fd()</code>, <code class="function">sd_journal_reliable_fd()</code>,
<code class="function">sd_journal_process()</code> and <code class="function">sd_journal_process()</code> and
@ -146,7 +146,7 @@ else {
available as a shared library, which can be compiled and available as a shared library, which can be compiled and
linked to with the linked to with the
<code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a> <code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a>
file.</p></div><div class="refsect1"><a name="idm214184527680"></a><h2 id="Examples">Examples<a class="headerlink" title="Permalink to this headline" href="#Examples"></a></h2><p>Iterating through the journal, in a live view tracking all changes:</p><pre class="programlisting">#include &lt;stdio.h&gt; file.</p></div><div class="refsect1"><a name="idm214180858416"></a><h2 id="Examples">Examples<a class="headerlink" title="Permalink to this headline" href="#Examples"></a></h2><p>Iterating through the journal, in a live view tracking all changes:</p><pre class="programlisting">#include &lt;stdio.h&gt;
#include &lt;string.h&gt; #include &lt;string.h&gt;
#include &lt;systemd/sd-journal.h&gt; #include &lt;systemd/sd-journal.h&gt;
@ -208,7 +208,7 @@ int wait_for_changes(sd_journal *j) {
pollfd.events = sd_journal_get_events(j); pollfd.events = sd_journal_get_events(j);
poll(&amp;pollfd, 1, msec); poll(&amp;pollfd, 1, msec);
return sd_journal_process(j); return sd_journal_process(j);
}</pre></div><div class="refsect1"><a name="idm214184521056"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> }</pre></div><div class="refsect1"><a name="idm214180851792"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="sd-journal.html"><span class="citerefentry"><span class="refentrytitle">sd-journal</span>(3)</span></a>, <a href="sd-journal.html"><span class="citerefentry"><span class="refentrytitle">sd-journal</span>(3)</span></a>,
<a href="sd_journal_open.html"><span class="citerefentry"><span class="refentrytitle">sd_journal_open</span>(3)</span></a>, <a href="sd_journal_open.html"><span class="citerefentry"><span class="refentrytitle">sd_journal_open</span>(3)</span></a>,

View File

@ -19,7 +19,7 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="sd_journal_open"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd_journal_open, sd_journal_open_directory, sd_journal_open_files, sd_journal_open_container, sd_journal_close, sd_journal, SD_JOURNAL_LOCAL_ONLY, SD_JOURNAL_RUNTIME_ONLY, SD_JOURNAL_SYSTEM, SD_JOURNAL_CURRENT_USER — Open the system journal for reading</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-journal.h&gt;</pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_open</b>(</code></td><td>sd_journal **<var class="pdparam">ret</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_open_directory</b>(</code></td><td>sd_journal **<var class="pdparam">ret</var>, </td></tr><tr><td> </td><td>const char *<var class="pdparam">path</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_open_files</b>(</code></td><td>sd_journal **<var class="pdparam">ret</var>, </td></tr><tr><td> </td><td>const char **<var class="pdparam">paths</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_open_container</b>(</code></td><td>sd_journal **<var class="pdparam">ret</var>, </td></tr><tr><td> </td><td>const char *<var class="pdparam">machine</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">void <b class="fsfunc">sd_journal_close</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm214195234384"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="function">sd_journal_open()</code> opens <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="sd_journal_open"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd_journal_open, sd_journal_open_directory, sd_journal_open_files, sd_journal_open_container, sd_journal_close, sd_journal, SD_JOURNAL_LOCAL_ONLY, SD_JOURNAL_RUNTIME_ONLY, SD_JOURNAL_SYSTEM, SD_JOURNAL_CURRENT_USER — Open the system journal for reading</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-journal.h&gt;</pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_open</b>(</code></td><td>sd_journal **<var class="pdparam">ret</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_open_directory</b>(</code></td><td>sd_journal **<var class="pdparam">ret</var>, </td></tr><tr><td> </td><td>const char *<var class="pdparam">path</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_open_files</b>(</code></td><td>sd_journal **<var class="pdparam">ret</var>, </td></tr><tr><td> </td><td>const char **<var class="pdparam">paths</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_open_container</b>(</code></td><td>sd_journal **<var class="pdparam">ret</var>, </td></tr><tr><td> </td><td>const char *<var class="pdparam">machine</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">void <b class="fsfunc">sd_journal_close</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm214202620928"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="function">sd_journal_open()</code> opens
the log journal for reading. It will find all journal the log journal for reading. It will find all journal
files automatically and interleave them automatically files automatically and interleave them automatically
when reading. As first argument it takes a pointer to when reading. As first argument it takes a pointer to
@ -95,18 +95,18 @@
locally, to its closest entry in time) locally, to its closest entry in time)
<a href="sd_journal_seek_cursor.html"><span class="citerefentry"><span class="refentrytitle">sd_journal_seek_cursor</span>(3)</span></a>.</p><p>Notification of journal changes is available via <a href="sd_journal_seek_cursor.html"><span class="citerefentry"><span class="refentrytitle">sd_journal_seek_cursor</span>(3)</span></a>.</p><p>Notification of journal changes is available via
<code class="function">sd_journal_get_fd()</code> and related <code class="function">sd_journal_get_fd()</code> and related
calls.</p></div><div class="refsect1"><a name="idm214195199952"></a><h2 id="Return Value">Return Value<a class="headerlink" title="Permalink to this headline" href="#Return%20Value"></a></h2><p>The <code class="function">sd_journal_open()</code>, calls.</p></div><div class="refsect1"><a name="idm214202586464"></a><h2 id="Return Value">Return Value<a class="headerlink" title="Permalink to this headline" href="#Return%20Value"></a></h2><p>The <code class="function">sd_journal_open()</code>,
<code class="function">sd_journal_open_directory()</code>, and <code class="function">sd_journal_open_directory()</code>, and
<code class="function">sd_journal_open_files()</code> calls <code class="function">sd_journal_open_files()</code> calls
return 0 on success or a negative errno-style error return 0 on success or a negative errno-style error
code. <code class="function">sd_journal_close()</code> returns code. <code class="function">sd_journal_close()</code> returns
nothing.</p></div><div class="refsect1"><a name="idm214195195744"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p>The <code class="function">sd_journal_open()</code>, nothing.</p></div><div class="refsect1"><a name="idm214202582256"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p>The <code class="function">sd_journal_open()</code>,
<code class="function">sd_journal_open_directory()</code> and <code class="function">sd_journal_open_directory()</code> and
<code class="function">sd_journal_close()</code> interfaces are <code class="function">sd_journal_close()</code> interfaces are
available as a shared library, which can be compiled and available as a shared library, which can be compiled and
linked to with the linked to with the
<code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a> <code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a>
file.</p></div><div class="refsect1"><a name="idm214190277136"></a><h2 id="History">History<a class="headerlink" title="Permalink to this headline" href="#History"></a></h2><p><code class="function">sd_journal_open()</code>, file.</p></div><div class="refsect1"><a name="idm214197661808"></a><h2 id="History">History<a class="headerlink" title="Permalink to this headline" href="#History"></a></h2><p><code class="function">sd_journal_open()</code>,
<code class="function">sd_journal_close()</code>, <code class="function">sd_journal_close()</code>,
<code class="constant">SD_JOURNAL_LOCAL_ONLY</code>, <code class="constant">SD_JOURNAL_LOCAL_ONLY</code>,
<code class="constant">SD_JOURNAL_RUNTIME_ONLY</code>, <code class="constant">SD_JOURNAL_RUNTIME_ONLY</code>,
@ -117,7 +117,7 @@
and <code class="function">sd_journal_open_files()</code> and <code class="function">sd_journal_open_files()</code>
were added in systemd-205. were added in systemd-205.
<code class="constant">SD_JOURNAL_SYSTEM_ONLY</code> <code class="constant">SD_JOURNAL_SYSTEM_ONLY</code>
was deprecated.</p></div><div class="refsect1"><a name="idm214190270800"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> was deprecated.</p></div><div class="refsect1"><a name="idm214197655472"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="sd-journal.html"><span class="citerefentry"><span class="refentrytitle">sd-journal</span>(3)</span></a>, <a href="sd-journal.html"><span class="citerefentry"><span class="refentrytitle">sd-journal</span>(3)</span></a>,
<a href="sd_journal_next.html"><span class="citerefentry"><span class="refentrytitle">sd_journal_next</span>(3)</span></a>, <a href="sd_journal_next.html"><span class="citerefentry"><span class="refentrytitle">sd_journal_next</span>(3)</span></a>,

View File

@ -19,8 +19,8 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="sd_journal_get_fd"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd_journal_get_fd, sd_journal_get_events, sd_journal_get_timeout, sd_journal_process, sd_journal_wait, sd_journal_reliable_fd, SD_JOURNAL_NOP, SD_JOURNAL_APPEND, SD_JOURNAL_INVALIDATE — Journal change notification <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="sd_journal_get_fd"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd_journal_get_fd, sd_journal_get_events, sd_journal_get_timeout, sd_journal_process, sd_journal_wait, sd_journal_reliable_fd, SD_JOURNAL_NOP, SD_JOURNAL_APPEND, SD_JOURNAL_INVALIDATE — Journal change notification
interface</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-journal.h&gt;</pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_get_fd</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_get_events</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_get_timeout</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>uint64_t *<var class="pdparam">timeout_usec</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_process</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_wait</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>uint64_t <var class="pdparam">timeout_usec</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_reliable_fd</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm214189551600"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="function">sd_journal_get_fd()</code> returns interface</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-journal.h&gt;</pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_get_fd</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_get_events</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_get_timeout</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>uint64_t *<var class="pdparam">timeout_usec</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_process</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_wait</b>(</code></td><td>sd_journal *<var class="pdparam">j</var>, </td></tr><tr><td> </td><td>uint64_t <var class="pdparam">timeout_usec</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_reliable_fd</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm214185830672"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="function">sd_journal_get_fd()</code> returns
a file descriptor that may be asynchronously polled in a file descriptor that may be asynchronously polled in
an external event loop and is signaled as soon as the an external event loop and is signaled as soon as the
journal changes, because new entries or files were journal changes, because new entries or files were
@ -112,7 +112,7 @@ else {
no need to invoke this function directly as no need to invoke this function directly as
<code class="function">sd_journal_get_timeout()</code> on these <code class="function">sd_journal_get_timeout()</code> on these
file systems will ask for timeouts explicitly file systems will ask for timeouts explicitly
anyway.</p></div><div class="refsect1"><a name="idm214189511696"></a><h2 id="Return Value">Return Value<a class="headerlink" title="Permalink to this headline" href="#Return%20Value"></a></h2><p><code class="function">sd_journal_get_fd()</code> returns anyway.</p></div><div class="refsect1"><a name="idm214185790416"></a><h2 id="Return Value">Return Value<a class="headerlink" title="Permalink to this headline" href="#Return%20Value"></a></h2><p><code class="function">sd_journal_get_fd()</code> returns
a valid file descriptor on success or a negative a valid file descriptor on success or a negative
errno-style error code.</p><p><code class="function">sd_journal_get_events()</code> errno-style error code.</p><p><code class="function">sd_journal_get_events()</code>
returns a combination of <code class="constant">POLLIN</code>, returns a combination of <code class="constant">POLLIN</code>,
@ -138,7 +138,7 @@ else {
probably refresh their entire display, while in the probably refresh their entire display, while in the
case of <code class="constant">SD_JOURNAL_APPEND</code>, it is case of <code class="constant">SD_JOURNAL_APPEND</code>, it is
sufficient to simply continue reading at the previous sufficient to simply continue reading at the previous
end of the journal.</p></div><div class="refsect1"><a name="idm214184533264"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p>The <code class="function">sd_journal_get_fd()</code>, end of the journal.</p></div><div class="refsect1"><a name="idm214180864000"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p>The <code class="function">sd_journal_get_fd()</code>,
<code class="function">sd_journal_get_events()</code>, <code class="function">sd_journal_get_events()</code>,
<code class="function">sd_journal_reliable_fd()</code>, <code class="function">sd_journal_reliable_fd()</code>,
<code class="function">sd_journal_process()</code> and <code class="function">sd_journal_process()</code> and
@ -146,7 +146,7 @@ else {
available as a shared library, which can be compiled and available as a shared library, which can be compiled and
linked to with the linked to with the
<code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a> <code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a>
file.</p></div><div class="refsect1"><a name="idm214184527680"></a><h2 id="Examples">Examples<a class="headerlink" title="Permalink to this headline" href="#Examples"></a></h2><p>Iterating through the journal, in a live view tracking all changes:</p><pre class="programlisting">#include &lt;stdio.h&gt; file.</p></div><div class="refsect1"><a name="idm214180858416"></a><h2 id="Examples">Examples<a class="headerlink" title="Permalink to this headline" href="#Examples"></a></h2><p>Iterating through the journal, in a live view tracking all changes:</p><pre class="programlisting">#include &lt;stdio.h&gt;
#include &lt;string.h&gt; #include &lt;string.h&gt;
#include &lt;systemd/sd-journal.h&gt; #include &lt;systemd/sd-journal.h&gt;
@ -208,7 +208,7 @@ int wait_for_changes(sd_journal *j) {
pollfd.events = sd_journal_get_events(j); pollfd.events = sd_journal_get_events(j);
poll(&amp;pollfd, 1, msec); poll(&amp;pollfd, 1, msec);
return sd_journal_process(j); return sd_journal_process(j);
}</pre></div><div class="refsect1"><a name="idm214184521056"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> }</pre></div><div class="refsect1"><a name="idm214180851792"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="sd-journal.html"><span class="citerefentry"><span class="refentrytitle">sd-journal</span>(3)</span></a>, <a href="sd-journal.html"><span class="citerefentry"><span class="refentrytitle">sd-journal</span>(3)</span></a>,
<a href="sd_journal_open.html"><span class="citerefentry"><span class="refentrytitle">sd_journal_open</span>(3)</span></a>, <a href="sd_journal_open.html"><span class="citerefentry"><span class="refentrytitle">sd_journal_open</span>(3)</span></a>,

View File

@ -19,7 +19,7 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="sd_journal_open"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd_journal_open, sd_journal_open_directory, sd_journal_open_files, sd_journal_open_container, sd_journal_close, sd_journal, SD_JOURNAL_LOCAL_ONLY, SD_JOURNAL_RUNTIME_ONLY, SD_JOURNAL_SYSTEM, SD_JOURNAL_CURRENT_USER — Open the system journal for reading</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-journal.h&gt;</pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_open</b>(</code></td><td>sd_journal **<var class="pdparam">ret</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_open_directory</b>(</code></td><td>sd_journal **<var class="pdparam">ret</var>, </td></tr><tr><td> </td><td>const char *<var class="pdparam">path</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_open_files</b>(</code></td><td>sd_journal **<var class="pdparam">ret</var>, </td></tr><tr><td> </td><td>const char **<var class="pdparam">paths</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_open_container</b>(</code></td><td>sd_journal **<var class="pdparam">ret</var>, </td></tr><tr><td> </td><td>const char *<var class="pdparam">machine</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">void <b class="fsfunc">sd_journal_close</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm214195234384"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="function">sd_journal_open()</code> opens <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="sd_journal_open"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd_journal_open, sd_journal_open_directory, sd_journal_open_files, sd_journal_open_container, sd_journal_close, sd_journal, SD_JOURNAL_LOCAL_ONLY, SD_JOURNAL_RUNTIME_ONLY, SD_JOURNAL_SYSTEM, SD_JOURNAL_CURRENT_USER — Open the system journal for reading</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-journal.h&gt;</pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_open</b>(</code></td><td>sd_journal **<var class="pdparam">ret</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_open_directory</b>(</code></td><td>sd_journal **<var class="pdparam">ret</var>, </td></tr><tr><td> </td><td>const char *<var class="pdparam">path</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_open_files</b>(</code></td><td>sd_journal **<var class="pdparam">ret</var>, </td></tr><tr><td> </td><td>const char **<var class="pdparam">paths</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_open_container</b>(</code></td><td>sd_journal **<var class="pdparam">ret</var>, </td></tr><tr><td> </td><td>const char *<var class="pdparam">machine</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">void <b class="fsfunc">sd_journal_close</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm214202620928"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="function">sd_journal_open()</code> opens
the log journal for reading. It will find all journal the log journal for reading. It will find all journal
files automatically and interleave them automatically files automatically and interleave them automatically
when reading. As first argument it takes a pointer to when reading. As first argument it takes a pointer to
@ -95,18 +95,18 @@
locally, to its closest entry in time) locally, to its closest entry in time)
<a href="sd_journal_seek_cursor.html"><span class="citerefentry"><span class="refentrytitle">sd_journal_seek_cursor</span>(3)</span></a>.</p><p>Notification of journal changes is available via <a href="sd_journal_seek_cursor.html"><span class="citerefentry"><span class="refentrytitle">sd_journal_seek_cursor</span>(3)</span></a>.</p><p>Notification of journal changes is available via
<code class="function">sd_journal_get_fd()</code> and related <code class="function">sd_journal_get_fd()</code> and related
calls.</p></div><div class="refsect1"><a name="idm214195199952"></a><h2 id="Return Value">Return Value<a class="headerlink" title="Permalink to this headline" href="#Return%20Value"></a></h2><p>The <code class="function">sd_journal_open()</code>, calls.</p></div><div class="refsect1"><a name="idm214202586464"></a><h2 id="Return Value">Return Value<a class="headerlink" title="Permalink to this headline" href="#Return%20Value"></a></h2><p>The <code class="function">sd_journal_open()</code>,
<code class="function">sd_journal_open_directory()</code>, and <code class="function">sd_journal_open_directory()</code>, and
<code class="function">sd_journal_open_files()</code> calls <code class="function">sd_journal_open_files()</code> calls
return 0 on success or a negative errno-style error return 0 on success or a negative errno-style error
code. <code class="function">sd_journal_close()</code> returns code. <code class="function">sd_journal_close()</code> returns
nothing.</p></div><div class="refsect1"><a name="idm214195195744"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p>The <code class="function">sd_journal_open()</code>, nothing.</p></div><div class="refsect1"><a name="idm214202582256"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p>The <code class="function">sd_journal_open()</code>,
<code class="function">sd_journal_open_directory()</code> and <code class="function">sd_journal_open_directory()</code> and
<code class="function">sd_journal_close()</code> interfaces are <code class="function">sd_journal_close()</code> interfaces are
available as a shared library, which can be compiled and available as a shared library, which can be compiled and
linked to with the linked to with the
<code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a> <code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a>
file.</p></div><div class="refsect1"><a name="idm214190277136"></a><h2 id="History">History<a class="headerlink" title="Permalink to this headline" href="#History"></a></h2><p><code class="function">sd_journal_open()</code>, file.</p></div><div class="refsect1"><a name="idm214197661808"></a><h2 id="History">History<a class="headerlink" title="Permalink to this headline" href="#History"></a></h2><p><code class="function">sd_journal_open()</code>,
<code class="function">sd_journal_close()</code>, <code class="function">sd_journal_close()</code>,
<code class="constant">SD_JOURNAL_LOCAL_ONLY</code>, <code class="constant">SD_JOURNAL_LOCAL_ONLY</code>,
<code class="constant">SD_JOURNAL_RUNTIME_ONLY</code>, <code class="constant">SD_JOURNAL_RUNTIME_ONLY</code>,
@ -117,7 +117,7 @@
and <code class="function">sd_journal_open_files()</code> and <code class="function">sd_journal_open_files()</code>
were added in systemd-205. were added in systemd-205.
<code class="constant">SD_JOURNAL_SYSTEM_ONLY</code> <code class="constant">SD_JOURNAL_SYSTEM_ONLY</code>
was deprecated.</p></div><div class="refsect1"><a name="idm214190270800"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> was deprecated.</p></div><div class="refsect1"><a name="idm214197655472"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="sd-journal.html"><span class="citerefentry"><span class="refentrytitle">sd-journal</span>(3)</span></a>, <a href="sd-journal.html"><span class="citerefentry"><span class="refentrytitle">sd-journal</span>(3)</span></a>,
<a href="sd_journal_next.html"><span class="citerefentry"><span class="refentrytitle">sd_journal_next</span>(3)</span></a>, <a href="sd_journal_next.html"><span class="citerefentry"><span class="refentrytitle">sd_journal_next</span>(3)</span></a>,

View File

@ -19,7 +19,7 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="sd_journal_print"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd_journal_print, sd_journal_printv, sd_journal_send, sd_journal_sendv, sd_journal_perror, SD_JOURNAL_SUPPRESS_LOCATION — Submit log entries to the journal</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-journal.h&gt;</pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_print</b>(</code></td><td>int <var class="pdparam">priority</var>, </td></tr><tr><td> </td><td>const char *<var class="pdparam">format</var>, </td></tr><tr><td> </td><td>...<code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_printv</b>(</code></td><td>int <var class="pdparam">priority</var>, </td></tr><tr><td> </td><td>const char *<var class="pdparam">format</var>, </td></tr><tr><td> </td><td>va_list <var class="pdparam">ap</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_send</b>(</code></td><td>const char *<var class="pdparam">format</var>, </td></tr><tr><td> </td><td>...<code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_sendv</b>(</code></td><td>const struct iovec *<var class="pdparam">iov</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">n</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_perror</b>(</code></td><td>const char *<var class="pdparam">message</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm214171911712"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="function">sd_journal_print()</code> may be <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="sd_journal_print"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd_journal_print, sd_journal_printv, sd_journal_send, sd_journal_sendv, sd_journal_perror, SD_JOURNAL_SUPPRESS_LOCATION — Submit log entries to the journal</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-journal.h&gt;</pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_print</b>(</code></td><td>int <var class="pdparam">priority</var>, </td></tr><tr><td> </td><td>const char *<var class="pdparam">format</var>, </td></tr><tr><td> </td><td>...<code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_printv</b>(</code></td><td>int <var class="pdparam">priority</var>, </td></tr><tr><td> </td><td>const char *<var class="pdparam">format</var>, </td></tr><tr><td> </td><td>va_list <var class="pdparam">ap</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_send</b>(</code></td><td>const char *<var class="pdparam">format</var>, </td></tr><tr><td> </td><td>...<code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_sendv</b>(</code></td><td>const struct iovec *<var class="pdparam">iov</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">n</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_perror</b>(</code></td><td>const char *<var class="pdparam">message</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm214193392656"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="function">sd_journal_print()</code> may be
used to submit simple, plain text log entries to the used to submit simple, plain text log entries to the
system journal. The first argument is a priority system journal. The first argument is a priority
value. This is followed by a format string and its value. This is followed by a format string and its
@ -118,26 +118,26 @@ sd_journal_send("MESSAGE=Hello World, this is PID %lu!", (unsigned long) getpid(
log entries that are generated via log entries that are generated via
<code class="function">sd_journal_send()</code>. Using <code class="function">sd_journal_send()</code>. Using
<code class="function">syslog()</code> has the benefit of being <code class="function">syslog()</code> has the benefit of being
more portable.</p></div><div class="refsect1"><a name="idm214171870448"></a><h2 id="Return Value">Return Value<a class="headerlink" title="Permalink to this headline" href="#Return%20Value"></a></h2><p>The four calls return 0 on success or a negative more portable.</p></div><div class="refsect1"><a name="idm214193498576"></a><h2 id="Return Value">Return Value<a class="headerlink" title="Permalink to this headline" href="#Return%20Value"></a></h2><p>The four calls return 0 on success or a negative
errno-style error code. The errno-style error code. The
<a href="errno.html"><span class="citerefentry"><span class="refentrytitle">errno</span>(3)</span></a> <a href="errno.html"><span class="citerefentry"><span class="refentrytitle">errno</span>(3)</span></a>
variable itself is not altered.</p><p>If variable itself is not altered.</p><p>If
<a href="systemd-journald.html"><span class="citerefentry"><span class="refentrytitle">systemd-journald</span>(8)</span></a> <a href="systemd-journald.html"><span class="citerefentry"><span class="refentrytitle">systemd-journald</span>(8)</span></a>
is not running (the socket is not present), those is not running (the socket is not present), those
functions do nothing, and also return 0.</p></div><div class="refsect1"><a name="idm214166952576"></a><h2 id="Async signal safety">Async signal safety<a class="headerlink" title="Permalink to this headline" href="#Async%20signal%20safety"></a></h2><p><code class="function">sd_journal_sendv()</code> is "async signal functions do nothing, and also return 0.</p></div><div class="refsect1"><a name="idm214193495056"></a><h2 id="Async signal safety">Async signal safety<a class="headerlink" title="Permalink to this headline" href="#Async%20signal%20safety"></a></h2><p><code class="function">sd_journal_sendv()</code> is "async signal
safe" in the meaning of <a href="signal.html"><span class="citerefentry"><span class="refentrytitle">signal</span>(7)</span></a>. safe" in the meaning of <a href="signal.html"><span class="citerefentry"><span class="refentrytitle">signal</span>(7)</span></a>.
</p><p><code class="function">sd_journal_print</code>, </p><p><code class="function">sd_journal_print</code>,
<code class="function">sd_journal_printv</code>, <code class="function">sd_journal_printv</code>,
<code class="function">sd_journal_send</code>, and <code class="function">sd_journal_send</code>, and
<code class="function">sd_journal_perror</code> are <code class="function">sd_journal_perror</code> are
not async signal safe.</p></div><div class="refsect1"><a name="idm214166947408"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p>The <code class="function">sd_journal_print()</code>, not async signal safe.</p></div><div class="refsect1"><a name="idm214193489376"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p>The <code class="function">sd_journal_print()</code>,
<code class="function">sd_journal_printv()</code>, <code class="function">sd_journal_printv()</code>,
<code class="function">sd_journal_send()</code> and <code class="function">sd_journal_send()</code> and
<code class="function">sd_journal_sendv()</code> interfaces <code class="function">sd_journal_sendv()</code> interfaces
are available as a shared library, which can be compiled are available as a shared library, which can be compiled
and linked to with the and linked to with the
<code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a> <code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a>
file.</p></div><div class="refsect1"><a name="idm214166942448"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> file.</p></div><div class="refsect1"><a name="idm214188855456"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="sd-journal.html"><span class="citerefentry"><span class="refentrytitle">sd-journal</span>(3)</span></a>, <a href="sd-journal.html"><span class="citerefentry"><span class="refentrytitle">sd-journal</span>(3)</span></a>,
<a href="sd_journal_stream_fd.html"><span class="citerefentry"><span class="refentrytitle">sd_journal_stream_fd</span>(3)</span></a>, <a href="sd_journal_stream_fd.html"><span class="citerefentry"><span class="refentrytitle">sd_journal_stream_fd</span>(3)</span></a>,

View File

@ -19,7 +19,7 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="sd_journal_open"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd_journal_open, sd_journal_open_directory, sd_journal_open_files, sd_journal_open_container, sd_journal_close, sd_journal, SD_JOURNAL_LOCAL_ONLY, SD_JOURNAL_RUNTIME_ONLY, SD_JOURNAL_SYSTEM, SD_JOURNAL_CURRENT_USER — Open the system journal for reading</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-journal.h&gt;</pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_open</b>(</code></td><td>sd_journal **<var class="pdparam">ret</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_open_directory</b>(</code></td><td>sd_journal **<var class="pdparam">ret</var>, </td></tr><tr><td> </td><td>const char *<var class="pdparam">path</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_open_files</b>(</code></td><td>sd_journal **<var class="pdparam">ret</var>, </td></tr><tr><td> </td><td>const char **<var class="pdparam">paths</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_open_container</b>(</code></td><td>sd_journal **<var class="pdparam">ret</var>, </td></tr><tr><td> </td><td>const char *<var class="pdparam">machine</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">void <b class="fsfunc">sd_journal_close</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm214195234384"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="function">sd_journal_open()</code> opens <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="sd_journal_open"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd_journal_open, sd_journal_open_directory, sd_journal_open_files, sd_journal_open_container, sd_journal_close, sd_journal, SD_JOURNAL_LOCAL_ONLY, SD_JOURNAL_RUNTIME_ONLY, SD_JOURNAL_SYSTEM, SD_JOURNAL_CURRENT_USER — Open the system journal for reading</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-journal.h&gt;</pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_open</b>(</code></td><td>sd_journal **<var class="pdparam">ret</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_open_directory</b>(</code></td><td>sd_journal **<var class="pdparam">ret</var>, </td></tr><tr><td> </td><td>const char *<var class="pdparam">path</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_open_files</b>(</code></td><td>sd_journal **<var class="pdparam">ret</var>, </td></tr><tr><td> </td><td>const char **<var class="pdparam">paths</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_open_container</b>(</code></td><td>sd_journal **<var class="pdparam">ret</var>, </td></tr><tr><td> </td><td>const char *<var class="pdparam">machine</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">void <b class="fsfunc">sd_journal_close</b>(</code></td><td>sd_journal *<var class="pdparam">j</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm214202620928"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="function">sd_journal_open()</code> opens
the log journal for reading. It will find all journal the log journal for reading. It will find all journal
files automatically and interleave them automatically files automatically and interleave them automatically
when reading. As first argument it takes a pointer to when reading. As first argument it takes a pointer to
@ -95,18 +95,18 @@
locally, to its closest entry in time) locally, to its closest entry in time)
<a href="sd_journal_seek_cursor.html"><span class="citerefentry"><span class="refentrytitle">sd_journal_seek_cursor</span>(3)</span></a>.</p><p>Notification of journal changes is available via <a href="sd_journal_seek_cursor.html"><span class="citerefentry"><span class="refentrytitle">sd_journal_seek_cursor</span>(3)</span></a>.</p><p>Notification of journal changes is available via
<code class="function">sd_journal_get_fd()</code> and related <code class="function">sd_journal_get_fd()</code> and related
calls.</p></div><div class="refsect1"><a name="idm214195199952"></a><h2 id="Return Value">Return Value<a class="headerlink" title="Permalink to this headline" href="#Return%20Value"></a></h2><p>The <code class="function">sd_journal_open()</code>, calls.</p></div><div class="refsect1"><a name="idm214202586464"></a><h2 id="Return Value">Return Value<a class="headerlink" title="Permalink to this headline" href="#Return%20Value"></a></h2><p>The <code class="function">sd_journal_open()</code>,
<code class="function">sd_journal_open_directory()</code>, and <code class="function">sd_journal_open_directory()</code>, and
<code class="function">sd_journal_open_files()</code> calls <code class="function">sd_journal_open_files()</code> calls
return 0 on success or a negative errno-style error return 0 on success or a negative errno-style error
code. <code class="function">sd_journal_close()</code> returns code. <code class="function">sd_journal_close()</code> returns
nothing.</p></div><div class="refsect1"><a name="idm214195195744"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p>The <code class="function">sd_journal_open()</code>, nothing.</p></div><div class="refsect1"><a name="idm214202582256"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p>The <code class="function">sd_journal_open()</code>,
<code class="function">sd_journal_open_directory()</code> and <code class="function">sd_journal_open_directory()</code> and
<code class="function">sd_journal_close()</code> interfaces are <code class="function">sd_journal_close()</code> interfaces are
available as a shared library, which can be compiled and available as a shared library, which can be compiled and
linked to with the linked to with the
<code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a> <code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a>
file.</p></div><div class="refsect1"><a name="idm214190277136"></a><h2 id="History">History<a class="headerlink" title="Permalink to this headline" href="#History"></a></h2><p><code class="function">sd_journal_open()</code>, file.</p></div><div class="refsect1"><a name="idm214197661808"></a><h2 id="History">History<a class="headerlink" title="Permalink to this headline" href="#History"></a></h2><p><code class="function">sd_journal_open()</code>,
<code class="function">sd_journal_close()</code>, <code class="function">sd_journal_close()</code>,
<code class="constant">SD_JOURNAL_LOCAL_ONLY</code>, <code class="constant">SD_JOURNAL_LOCAL_ONLY</code>,
<code class="constant">SD_JOURNAL_RUNTIME_ONLY</code>, <code class="constant">SD_JOURNAL_RUNTIME_ONLY</code>,
@ -117,7 +117,7 @@
and <code class="function">sd_journal_open_files()</code> and <code class="function">sd_journal_open_files()</code>
were added in systemd-205. were added in systemd-205.
<code class="constant">SD_JOURNAL_SYSTEM_ONLY</code> <code class="constant">SD_JOURNAL_SYSTEM_ONLY</code>
was deprecated.</p></div><div class="refsect1"><a name="idm214190270800"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> was deprecated.</p></div><div class="refsect1"><a name="idm214197655472"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="sd-journal.html"><span class="citerefentry"><span class="refentrytitle">sd-journal</span>(3)</span></a>, <a href="sd-journal.html"><span class="citerefentry"><span class="refentrytitle">sd-journal</span>(3)</span></a>,
<a href="sd_journal_next.html"><span class="citerefentry"><span class="refentrytitle">sd_journal_next</span>(3)</span></a>, <a href="sd_journal_next.html"><span class="citerefentry"><span class="refentrytitle">sd_journal_next</span>(3)</span></a>,

View File

@ -19,7 +19,7 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="sd_listen_fds"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd_listen_fds, SD_LISTEN_FDS_START — Check for file descriptors passed by the system manager</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-daemon.h&gt;</pre><pre class="funcsynopsisinfo">#define SD_LISTEN_FDS_START 3</pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_listen_fds</b>(</code></td><td>int <var class="pdparam">unset_environment</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm214192684512"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="function">sd_listen_fds()</code> shall be <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="sd_listen_fds"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd_listen_fds, SD_LISTEN_FDS_START — Check for file descriptors passed by the system manager</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-daemon.h&gt;</pre><pre class="funcsynopsisinfo">#define SD_LISTEN_FDS_START 3</pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_listen_fds</b>(</code></td><td>int <var class="pdparam">unset_environment</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm214197560512"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="function">sd_listen_fds()</code> shall be
called by a daemon to check for file descriptors called by a daemon to check for file descriptors
passed by the init system as part of the socket-based passed by the init system as part of the socket-based
activation logic.</p><p>If the <em class="parameter"><code>unset_environment</code></em> activation logic.</p><p>If the <em class="parameter"><code>unset_environment</code></em>
@ -50,7 +50,7 @@
datagram or stream socket matters a lot for the most datagram or stream socket matters a lot for the most
common program logics and should be checked.</p><p>This function call will set the FD_CLOEXEC flag common program logics and should be checked.</p><p>This function call will set the FD_CLOEXEC flag
for all passed file descriptors to avoid further for all passed file descriptors to avoid further
inheritance to children of the calling process.</p></div><div class="refsect1"><a name="idm214192892160"></a><h2 id="Return Value">Return Value<a class="headerlink" title="Permalink to this headline" href="#Return%20Value"></a></h2><p>On failure, this call returns a negative inheritance to children of the calling process.</p></div><div class="refsect1"><a name="idm214197624416"></a><h2 id="Return Value">Return Value<a class="headerlink" title="Permalink to this headline" href="#Return%20Value"></a></h2><p>On failure, this call returns a negative
errno-style error code. If errno-style error code. If
<code class="varname">$LISTEN_FDS</code>/<code class="varname">$LISTEN_PID</code> <code class="varname">$LISTEN_FDS</code>/<code class="varname">$LISTEN_PID</code>
was not set or was not correctly set for this daemon and was not set or was not correctly set for this daemon and
@ -58,7 +58,7 @@
returned. Otherwise, the number of file descriptors returned. Otherwise, the number of file descriptors
passed is returned. The application may find them passed is returned. The application may find them
starting with file descriptor SD_LISTEN_FDS_START, starting with file descriptor SD_LISTEN_FDS_START,
i.e. file descriptor 3.</p></div><div class="refsect1"><a name="idm214194136768"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p><a name="pkgconfig-text"></a>These APIs are implemented as a shared i.e. file descriptor 3.</p></div><div class="refsect1"><a name="idm214197551888"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p><a name="pkgconfig-text"></a>These APIs are implemented as a shared
library, which can be compiled and linked to with the library, which can be compiled and linked to with the
<code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a> <code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a>
file.</p><p>Internally, this function checks whether the file.</p><p>Internally, this function checks whether the
@ -69,14 +69,14 @@
variable, then sets the FD_CLOEXEC flag for the parsed variable, then sets the FD_CLOEXEC flag for the parsed
number of file descriptors starting from number of file descriptors starting from
SD_LISTEN_FDS_START. Finally, it returns the parsed SD_LISTEN_FDS_START. Finally, it returns the parsed
number.</p></div><div class="refsect1"><a name="idm214192287840"></a><h2 id="Environment">Environment<a class="headerlink" title="Permalink to this headline" href="#Environment"></a></h2><div class="variablelist"><dl class="variablelist"><dt id="$LISTEN_PID"><span class="term"><code class="varname">$LISTEN_PID</code>, </span><span class="term"><code class="varname">$LISTEN_FDS</code></span><a class="headerlink" title="Permalink to this term" href="#%24LISTEN_PID"></a></dt><dd><p>Set by the init system number.</p></div><div class="refsect1"><a name="idm214197548512"></a><h2 id="Environment">Environment<a class="headerlink" title="Permalink to this headline" href="#Environment"></a></h2><div class="variablelist"><dl class="variablelist"><dt id="$LISTEN_PID"><span class="term"><code class="varname">$LISTEN_PID</code>, </span><span class="term"><code class="varname">$LISTEN_FDS</code></span><a class="headerlink" title="Permalink to this term" href="#%24LISTEN_PID"></a></dt><dd><p>Set by the init system
for supervised processes that use for supervised processes that use
socket-based activation. This socket-based activation. This
environment variable specifies the environment variable specifies the
data data
<code class="function">sd_listen_fds()</code> <code class="function">sd_listen_fds()</code>
parses. See above for parses. See above for
details.</p></dd></dl></div></div><div class="refsect1"><a name="idm214193629840"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> details.</p></dd></dl></div></div><div class="refsect1"><a name="idm214197690240"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="sd-daemon.html"><span class="citerefentry"><span class="refentrytitle">sd-daemon</span>(3)</span></a>, <a href="sd-daemon.html"><span class="citerefentry"><span class="refentrytitle">sd-daemon</span>(3)</span></a>,
<a href="sd_is_fifo.html"><span class="citerefentry"><span class="refentrytitle">sd_is_fifo</span>(3)</span></a>, <a href="sd_is_fifo.html"><span class="citerefentry"><span class="refentrytitle">sd_is_fifo</span>(3)</span></a>,

View File

@ -19,8 +19,8 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="sd-daemon"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd-daemon, SD_EMERG, SD_ALERT, SD_CRIT, SD_ERR, SD_WARNING, SD_NOTICE, SD_INFO, SD_DEBUG — APIs for <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="sd-daemon"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd-daemon, SD_EMERG, SD_ALERT, SD_CRIT, SD_ERR, SD_WARNING, SD_NOTICE, SD_INFO, SD_DEBUG — APIs for
new-style daemons</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-daemon.h&gt;</pre></div><div class="cmdsynopsis"><p><code class="command">pkg-config --cflags --libs libsystemd</code> </p></div></div><div class="refsect1"><a name="idm214188016064"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="filename">sd-daemon.h</code> provide APIs new-style daemons</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-daemon.h&gt;</pre></div><div class="cmdsynopsis"><p><code class="command">pkg-config --cflags --libs libsystemd</code> </p></div></div><div class="refsect1"><a name="idm214195900512"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="filename">sd-daemon.h</code> provide APIs
for new-style daemons, as implemented by the for new-style daemons, as implemented by the
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a> <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>
init system.</p><p>See init system.</p><p>See
@ -52,11 +52,11 @@
log level system. To use these prefixes simply prefix log level system. To use these prefixes simply prefix
every line with one of these strings. A line that is every line with one of these strings. A line that is
not prefixed will be logged at the default log level not prefixed will be logged at the default log level
SD_INFO.</p><div class="example"><a name="idm214184167584"></a><p class="title"><b>Example 1. Hello World</b></p><div class="example-contents"><p>A daemon may log with the log level SD_INFO.</p><div class="example"><a name="idm214195045552"></a><p class="title"><b>Example 1. Hello World</b></p><div class="example-contents"><p>A daemon may log with the log level
NOTICE by issuing this call:</p><pre class="programlisting">fprintf(stderr, SD_NOTICE "Hello World!\n");</pre></div></div><br class="example-break"></div><div class="refsect1"><a name="idm214180497360"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p><a name="pkgconfig-text"></a>These APIs are implemented as a shared NOTICE by issuing this call:</p><pre class="programlisting">fprintf(stderr, SD_NOTICE "Hello World!\n");</pre></div></div><br class="example-break"></div><div class="refsect1"><a name="idm214192388800"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p><a name="pkgconfig-text"></a>These APIs are implemented as a shared
library, which can be compiled and linked to with the library, which can be compiled and linked to with the
<code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a> <code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a>
file.</p></div><div class="refsect1"><a name="idm214184164912"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> file.</p></div><div class="refsect1"><a name="idm214193723968"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="sd_listen_fds.html"><span class="citerefentry"><span class="refentrytitle">sd_listen_fds</span>(3)</span></a>, <a href="sd_listen_fds.html"><span class="citerefentry"><span class="refentrytitle">sd_listen_fds</span>(3)</span></a>,
<a href="sd_notify.html"><span class="citerefentry"><span class="refentrytitle">sd_notify</span>(3)</span></a>, <a href="sd_notify.html"><span class="citerefentry"><span class="refentrytitle">sd_notify</span>(3)</span></a>,

View File

@ -19,8 +19,8 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="sd-daemon"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd-daemon, SD_EMERG, SD_ALERT, SD_CRIT, SD_ERR, SD_WARNING, SD_NOTICE, SD_INFO, SD_DEBUG — APIs for <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="sd-daemon"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd-daemon, SD_EMERG, SD_ALERT, SD_CRIT, SD_ERR, SD_WARNING, SD_NOTICE, SD_INFO, SD_DEBUG — APIs for
new-style daemons</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-daemon.h&gt;</pre></div><div class="cmdsynopsis"><p><code class="command">pkg-config --cflags --libs libsystemd</code> </p></div></div><div class="refsect1"><a name="idm214188016064"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="filename">sd-daemon.h</code> provide APIs new-style daemons</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-daemon.h&gt;</pre></div><div class="cmdsynopsis"><p><code class="command">pkg-config --cflags --libs libsystemd</code> </p></div></div><div class="refsect1"><a name="idm214195900512"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="filename">sd-daemon.h</code> provide APIs
for new-style daemons, as implemented by the for new-style daemons, as implemented by the
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a> <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>
init system.</p><p>See init system.</p><p>See
@ -52,11 +52,11 @@
log level system. To use these prefixes simply prefix log level system. To use these prefixes simply prefix
every line with one of these strings. A line that is every line with one of these strings. A line that is
not prefixed will be logged at the default log level not prefixed will be logged at the default log level
SD_INFO.</p><div class="example"><a name="idm214184167584"></a><p class="title"><b>Example 1. Hello World</b></p><div class="example-contents"><p>A daemon may log with the log level SD_INFO.</p><div class="example"><a name="idm214195045552"></a><p class="title"><b>Example 1. Hello World</b></p><div class="example-contents"><p>A daemon may log with the log level
NOTICE by issuing this call:</p><pre class="programlisting">fprintf(stderr, SD_NOTICE "Hello World!\n");</pre></div></div><br class="example-break"></div><div class="refsect1"><a name="idm214180497360"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p><a name="pkgconfig-text"></a>These APIs are implemented as a shared NOTICE by issuing this call:</p><pre class="programlisting">fprintf(stderr, SD_NOTICE "Hello World!\n");</pre></div></div><br class="example-break"></div><div class="refsect1"><a name="idm214192388800"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p><a name="pkgconfig-text"></a>These APIs are implemented as a shared
library, which can be compiled and linked to with the library, which can be compiled and linked to with the
<code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a> <code class="constant">libsystemd</code> <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a>
file.</p></div><div class="refsect1"><a name="idm214184164912"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> file.</p></div><div class="refsect1"><a name="idm214193723968"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="sd_listen_fds.html"><span class="citerefentry"><span class="refentrytitle">sd_listen_fds</span>(3)</span></a>, <a href="sd_listen_fds.html"><span class="citerefentry"><span class="refentrytitle">sd_listen_fds</span>(3)</span></a>,
<a href="sd_notify.html"><span class="citerefentry"><span class="refentrytitle">sd_notify</span>(3)</span></a>, <a href="sd_notify.html"><span class="citerefentry"><span class="refentrytitle">sd_notify</span>(3)</span></a>,

View File

@ -1,5 +1,5 @@
'\" t '\" t
.TH "BINFMT\&.D" "5" "" "systemd 214" "binfmt.d" .TH "BINFMT\&.D" "5" "" "systemd 215" "binfmt.d"
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * Define some portability stuff .\" * Define some portability stuff
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------

View File

@ -19,12 +19,12 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="binfmt.d"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>binfmt.d — Configure additional binary formats for <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="binfmt.d"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>binfmt.d — Configure additional binary formats for
executables at boot</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><p><code class="filename">/etc/binfmt.d/*.conf</code></p><p><code class="filename">/run/binfmt.d/*.conf</code></p><p><code class="filename">/usr/lib/binfmt.d/*.conf</code></p></div><div class="refsect1"><a name="idm214180113856"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p>At boot, executables at boot</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><p><code class="filename">/etc/binfmt.d/*.conf</code></p><p><code class="filename">/run/binfmt.d/*.conf</code></p><p><code class="filename">/usr/lib/binfmt.d/*.conf</code></p></div><div class="refsect1"><a name="idm214170142016"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p>At boot,
<a href="systemd-binfmt.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-binfmt.service</span>(8)</span></a> <a href="systemd-binfmt.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-binfmt.service</span>(8)</span></a>
reads configuration files from the above directories reads configuration files from the above directories
to register in the kernel additional binary to register in the kernel additional binary
formats for executables.</p></div><div class="refsect1"><a name="idm214180139264"></a><h2 id="Configuration Format">Configuration Format<a class="headerlink" title="Permalink to this headline" href="#Configuration%20Format"></a></h2><p>Each file contains a list of binfmt_misc kernel formats for executables.</p></div><div class="refsect1"><a name="idm214172795840"></a><h2 id="Configuration Format">Configuration Format<a class="headerlink" title="Permalink to this headline" href="#Configuration%20Format"></a></h2><p>Each file contains a list of binfmt_misc kernel
binary format rules. Consult <a class="ulink" href="https://www.kernel.org/doc/Documentation/binfmt_misc.txt" target="_top">binfmt_misc.txt</a> binary format rules. Consult <a class="ulink" href="https://www.kernel.org/doc/Documentation/binfmt_misc.txt" target="_top">binfmt_misc.txt</a>
for more information on registration of additional for more information on registration of additional
binary formats and how to write rules.</p><p>Empty lines and lines beginning with ; and # are binary formats and how to write rules.</p><p>Empty lines and lines beginning with ; and # are
@ -50,8 +50,8 @@
recommended way is to place a symlink to recommended way is to place a symlink to
<code class="filename">/dev/null</code> in <code class="filename">/dev/null</code> in
<code class="filename">/etc/binfmt.d/</code> bearing the <code class="filename">/etc/binfmt.d/</code> bearing the
same filename.</p></div><div class="refsect1"><a name="idm214176291712"></a><h2 id="Example">Example<a class="headerlink" title="Permalink to this headline" href="#Example"></a></h2><div class="example"><a name="idm214176291040"></a><p class="title"><b>Example 1. /etc/binfmt.d/wine.conf example:</b></p><div class="example-contents"><pre class="programlisting"># Start WINE on Windows executables same filename.</p></div><div class="refsect1"><a name="idm214169046960"></a><h2 id="Example">Example<a class="headerlink" title="Permalink to this headline" href="#Example"></a></h2><div class="example"><a name="idm214169046288"></a><p class="title"><b>Example 1. /etc/binfmt.d/wine.conf example:</b></p><div class="example-contents"><pre class="programlisting"># Start WINE on Windows executables
:DOSWin:M::MZ::/usr/bin/wine:</pre></div></div><br class="example-break"></div><div class="refsect1"><a name="idm214176289440"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> :DOSWin:M::MZ::/usr/bin/wine:</pre></div></div><br class="example-break"></div><div class="refsect1"><a name="idm214169044640"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="systemd-binfmt.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-binfmt.service</span>(8)</span></a>, <a href="systemd-binfmt.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-binfmt.service</span>(8)</span></a>,
<a href="systemd-delta.html"><span class="citerefentry"><span class="refentrytitle">systemd-delta</span>(1)</span></a>, <a href="systemd-delta.html"><span class="citerefentry"><span class="refentrytitle">systemd-delta</span>(1)</span></a>,

View File

@ -1,5 +1,5 @@
'\" t '\" t
.TH "BOOTCHART\&.CONF" "5" "" "systemd 214" "bootchart.conf" .TH "BOOTCHART\&.CONF" "5" "" "systemd 215" "bootchart.conf"
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * Define some portability stuff .\" * Define some portability stuff
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------

View File

@ -19,10 +19,10 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="bootchart.conf"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>bootchart.conf — Boot performance analysis graphing tool configuration file</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><p><code class="filename">/etc/systemd/bootchart.conf</code></p></div><div class="refsect1"><a name="idm214187346016"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p>When starting, systemd-bootchart will read the <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="bootchart.conf"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>bootchart.conf — Boot performance analysis graphing tool configuration file</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><p><code class="filename">/etc/systemd/bootchart.conf</code></p></div><div class="refsect1"><a name="idm214168376384"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p>When starting, systemd-bootchart will read the
configuration file <code class="filename">bootchart.conf</code>. configuration file <code class="filename">bootchart.conf</code>.
This configuration file determines logging parameters and This configuration file determines logging parameters and
graph output.</p></div><div class="refsect1"><a name="idm214191942832"></a><h2 id="Options">Options<a class="headerlink" title="Permalink to this headline" href="#Options"></a></h2><div class="variablelist"><dl class="variablelist"><dt id="Samples=500"><span class="term"><code class="varname">Samples=500</code></span><a class="headerlink" title="Permalink to this term" href="#Samples=500"></a></dt><dd><p>Configure the amount of samples to graph output.</p></div><div class="refsect1"><a name="idm214170469440"></a><h2 id="Options">Options<a class="headerlink" title="Permalink to this headline" href="#Options"></a></h2><div class="variablelist"><dl class="variablelist"><dt id="Samples=500"><span class="term"><code class="varname">Samples=500</code></span><a class="headerlink" title="Permalink to this term" href="#Samples=500"></a></dt><dd><p>Configure the amount of samples to
record in total before bootchart exits. Each sample will record in total before bootchart exits. Each sample will
record at intervals defined by Frequency=.</p></dd><dt id="Frequency=25"><span class="term"><code class="varname">Frequency=25</code></span><a class="headerlink" title="Permalink to this term" href="#Frequency=25"></a></dt><dd><p>Configure the sample log frequency. record at intervals defined by Frequency=.</p></dd><dt id="Frequency=25"><span class="term"><code class="varname">Frequency=25</code></span><a class="headerlink" title="Permalink to this term" href="#Frequency=25"></a></dt><dd><p>Configure the sample log frequency.
This can be a fractional number, but must be larger than This can be a fractional number, but must be larger than
@ -48,7 +48,7 @@
of processes' PSS memory consumption.</p></dd><dt id="PlotEntropyGraph=no"><span class="term"><code class="varname">PlotEntropyGraph=no</code></span><a class="headerlink" title="Permalink to this term" href="#PlotEntropyGraph=no"></a></dt><dd><p>If set to yes, enables logging and graphing of processes' PSS memory consumption.</p></dd><dt id="PlotEntropyGraph=no"><span class="term"><code class="varname">PlotEntropyGraph=no</code></span><a class="headerlink" title="Permalink to this term" href="#PlotEntropyGraph=no"></a></dt><dd><p>If set to yes, enables logging and graphing
of the kernel random entropy pool size.</p></dd><dt id="ScaleX=100"><span class="term"><code class="varname">ScaleX=100</code></span><a class="headerlink" title="Permalink to this term" href="#ScaleX=100"></a></dt><dd><p>Horizontal scaling factor for all variable of the kernel random entropy pool size.</p></dd><dt id="ScaleX=100"><span class="term"><code class="varname">ScaleX=100</code></span><a class="headerlink" title="Permalink to this term" href="#ScaleX=100"></a></dt><dd><p>Horizontal scaling factor for all variable
graph components.</p></dd><dt id="ScaleY=20"><span class="term"><code class="varname">ScaleY=20</code></span><a class="headerlink" title="Permalink to this term" href="#ScaleY=20"></a></dt><dd><p>Vertical scaling factor for all variable graph components.</p></dd><dt id="ScaleY=20"><span class="term"><code class="varname">ScaleY=20</code></span><a class="headerlink" title="Permalink to this term" href="#ScaleY=20"></a></dt><dd><p>Vertical scaling factor for all variable
graph components.</p></dd><dt id="ControlGroup=no"><span class="term"><code class="varname">ControlGroup=no</code></span><a class="headerlink" title="Permalink to this term" href="#ControlGroup=no"></a></dt><dd><p>Display process control group.</p></dd></dl></div></div><div class="refsect1"><a name="idm214192067360"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> graph components.</p></dd><dt id="ControlGroup=no"><span class="term"><code class="varname">ControlGroup=no</code></span><a class="headerlink" title="Permalink to this term" href="#ControlGroup=no"></a></dt><dd><p>Display process control group.</p></dd></dl></div></div><div class="refsect1"><a name="idm214170612832"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd-bootchart.html"><span class="citerefentry"><span class="refentrytitle">systemd-bootchart</span>(1)</span></a>, <a href="systemd-bootchart.html"><span class="citerefentry"><span class="refentrytitle">systemd-bootchart</span>(1)</span></a>,
<a href="systemd.directives.html"><span class="citerefentry"><span class="refentrytitle">systemd.directives</span>(7)</span></a> <a href="systemd.directives.html"><span class="citerefentry"><span class="refentrytitle">systemd.directives</span>(7)</span></a>
</p></div></div></body></html> </p></div></div></body></html>

View File

@ -1,5 +1,5 @@
'\" t '\" t
.TH "BOOTCTL" "1" "" "systemd 214" "bootctl" .TH "BOOTCTL" "1" "" "systemd 215" "bootctl"
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * Define some portability stuff .\" * Define some portability stuff
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------

View File

@ -19,18 +19,18 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="bootctl"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>bootctl — Control the firmware and boot manager settings</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">bootctl</code> [OPTIONS...] {COMMAND}</p></div></div><div class="refsect1"><a name="idm214192376192"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><span class="command"><strong>bootctl</strong></span> may be used to <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="bootctl"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>bootctl — Control the firmware and boot manager settings</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">bootctl</code> [OPTIONS...] {COMMAND}</p></div></div><div class="refsect1"><a name="idm214180461680"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><span class="command"><strong>bootctl</strong></span> may be used to
query or (in the future) change the firmware and boot query or (in the future) change the firmware and boot
manager settings.</p><p>Firmware information is available only on EFI manager settings.</p><p>Firmware information is available only on EFI
systems.</p><p>Currently, only the <a href="gummiboot.html"><span class="citerefentry"><span class="refentrytitle">gummiboot</span>(8)</span></a> boot systems.</p><p>Currently, only the <a href="gummiboot.html"><span class="citerefentry"><span class="refentrytitle">gummiboot</span>(8)</span></a> boot
manager implements the required boot loader interface manager implements the required boot loader interface
to provide complete boot manager information.</p></div><div class="refsect1"><a name="idm214188563984"></a><h2 id="Options">Options<a class="headerlink" title="Permalink to this headline" href="#Options"></a></h2><p>The following options are understood:</p><div class="variablelist"><dl class="variablelist"><dt id="-h"><span class="term"><code class="option">-h</code>, </span><span class="term"><code class="option">--help</code></span><a class="headerlink" title="Permalink to this term" href="#-h"></a></dt><dd><p><a name="help-text"></a>Print a short help text and exit. to provide complete boot manager information.</p></div><div class="refsect1"><a name="idm214180504032"></a><h2 id="Options">Options<a class="headerlink" title="Permalink to this headline" href="#Options"></a></h2><p>The following options are understood:</p><div class="variablelist"><dl class="variablelist"><dt id="-h"><span class="term"><code class="option">-h</code>, </span><span class="term"><code class="option">--help</code></span><a class="headerlink" title="Permalink to this term" href="#-h"></a></dt><dd><p><a name="help-text"></a>Print a short help text and exit.
</p></dd><dt id="--version"><span class="term"><code class="option">--version</code></span><a class="headerlink" title="Permalink to this term" href="#--version"></a></dt><dd><p><a name="version-text"></a>Print a short version string and exit.</p></dd></dl></div><p>The following commands are understood:</p><div class="variablelist"><dl class="variablelist"><dt id="status"><span class="term"><span class="command"><strong>status</strong></span></span><a class="headerlink" title="Permalink to this term" href="#status"></a></dt><dd><p>Show firmware and boot </p></dd><dt id="--version"><span class="term"><code class="option">--version</code></span><a class="headerlink" title="Permalink to this term" href="#--version"></a></dt><dd><p><a name="version-text"></a>Print a short version string and exit.</p></dd></dl></div><p>The following commands are understood:</p><div class="variablelist"><dl class="variablelist"><dt id="status"><span class="term"><span class="command"><strong>status</strong></span></span><a class="headerlink" title="Permalink to this term" href="#status"></a></dt><dd><p>Show firmware and boot
manager information about the system, manager information about the system,
including secure boot mode status and including secure boot mode status and
selected firmware entry (where selected firmware entry (where
available).</p></dd></dl></div></div><div class="refsect1"><a name="idm214188557920"></a><h2 id="Exit status">Exit status<a class="headerlink" title="Permalink to this headline" href="#Exit%20status"></a></h2><p>On success, 0 is returned, a non-zero failure available).</p></dd></dl></div></div><div class="refsect1"><a name="idm214176713504"></a><h2 id="Exit status">Exit status<a class="headerlink" title="Permalink to this headline" href="#Exit%20status"></a></h2><p>On success, 0 is returned, a non-zero failure
code otherwise.</p></div><div class="refsect1"><a name="idm214188556736"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> code otherwise.</p></div><div class="refsect1"><a name="idm214176712320"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a class="ulink" href="http://www.freedesktop.org/wiki/Software/systemd/BootLoaderInterface" target="_top">Boot loader interface</a>, <a class="ulink" href="http://www.freedesktop.org/wiki/Software/systemd/BootLoaderInterface" target="_top">Boot loader interface</a>,
<a class="ulink" href="http://www.freedesktop.org/wiki/Specifications/BootLoaderSpec" target="_top">Boot loader specification</a>, <a class="ulink" href="http://www.freedesktop.org/wiki/Specifications/BootLoaderSpec" target="_top">Boot loader specification</a>,
<a class="ulink" href="http://www.freedesktop.org/wiki/Software/gummiboot/" target="_top">gummiboot</a> <a class="ulink" href="http://www.freedesktop.org/wiki/Software/gummiboot/" target="_top">gummiboot</a>

View File

@ -1,5 +1,5 @@
'\" t '\" t
.TH "BOOTUP" "7" "" "systemd 214" "bootup" .TH "BOOTUP" "7" "" "systemd 215" "bootup"
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * Define some portability stuff .\" * Define some portability stuff
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------

View File

@ -19,7 +19,7 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="bootup"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>bootup — System bootup process</p></div><div class="refsect1"><a name="idm214173222816"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p>A number of different components are involved in <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="bootup"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>bootup — System bootup process</p></div><div class="refsect1"><a name="idm214175133552"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p>A number of different components are involved in
the system boot. Immediately after power-up, the the system boot. Immediately after power-up, the
system BIOS will do minimal hardware initialization, system BIOS will do minimal hardware initialization,
and hand control over to a boot loader stored on a and hand control over to a boot loader stored on a
@ -45,7 +45,7 @@
unmounts/detaches the root file system and the storage unmounts/detaches the root file system and the storage
it resides on. As a last step, the system is powered down.</p><p>Additional information about the system boot it resides on. As a last step, the system is powered down.</p><p>Additional information about the system boot
process may be found in process may be found in
<a href="boot.html"><span class="citerefentry"><span class="refentrytitle">boot</span>(7)</span></a>.</p></div><div class="refsect1"><a name="idm214169432720"></a><h2 id="System Manager Bootup">System Manager Bootup<a class="headerlink" title="Permalink to this headline" href="#System%20Manager%20Bootup"></a></h2><p>At boot, the system manager on the OS image is <a href="boot.html"><span class="citerefentry"><span class="refentrytitle">boot</span>(7)</span></a>.</p></div><div class="refsect1"><a name="idm214172705392"></a><h2 id="System Manager Bootup">System Manager Bootup<a class="headerlink" title="Permalink to this headline" href="#System%20Manager%20Bootup"></a></h2><p>At boot, the system manager on the OS image is
responsible for initializing the required file responsible for initializing the required file
systems, services and drivers that are necessary for systems, services and drivers that are necessary for
operation of the system. On operation of the system. On
@ -124,7 +124,7 @@
option (see option (see
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>) <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>)
or by symlinking <code class="filename">default.target</code> or by symlinking <code class="filename">default.target</code>
to them.</p></div><div class="refsect1"><a name="idm214173316512"></a><h2 id="Bootup in the Initial RAM Disk (initrd)">Bootup in the Initial RAM Disk (initrd)<a class="headerlink" title="Permalink to this headline" href="#Bootup%20in%20the%20Initial%20RAM%20Disk%20(initrd)"></a></h2><p>The initial RAM disk implementation (initrd) can to them.</p></div><div class="refsect1"><a name="idm214174200976"></a><h2 id="Bootup in the Initial RAM Disk (initrd)">Bootup in the Initial RAM Disk (initrd)<a class="headerlink" title="Permalink to this headline" href="#Bootup%20in%20the%20Initial%20RAM%20Disk%20(initrd)"></a></h2><p>The initial RAM disk implementation (initrd) can
be set up using systemd as well. In this case, boot up be set up using systemd as well. In this case, boot up
inside the initrd follows the following inside the initrd follows the following
structure.</p><p>The default target in the initrd is structure.</p><p>The default target in the initrd is
@ -202,7 +202,7 @@
initrd-switch-root.service initrd-switch-root.service
| |
v v
Transition to Host OS</pre></div><div class="refsect1"><a name="idm214173291536"></a><h2 id="System Manager Shutdown">System Manager Shutdown<a class="headerlink" title="Permalink to this headline" href="#System%20Manager%20Shutdown"></a></h2><p>System shutdown with systemd also consists of Transition to Host OS</pre></div><div class="refsect1"><a name="idm214171319504"></a><h2 id="System Manager Shutdown">System Manager Shutdown<a class="headerlink" title="Permalink to this headline" href="#System%20Manager%20Shutdown"></a></h2><p>System shutdown with systemd also consists of
various target units with some minimal ordering various target units with some minimal ordering
structure applied:</p><pre class="programlisting"> (conflicts with (conflicts with structure applied:</p><pre class="programlisting"> (conflicts with (conflicts with
all system all file system all system all file system
@ -229,7 +229,7 @@
systemd-reboot.service systemd-poweroff.service systemd-halt.service systemd-kexec.service systemd-reboot.service systemd-poweroff.service systemd-halt.service systemd-kexec.service
| | | | | | | |
v v v v v v v v
<span class="emphasis"><em>reboot.target</em></span> <span class="emphasis"><em>poweroff.target</em></span> <span class="emphasis"><em>halt.target</em></span> <span class="emphasis"><em>kexec.target</em></span></pre><p>Commonly used system shutdown targets are <span class="emphasis"><em>emphasized</em></span>.</p></div><div class="refsect1"><a name="idm214173283648"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> <span class="emphasis"><em>reboot.target</em></span> <span class="emphasis"><em>poweroff.target</em></span> <span class="emphasis"><em>halt.target</em></span> <span class="emphasis"><em>kexec.target</em></span></pre><p>Commonly used system shutdown targets are <span class="emphasis"><em>emphasized</em></span>.</p></div><div class="refsect1"><a name="idm214172155856"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="boot.html"><span class="citerefentry"><span class="refentrytitle">boot</span>(7)</span></a>, <a href="boot.html"><span class="citerefentry"><span class="refentrytitle">boot</span>(7)</span></a>,
<a href="systemd.special.html"><span class="citerefentry"><span class="refentrytitle">systemd.special</span>(7)</span></a>, <a href="systemd.special.html"><span class="citerefentry"><span class="refentrytitle">systemd.special</span>(7)</span></a>,

View File

@ -1,5 +1,5 @@
'\" t '\" t
.TH "BUSCTL" "1" "" "systemd 214" "busctl" .TH "BUSCTL" "1" "" "systemd 215" "busctl"
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * Define some portability stuff .\" * Define some portability stuff
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
@ -90,8 +90,10 @@ Talk to the service manager of the system\&. This is the implied default\&.
.PP .PP
\fB\-H\fR, \fB\-\-host=\fR \fB\-H\fR, \fB\-\-host=\fR
.RS 4 .RS 4
Execute the operation remotely\&. Specify a hostname, or username and hostname separated by Execute the operation remotely\&. Specify a hostname, or a username and hostname separated by
"@", to connect to\&. This will use SSH to talk to the remote machine manager instance\&. "@", to connect to\&. The hostname may optionally be suffixed by a container name, separated by
":", which connects directly to a specific container on the specified host\&. This will use SSH to talk to the remote machine manager instance\&. Container names may be enumerated with
\fBmachinectl \-H \fR\fB\fIHOST\fR\fR\&.
.RE .RE
.PP .PP
\fB\-M\fR, \fB\-\-machine=\fR \fB\-M\fR, \fB\-\-machine=\fR

View File

@ -19,8 +19,8 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="busctl"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>busctl — Introspect the bus</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">busctl</code> [OPTIONS...] [COMMAND] [<em class="replaceable"><code>NAME</code></em>...]</p></div></div><div class="refsect1"><a name="idm214177446480"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><span class="command"><strong>busctl</strong></span> may be used to <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="busctl"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>busctl — Introspect the bus</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">busctl</code> [OPTIONS...] [COMMAND] [<em class="replaceable"><code>NAME</code></em>...]</p></div></div><div class="refsect1"><a name="idm214187534608"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><span class="command"><strong>busctl</strong></span> may be used to
introspect and monitor the D-Bus bus.</p></div><div class="refsect1"><a name="idm214177444736"></a><h2 id="Options">Options<a class="headerlink" title="Permalink to this headline" href="#Options"></a></h2><p>The following options are understood:</p><div class="variablelist"><dl class="variablelist"><dt id="--address=ADDRESS"><span class="term"><code class="option">--address=<em class="replaceable"><code>ADDRESS</code></em></code></span><a class="headerlink" title="Permalink to this term" href="#--address=ADDRESS"></a></dt><dd><p>Connect to the bus specified by introspect and monitor the D-Bus bus.</p></div><div class="refsect1"><a name="idm214188850608"></a><h2 id="Options">Options<a class="headerlink" title="Permalink to this headline" href="#Options"></a></h2><p>The following options are understood:</p><div class="variablelist"><dl class="variablelist"><dt id="--address=ADDRESS"><span class="term"><code class="option">--address=<em class="replaceable"><code>ADDRESS</code></em></code></span><a class="headerlink" title="Permalink to this term" href="#--address=ADDRESS"></a></dt><dd><p>Connect to the bus specified by
<em class="replaceable"><code>ADDRESS</code></em> instead of using suitable <em class="replaceable"><code>ADDRESS</code></em> instead of using suitable
defaults for either the system or user bus (see defaults for either the system or user bus (see
<code class="option">--system</code> and <code class="option">--user</code> <code class="option">--system</code> and <code class="option">--user</code>
@ -39,17 +39,22 @@
i.e. the column headers and the i.e. the column headers and the
footer.</p></dd><dt id="--user"><span class="term"><code class="option">--user</code></span><a class="headerlink" title="Permalink to this term" href="#--user"></a></dt><dd><p><a name="user-text"></a>Talk to the service manager of the calling user, footer.</p></dd><dt id="--user"><span class="term"><code class="option">--user</code></span><a class="headerlink" title="Permalink to this term" href="#--user"></a></dt><dd><p><a name="user-text"></a>Talk to the service manager of the calling user,
rather than the service manager of the system.</p></dd><dt id="--system"><span class="term"><code class="option">--system</code></span><a class="headerlink" title="Permalink to this term" href="#--system"></a></dt><dd><p><a name="system-text"></a>Talk to the service manager of the system. This is the rather than the service manager of the system.</p></dd><dt id="--system"><span class="term"><code class="option">--system</code></span><a class="headerlink" title="Permalink to this term" href="#--system"></a></dt><dd><p><a name="system-text"></a>Talk to the service manager of the system. This is the
implied default.</p></dd><dt id="-H"><span class="term"><code class="option">-H</code>, </span><span class="term"><code class="option">--host=</code></span><a class="headerlink" title="Permalink to this term" href="#-H"></a></dt><dd><p><a name="host-text"></a>Execute the operation remotely. Specify a hostname, or implied default.</p></dd><dt id="-H"><span class="term"><code class="option">-H</code>, </span><span class="term"><code class="option">--host=</code></span><a class="headerlink" title="Permalink to this term" href="#-H"></a></dt><dd><p><a name="host-text"></a>Execute the operation remotely. Specify a hostname, or a
username and hostname separated by "<code class="literal">@</code>", to username and hostname separated by "<code class="literal">@</code>", to
connect to. This will use SSH to talk to the remote machine connect to. The hostname may optionally be suffixed by a
manager instance.</p></dd><dt id="-M"><span class="term"><code class="option">-M</code>, </span><span class="term"><code class="option">--machine=</code></span><a class="headerlink" title="Permalink to this term" href="#-M"></a></dt><dd><p><a name="machine-text"></a>Execute operation on a local container. Specify a container name, separated by "<code class="literal">:</code>", which
connects directly to a specific container on the specified
host. This will use SSH to talk to the remote machine manager
instance. Container names may be enumerated with
<span class="command"><strong>machinectl -H
<em class="replaceable"><code>HOST</code></em></strong></span>.</p></dd><dt id="-M"><span class="term"><code class="option">-M</code>, </span><span class="term"><code class="option">--machine=</code></span><a class="headerlink" title="Permalink to this term" href="#-M"></a></dt><dd><p><a name="machine-text"></a>Execute operation on a local container. Specify a
container name to connect to.</p></dd><dt id="-h"><span class="term"><code class="option">-h</code>, </span><span class="term"><code class="option">--help</code></span><a class="headerlink" title="Permalink to this term" href="#-h"></a></dt><dd><p><a name="help-text"></a>Print a short help text and exit. container name to connect to.</p></dd><dt id="-h"><span class="term"><code class="option">-h</code>, </span><span class="term"><code class="option">--help</code></span><a class="headerlink" title="Permalink to this term" href="#-h"></a></dt><dd><p><a name="help-text"></a>Print a short help text and exit.
</p></dd><dt id="--version"><span class="term"><code class="option">--version</code></span><a class="headerlink" title="Permalink to this term" href="#--version"></a></dt><dd><p><a name="version-text"></a>Print a short version string and exit.</p></dd><dt id="--no-pager"><span class="term"><code class="option">--no-pager</code></span><a class="headerlink" title="Permalink to this term" href="#--no-pager"></a></dt><dd><p>Do not pipe output into a pager.</p></dd></dl></div></div><div class="refsect1"><a name="idm214181322304"></a><h2 id="Commands">Commands<a class="headerlink" title="Permalink to this headline" href="#Commands"></a></h2><p>The following commands are understood:</p><div class="variablelist"><dl class="variablelist"><dt id="list"><span class="term"><span class="command"><strong>list</strong></span></span><a class="headerlink" title="Permalink to this term" href="#list"></a></dt><dd><p>Show endpoints attached to the bus. This is </p></dd><dt id="--version"><span class="term"><code class="option">--version</code></span><a class="headerlink" title="Permalink to this term" href="#--version"></a></dt><dd><p><a name="version-text"></a>Print a short version string and exit.</p></dd><dt id="--no-pager"><span class="term"><code class="option">--no-pager</code></span><a class="headerlink" title="Permalink to this term" href="#--no-pager"></a></dt><dd><p>Do not pipe output into a pager.</p></dd></dl></div></div><div class="refsect1"><a name="idm214187800176"></a><h2 id="Commands">Commands<a class="headerlink" title="Permalink to this headline" href="#Commands"></a></h2><p>The following commands are understood:</p><div class="variablelist"><dl class="variablelist"><dt id="list"><span class="term"><span class="command"><strong>list</strong></span></span><a class="headerlink" title="Permalink to this term" href="#list"></a></dt><dd><p>Show endpoints attached to the bus. This is
the default if no command is specified.</p></dd><dt id="monitor NAME"><span class="term"><span class="command"><strong>monitor</strong></span> [<em class="replaceable"><code>NAME</code></em>...]</span><a class="headerlink" title="Permalink to this term" href="#monitor%20%20NAME"></a></dt><dd><p>Dump messages being exchanged. If the default if no command is specified.</p></dd><dt id="monitor NAME"><span class="term"><span class="command"><strong>monitor</strong></span> [<em class="replaceable"><code>NAME</code></em>...]</span><a class="headerlink" title="Permalink to this term" href="#monitor%20%20NAME"></a></dt><dd><p>Dump messages being exchanged. If
<em class="replaceable"><code>NAME</code></em> is specified, show messages <em class="replaceable"><code>NAME</code></em> is specified, show messages
to or from this endpoint. Otherwise, show all messages on the to or from this endpoint. Otherwise, show all messages on the
bus.</p></dd><dt id="status NAME"><span class="term"><span class="command"><strong>status</strong></span> <em class="replaceable"><code>NAME</code></em> </span><a class="headerlink" title="Permalink to this term" href="#status%20%20NAME"></a></dt><dd><p>Show process information and credentials of a bus.</p></dd><dt id="status NAME"><span class="term"><span class="command"><strong>status</strong></span> <em class="replaceable"><code>NAME</code></em> </span><a class="headerlink" title="Permalink to this term" href="#status%20%20NAME"></a></dt><dd><p>Show process information and credentials of a
bus endpoint.</p></dd><dt id="help"><span class="term"><span class="command"><strong>help</strong></span></span><a class="headerlink" title="Permalink to this term" href="#help"></a></dt><dd><p>Show command syntax help.</p></dd></dl></div></div><div class="refsect1"><a name="idm214181303952"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> bus endpoint.</p></dd><dt id="help"><span class="term"><span class="command"><strong>help</strong></span></span><a class="headerlink" title="Permalink to this term" href="#help"></a></dt><dd><p>Show command syntax help.</p></dd></dl></div></div><div class="refsect1"><a name="idm214188024640"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="dbus-daemon.html"><span class="citerefentry"><span class="refentrytitle">dbus-daemon</span>(1)</span></a>, <a href="dbus-daemon.html"><span class="citerefentry"><span class="refentrytitle">dbus-daemon</span>(1)</span></a>,
<a class="ulink" href="http://freedesktop.org/wiki/Software/dbus" target="_top">D-Bus</a>, <a class="ulink" href="http://freedesktop.org/wiki/Software/dbus" target="_top">D-Bus</a>,
<a class="ulink" href="https://code.google.com/p/d-bus/" target="_top">kdbus</a>, <a class="ulink" href="https://code.google.com/p/d-bus/" target="_top">kdbus</a>,

84
man/coredump.conf.5 Normal file
View File

@ -0,0 +1,84 @@
'\" t
.TH "COREDUMP\&.CONF" "5" "" "systemd 215" "coredump.conf"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
coredump.conf \- Coredump storage configuration file
.SH "SYNOPSIS"
.PP
/etc/systemd/coredump\&.conf
.SH "DESCRIPTION"
.PP
This file configures the behaviour of
\fBsystemd\-coredump\fR, a handler for core dumps invoked by the kernel\&.
.SH "OPTIONS"
.PP
All options are configured in the
"[Coredump]"
section:
.PP
\fIStorage=\fR
.RS 4
Controls where to store cores\&. One of
"none",
"external",
"journal", and
"both"\&. When
"none", the coredumps will be logged but not stored permanently\&. When
"external"
(the default), cores will be stored in
/var/lib/systemd/coredump\&. When
"journal", cores will be stored in the journal and rotated following normal journal rotation patterns\&. When
"both", cores will be stored in both locations\&.
.sp
When cores are stored in the journal, they might be compressed following journal compression settings, see
\fBjournald.conf\fR(5)\&. When cores are stored externally, they will be compressed by default, see below\&.
.RE
.PP
\fICompress=\fR
.RS 4
Controls the type of compression for external storage\&. Takes a boolean argument, defaults to
"yes"\&.
.RE
.PP
\fIProcessSizeMax=\fR
.RS 4
The maximum size in bytes of a core which will be processed\&. Coredumps exceeding this size will be logged, but the backtrace will not be generated and the core will not be stored\&.
.RE
.PP
\fIExternalSizeMax=\fR, \fIJournalSizeMax=\fR
.RS 4
The maximum (uncompressed) size in bytes of a core to be saved\&.
.RE
.PP
\fIMaxUse=\fR, \fIKeepFree=\fR
.RS 4
Enforce limits on the disk space taken up by externally stored coredumps\&.
\fBMaxUse=\fR
makes sure that old coredumps are removed as soon as the total disk space taken up by coredumps grows beyond this limit (defaults to 10% of the total disk size)\&.
\fBKeepFree=\fR
controls how much disk space to keep free at least (defaults to 15% of the total disk size)\&. Note that the disk space used by coredumps might temporarily exceed these limits while coredumps are processed\&. Note that old coredumps are also removed based on on time via
\fBsystemd-tmpfiles\fR(8)\&.
.RE
.SH "SEE ALSO"
.PP
\fBsystemd-journald.service\fR(8),
\fBcoredumpctl\fR(1),
\fBsystemd-tmpfiles\fR(8)

57
man/coredump.conf.html Normal file
View File

@ -0,0 +1,57 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>coredump.conf</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><style>
a.headerlink {
color: #c60f0f;
font-size: 0.8em;
padding: 0 4px 0 4px;
text-decoration: none;
visibility: hidden;
}
a.headerlink:hover {
background-color: #c60f0f;
color: white;
}
h1:hover > a.headerlink, h2:hover > a.headerlink, h3:hover > a.headerlink, dt:hover > a.headerlink {
visibility: visible;
}
</style><a href="index.html">Index </a>·
<a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="coredump.conf"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>coredump.conf — Coredump storage configuration file</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><p><code class="filename">/etc/systemd/coredump.conf</code></p></div><div class="refsect1"><a name="idm214179163936"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p>This file configures the behaviour of <span class="command"><strong>systemd-coredump</strong></span>,
a handler for core dumps invoked by the kernel.</p></div><div class="refsect1"><a name="idm214183007376"></a><h2 id="Options">Options<a class="headerlink" title="Permalink to this headline" href="#Options"></a></h2><p>All options are configured in the
"<code class="literal">[Coredump]</code>" section:</p><div class="variablelist"><dl class="variablelist"><dt id="Storage="><span class="term"><code class="varname">Storage=</code></span><a class="headerlink" title="Permalink to this term" href="#Storage="></a></dt><dd><p>Controls where to store cores. One of
"<code class="literal">none</code>", "<code class="literal">external</code>",
"<code class="literal">journal</code>", and "<code class="literal">both</code>". When
"<code class="literal">none</code>", the coredumps will be logged but not
stored permanently. When "<code class="literal">external</code>" (the
default), cores will be stored in <code class="filename">/var/lib/systemd/coredump</code>.
When "<code class="literal">journal</code>", cores will be stored in
the journal and rotated following normal journal
rotation patterns. When "<code class="literal">both</code>", cores
will be stored in both locations.</p><p>When cores are stored in the journal, they might be
compressed following journal compression settings, see
<a href="journald.conf.html"><span class="citerefentry"><span class="refentrytitle">journald.conf</span>(5)</span></a>.
When cores are stored externally, they will be compressed
by default, see below.</p></dd><dt id="Compress="><span class="term"><code class="varname">Compress=</code></span><a class="headerlink" title="Permalink to this term" href="#Compress="></a></dt><dd><p>Controls the type of compression for external
storage. Takes a boolean argument, defaults to
"<code class="literal">yes</code>".</p></dd><dt id="ProcessSizeMax="><span class="term"><code class="varname">ProcessSizeMax=</code></span><a class="headerlink" title="Permalink to this term" href="#ProcessSizeMax="></a></dt><dd><p>The maximum size in bytes of a core
which will be processed. Coredumps exceeding this size
will be logged, but the backtrace will not be generated
and the core will not be stored.</p></dd><dt id="ExternalSizeMax="><span class="term"><code class="varname">ExternalSizeMax=</code>, </span><span class="term"><code class="varname">JournalSizeMax=</code></span><a class="headerlink" title="Permalink to this term" href="#ExternalSizeMax="></a></dt><dd><p>The maximum (uncompressed) size in bytes of a
core to be saved.</p></dd><dt id="MaxUse="><span class="term"><code class="varname">MaxUse=</code>, </span><span class="term"><code class="varname">KeepFree=</code></span><a class="headerlink" title="Permalink to this term" href="#MaxUse="></a></dt><dd><p>Enforce limits on the disk space taken up by
externally stored coredumps. <code class="option">MaxUse=</code> makes
sure that old coredumps are removed as soon as the total disk
space taken up by coredumps grows beyond this limit (defaults
to 10% of the total disk size). <code class="option">KeepFree=</code>
controls how much disk space to keep free at least (defaults
to 15% of the total disk size). Note that the disk space used
by coredumps might temporarily exceed these limits while
coredumps are processed. Note that old coredumps are also
removed based on on time via
<a href="systemd-tmpfiles.html"><span class="citerefentry"><span class="refentrytitle">systemd-tmpfiles</span>(8)</span></a>.</p></dd></dl></div></div><div class="refsect1"><a name="idm214183150560"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd-journald.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-journald.service</span>(8)</span></a>,
<a href="coredumpctl.html"><span class="citerefentry"><span class="refentrytitle">coredumpctl</span>(1)</span></a>,
<a href="systemd-tmpfiles.html"><span class="citerefentry"><span class="refentrytitle">systemd-tmpfiles</span>(8)</span></a>
</p></div></div></body></html>

145
man/coredump.conf.xml Normal file
View File

@ -0,0 +1,145 @@
<?xml version='1.0'?> <!--*-nxml-*-->
<?xml-stylesheet type="text/xsl" href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<!--
This file is part of systemd.
Copyright 2014 Zbigniew Jędrzejewski-Szmek
systemd is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
systemd is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with systemd; If not, see <http://www.gnu.org/licenses/>.
-->
<refentry id="coredump.conf" conditional="ENABLE_COREDUMP">
<refentryinfo>
<title>coredump.conf</title>
<productname>systemd</productname>
<authorgroup>
<author>
<contrib>Developer</contrib>
<firstname>Lennart</firstname>
<surname>Poettering</surname>
<email>lennart@poettering.net</email>
</author>
</authorgroup>
</refentryinfo>
<refmeta>
<refentrytitle>coredump.conf</refentrytitle>
<manvolnum>5</manvolnum>
</refmeta>
<refnamediv>
<refname>coredump.conf</refname>
<refpurpose>Coredump storage configuration file</refpurpose>
</refnamediv>
<refsynopsisdiv>
<para><filename>/etc/systemd/coredump.conf</filename></para>
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para>This file configures the behaviour of <command>systemd-coredump</command>,
a handler for core dumps invoked by the kernel.</para>
</refsect1>
<refsect1>
<title>Options</title>
<para>All options are configured in the
<literal>[Coredump]</literal> section:</para>
<variablelist>
<varlistentry>
<term><varname>Storage=</varname></term>
<listitem><para>Controls where to store cores. One of
<literal>none</literal>, <literal>external</literal>,
<literal>journal</literal>, and <literal>both</literal>. When
<literal>none</literal>, the coredumps will be logged but not
stored permanently. When <literal>external</literal> (the
default), cores will be stored in <filename>/var/lib/systemd/coredump</filename>.
When <literal>journal</literal>, cores will be stored in
the journal and rotated following normal journal
rotation patterns. When <literal>both</literal>, cores
will be stored in both locations.</para>
<para>When cores are stored in the journal, they might be
compressed following journal compression settings, see
<citerefentry><refentrytitle>journald.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
When cores are stored externally, they will be compressed
by default, see below.</para></listitem>
</varlistentry>
<varlistentry>
<term><varname>Compress=</varname></term>
<listitem><para>Controls the type of compression for external
storage. Takes a boolean argument, defaults to
<literal>yes</literal>.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><varname>ProcessSizeMax=</varname></term>
<listitem><para>The maximum size in bytes of a core
which will be processed. Coredumps exceeding this size
will be logged, but the backtrace will not be generated
and the core will not be stored.</para></listitem>
</varlistentry>
<varlistentry>
<term><varname>ExternalSizeMax=</varname></term>
<term><varname>JournalSizeMax=</varname></term>
<listitem><para>The maximum (uncompressed) size in bytes of a
core to be saved.</para></listitem>
</varlistentry>
<varlistentry>
<term><varname>MaxUse=</varname></term>
<term><varname>KeepFree=</varname></term>
<listitem><para>Enforce limits on the disk space taken up by
externally stored coredumps. <option>MaxUse=</option> makes
sure that old coredumps are removed as soon as the total disk
space taken up by coredumps grows beyond this limit (defaults
to 10% of the total disk size). <option>KeepFree=</option>
controls how much disk space to keep free at least (defaults
to 15% of the total disk size). Note that the disk space used
by coredumps might temporarily exceed these limits while
coredumps are processed. Note that old coredumps are also
removed based on on time via
<citerefentry><refentrytitle>systemd-tmpfiles</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para></listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title>See Also</title>
<para>
<citerefentry><refentrytitle>systemd-journald.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
<citerefentry><refentrytitle>coredumpctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
<citerefentry><refentrytitle>systemd-tmpfiles</refentrytitle><manvolnum>8</manvolnum></citerefentry>
</para>
</refsect1>
</refentry>

View File

@ -1,5 +1,5 @@
'\" t '\" t
.TH "SYSTEMD\-COREDUMPCTL" "1" "" "systemd 214" "systemd-coredumpctl" .TH "COREDUMPCTL" "1" "" "systemd 215" "coredumpctl"
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * Define some portability stuff .\" * Define some portability stuff
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
@ -20,19 +20,29 @@
.\" * MAIN CONTENT STARTS HERE * .\" * MAIN CONTENT STARTS HERE *
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.SH "NAME" .SH "NAME"
systemd-coredumpctl \- Retrieve coredumps from the journal coredumpctl \- Retrieve coredumps from the journal
.SH "SYNOPSIS" .SH "SYNOPSIS"
.HP \w'\fBsystemd\-coredumpctl\fR\ 'u .HP \w'\fBcoredumpctl\fR\ 'u
\fBsystemd\-coredumpctl\fR [OPTIONS...] {COMMAND} [PID|COMM|EXE|MATCH...] \fBcoredumpctl\fR [OPTIONS...] {COMMAND} [PID|COMM|EXE|MATCH...]
.SH "DESCRIPTION" .SH "DESCRIPTION"
.PP .PP
\fBsystemd\-coredumpctl\fR \fBcoredumpctl\fR
may be used to retrieve coredumps from may be used to retrieve coredumps from
\fBsystemd-journald\fR(8)\&. \fBsystemd-journald\fR(8)\&.
.SH "OPTIONS" .SH "OPTIONS"
.PP .PP
The following options are understood: The following options are understood:
.PP .PP
\fB\-\-no\-legend\fR
.RS 4
Do not print the column headers\&.
.RE
.PP
\fB\-1\fR
.RS 4
Show information of a single coredump only, instead of listing all known coredumps\&.
.RE
.PP
\fB\-F\fR, \fB\-\-field=\fR \fB\-F\fR, \fB\-\-field=\fR
.RS 4 .RS 4
Print all possible data values the specified field takes in matching coredump entries of the journal\&. Print all possible data values the specified field takes in matching coredump entries of the journal\&.
@ -44,11 +54,6 @@ Write the core to
\fBFILE\fR\&. \fBFILE\fR\&.
.RE .RE
.PP .PP
\fB\-\-no\-legend\fR
.RS 4
Do not print the column headers\&.
.RE
.PP
\fB\-h\fR, \fB\-\-help\fR \fB\-h\fR, \fB\-\-help\fR
.RS 4 .RS 4
Print a short help text and exit\&. Print a short help text and exit\&.
@ -68,7 +73,12 @@ The following commands are understood:
.PP .PP
\fBlist\fR \fBlist\fR
.RS 4 .RS 4
List coredumps captured in the journal matching specified characteristics\&. List coredumps captured in the journal matching specified characteristics\&. If no command is specified, this is the implied default\&.
.RE
.PP
\fBinfo\fR
.RS 4
Show detailed information about coredumps captured in the journal\&.
.RE .RE
.PP .PP
\fBdump\fR \fBdump\fR
@ -83,7 +93,7 @@ Invoke the GNU debugger on the last coredump matching specified characteristics\
.RE .RE
.SH "MATCHING" .SH "MATCHING"
.PP .PP
Match can be: A match can be:
.PP .PP
\fIPID\fR \fIPID\fR
.RS 4 .RS 4
@ -105,7 +115,7 @@ Path to the executable (matches
\fIMATCH\fR \fIMATCH\fR
.RS 4 .RS 4
General journalctl predicates (see General journalctl predicates (see
\fBjournalctl\fR(1))\&. Must contain an equals sign\&. \fBjournalctl\fR(1))\&. Must contain an equal sign\&.
.RE .RE
.SH "EXIT STATUS" .SH "EXIT STATUS"
.PP .PP

View File

@ -1,4 +1,4 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>systemd-coredumpctl</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><style> <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>coredumpctl</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><style>
a.headerlink { a.headerlink {
color: #c60f0f; color: #c60f0f;
font-size: 0.8em; font-size: 0.8em;
@ -19,16 +19,24 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="systemd-coredumpctl"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>systemd-coredumpctl — Retrieve coredumps from the journal</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">systemd-coredumpctl</code> [OPTIONS...] {COMMAND} [PID|COMM|EXE|MATCH...]</p></div></div><div class="refsect1"><a name="idm214170585728"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><span class="command"><strong>systemd-coredumpctl</strong></span> may be used to <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="coredumpctl"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>coredumpctl — Retrieve coredumps from the journal</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">coredumpctl</code> [OPTIONS...] {COMMAND} [PID|COMM|EXE|MATCH...]</p></div></div><div class="refsect1"><a name="idm214194795776"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><span class="command"><strong>coredumpctl</strong></span> may be used to
retrieve coredumps from retrieve coredumps from
<a href="systemd-journald.html"><span class="citerefentry"><span class="refentrytitle">systemd-journald</span>(8)</span></a>.</p></div><div class="refsect1"><a name="idm214170583184"></a><h2 id="Options">Options<a class="headerlink" title="Permalink to this headline" href="#Options"></a></h2><p>The following options are understood:</p><div class="variablelist"><dl class="variablelist"><dt id="-F"><span class="term"><code class="option">-F</code>, </span><span class="term"><code class="option">--field=</code></span><a class="headerlink" title="Permalink to this term" href="#-F"></a></dt><dd><p>Print all possible <a href="systemd-journald.html"><span class="citerefentry"><span class="refentrytitle">systemd-journald</span>(8)</span></a>.</p></div><div class="refsect1"><a name="idm214194840048"></a><h2 id="Options">Options<a class="headerlink" title="Permalink to this headline" href="#Options"></a></h2><p>The following options are understood:</p><div class="variablelist"><dl class="variablelist"><dt id="--no-legend"><span class="term"><code class="option">--no-legend</code></span><a class="headerlink" title="Permalink to this term" href="#--no-legend"></a></dt><dd><p>Do not print the column headers.
</p></dd><dt id="-1"><span class="term"><code class="option">-1</code></span><a class="headerlink" title="Permalink to this term" href="#-1"></a></dt><dd><p>Show information of a
single coredump only, instead of
listing all known coredumps.
</p></dd><dt id="-F"><span class="term"><code class="option">-F</code>, </span><span class="term"><code class="option">--field=</code></span><a class="headerlink" title="Permalink to this term" href="#-F"></a></dt><dd><p>Print all possible
data values the specified field data values the specified field
takes in matching coredump entries of the takes in matching coredump entries of the
journal.</p></dd><dt id="-o"><span class="term"><code class="option">-o</code>, </span><span class="term"><code class="option">--output=FILE</code></span><a class="headerlink" title="Permalink to this term" href="#-o"></a></dt><dd><p>Write the core to journal.</p></dd><dt id="-o"><span class="term"><code class="option">-o</code>, </span><span class="term"><code class="option">--output=FILE</code></span><a class="headerlink" title="Permalink to this term" href="#-o"></a></dt><dd><p>Write the core to
<code class="option">FILE</code>.</p></dd><dt id="--no-legend"><span class="term"><code class="option">--no-legend</code></span><a class="headerlink" title="Permalink to this term" href="#--no-legend"></a></dt><dd><p>Do not print the column headers. <code class="option">FILE</code>.</p></dd><dt id="-h"><span class="term"><code class="option">-h</code>, </span><span class="term"><code class="option">--help</code></span><a class="headerlink" title="Permalink to this term" href="#-h"></a></dt><dd><p><a name="help-text"></a>Print a short help text and exit.
</p></dd><dt id="-h"><span class="term"><code class="option">-h</code>, </span><span class="term"><code class="option">--help</code></span><a class="headerlink" title="Permalink to this term" href="#-h"></a></dt><dd><p><a name="help-text"></a>Print a short help text and exit. </p></dd><dt id="--version"><span class="term"><code class="option">--version</code></span><a class="headerlink" title="Permalink to this term" href="#--version"></a></dt><dd><p><a name="version-text"></a>Print a short version string and exit.</p></dd><dt id="--no-pager"><span class="term"><code class="option">--no-pager</code></span><a class="headerlink" title="Permalink to this term" href="#--no-pager"></a></dt><dd><p>Do not pipe output into a pager.</p></dd></dl></div><p>The following commands are understood:</p><div class="variablelist"><dl class="variablelist"><dt id="list"><span class="term"><span class="command"><strong>list</strong></span></span><a class="headerlink" title="Permalink to this term" href="#list"></a></dt><dd><p>List coredumps
</p></dd><dt id="--version"><span class="term"><code class="option">--version</code></span><a class="headerlink" title="Permalink to this term" href="#--version"></a></dt><dd><p><a name="version-text"></a>Print a short version string and exit.</p></dd><dt id="--no-pager"><span class="term"><code class="option">--no-pager</code></span><a class="headerlink" title="Permalink to this term" href="#--no-pager"></a></dt><dd><p>Do not pipe output into a pager.</p></dd></dl></div><p>The following commands are understood:</p><div class="variablelist"><dl class="variablelist"><dt id="list"><span class="term"><span class="command"><strong>list</strong></span></span><a class="headerlink" title="Permalink to this term" href="#list"></a></dt><dd><p>List coredumps captured in the journal captured in the journal matching
matching specified characteristics.</p></dd><dt id="dump"><span class="term"><span class="command"><strong>dump</strong></span></span><a class="headerlink" title="Permalink to this term" href="#dump"></a></dt><dd><p>Extract the last coredump specified characteristics. If no
command is specified, this is the
implied default.</p></dd><dt id="info"><span class="term"><span class="command"><strong>info</strong></span></span><a class="headerlink" title="Permalink to this term" href="#info"></a></dt><dd><p>Show detailed
information about coredumps captured
in the journal.</p></dd><dt id="dump"><span class="term"><span class="command"><strong>dump</strong></span></span><a class="headerlink" title="Permalink to this term" href="#dump"></a></dt><dd><p>Extract the last coredump
matching specified characteristics. matching specified characteristics.
The coredump will be written on standard output, The coredump will be written on standard output,
unless an output file is specified with unless an output file is specified with
@ -36,7 +44,7 @@
</p></dd><dt id="gdb"><span class="term"><span class="command"><strong>gdb</strong></span></span><a class="headerlink" title="Permalink to this term" href="#gdb"></a></dt><dd><p>Invoke the GNU </p></dd><dt id="gdb"><span class="term"><span class="command"><strong>gdb</strong></span></span><a class="headerlink" title="Permalink to this term" href="#gdb"></a></dt><dd><p>Invoke the GNU
debugger on the last coredump matching debugger on the last coredump matching
specified characteristics. specified characteristics.
</p></dd></dl></div></div><div class="refsect1"><a name="idm214170684464"></a><h2 id="Matching">Matching<a class="headerlink" title="Permalink to this headline" href="#Matching"></a></h2><p>Match can be:</p><div class="variablelist"><dl class="variablelist"><dt id="PID"><span class="term"><em class="replaceable"><code>PID</code></em></span><a class="headerlink" title="Permalink to this term" href="#PID"></a></dt><dd><p>Process ID of the </p></dd></dl></div></div><div class="refsect1"><a name="idm214194937296"></a><h2 id="Matching">Matching<a class="headerlink" title="Permalink to this headline" href="#Matching"></a></h2><p>A match can be:</p><div class="variablelist"><dl class="variablelist"><dt id="PID"><span class="term"><em class="replaceable"><code>PID</code></em></span><a class="headerlink" title="Permalink to this term" href="#PID"></a></dt><dd><p>Process ID of the
process that dumped process that dumped
core. An integer.</p></dd><dt id="COMM"><span class="term"><em class="replaceable"><code>COMM</code></em></span><a class="headerlink" title="Permalink to this term" href="#COMM"></a></dt><dd><p>Name of the executable core. An integer.</p></dd><dt id="COMM"><span class="term"><em class="replaceable"><code>COMM</code></em></span><a class="headerlink" title="Permalink to this term" href="#COMM"></a></dt><dd><p>Name of the executable
(matches <code class="option">COREDUMP_COMM=</code>). (matches <code class="option">COREDUMP_COMM=</code>).
@ -46,11 +54,11 @@
Must contain at least one slash. Must contain at least one slash.
</p></dd><dt id="MATCH"><span class="term"><em class="replaceable"><code>MATCH</code></em></span><a class="headerlink" title="Permalink to this term" href="#MATCH"></a></dt><dd><p>General journalctl predicates </p></dd><dt id="MATCH"><span class="term"><em class="replaceable"><code>MATCH</code></em></span><a class="headerlink" title="Permalink to this term" href="#MATCH"></a></dt><dd><p>General journalctl predicates
(see <a href="journalctl.html"><span class="citerefentry"><span class="refentrytitle">journalctl</span>(1)</span></a>). (see <a href="journalctl.html"><span class="citerefentry"><span class="refentrytitle">journalctl</span>(1)</span></a>).
Must contain an equals sign. Must contain an equal sign.
</p></dd></dl></div></div><div class="refsect1"><a name="idm214170675024"></a><h2 id="Exit status">Exit status<a class="headerlink" title="Permalink to this headline" href="#Exit%20status"></a></h2><p>On success, 0 is returned; otherwise, a non-zero failure </p></dd></dl></div></div><div class="refsect1"><a name="idm214194927856"></a><h2 id="Exit status">Exit status<a class="headerlink" title="Permalink to this headline" href="#Exit%20status"></a></h2><p>On success, 0 is returned; otherwise, a non-zero failure
code is returned. Not finding any matching coredumps is treated code is returned. Not finding any matching coredumps is treated
as failure. as failure.
</p></div><div class="refsect1"><a name="idm214170673648"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> </p></div><div class="refsect1"><a name="idm214194926480"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd-journald.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-journald.service</span>(8)</span></a>, <a href="systemd-journald.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-journald.service</span>(8)</span></a>,
<a href="gdb.html"><span class="citerefentry"><span class="refentrytitle">gdb</span>(1)</span></a> <a href="gdb.html"><span class="citerefentry"><span class="refentrytitle">gdb</span>(1)</span></a>
</p></div></div></body></html> </p></div></div></body></html>

View File

@ -21,11 +21,11 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>. along with systemd; If not, see <http://www.gnu.org/licenses/>.
--> -->
<refentry id="systemd-coredumpctl" conditional='ENABLE_COREDUMP' <refentry id="coredumpctl" conditional='ENABLE_COREDUMP'
xmlns:xi="http://www.w3.org/2001/XInclude"> xmlns:xi="http://www.w3.org/2001/XInclude">
<refentryinfo> <refentryinfo>
<title>systemd-coredumpctl</title> <title>coredumpctl</title>
<productname>systemd</productname> <productname>systemd</productname>
<authorgroup> <authorgroup>
@ -39,18 +39,18 @@
</refentryinfo> </refentryinfo>
<refmeta> <refmeta>
<refentrytitle>systemd-coredumpctl</refentrytitle> <refentrytitle>coredumpctl</refentrytitle>
<manvolnum>1</manvolnum> <manvolnum>1</manvolnum>
</refmeta> </refmeta>
<refnamediv> <refnamediv>
<refname>systemd-coredumpctl</refname> <refname>coredumpctl</refname>
<refpurpose>Retrieve coredumps from the journal</refpurpose> <refpurpose>Retrieve coredumps from the journal</refpurpose>
</refnamediv> </refnamediv>
<refsynopsisdiv> <refsynopsisdiv>
<cmdsynopsis> <cmdsynopsis>
<command>systemd-coredumpctl</command> <command>coredumpctl</command>
<arg choice="opt" rep="repeat">OPTIONS</arg> <arg choice="opt" rep="repeat">OPTIONS</arg>
<arg choice="req">COMMAND</arg> <arg choice="req">COMMAND</arg>
<arg choice="opt" rep="repeat">PID|COMM|EXE|MATCH</arg> <arg choice="opt" rep="repeat">PID|COMM|EXE|MATCH</arg>
@ -60,7 +60,7 @@
<refsect1> <refsect1>
<title>Description</title> <title>Description</title>
<para><command>systemd-coredumpctl</command> may be used to <para><command>coredumpctl</command> may be used to
retrieve coredumps from retrieve coredumps from
<citerefentry><refentrytitle>systemd-journald</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para> <citerefentry><refentrytitle>systemd-journald</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
</refsect1> </refsect1>
@ -71,6 +71,22 @@
<para>The following options are understood:</para> <para>The following options are understood:</para>
<variablelist> <variablelist>
<varlistentry>
<term><option>--no-legend</option></term>
<listitem><para>Do not print the column headers.
</para></listitem>
</varlistentry>
<varlistentry>
<term><option>-1</option></term>
<listitem><para>Show information of a
single coredump only, instead of
listing all known coredumps.
</para></listitem>
</varlistentry>
<varlistentry> <varlistentry>
<term><option>-F</option></term> <term><option>-F</option></term>
<term><option>--field=</option></term> <term><option>--field=</option></term>
@ -89,16 +105,10 @@
<option>FILE</option>.</para></listitem> <option>FILE</option>.</para></listitem>
</varlistentry> </varlistentry>
<varlistentry>
<term><option>--no-legend</option></term>
<listitem><para>Do not print the column headers.
</para></listitem>
</varlistentry>
<xi:include href="standard-options.xml" xpointer="help" /> <xi:include href="standard-options.xml" xpointer="help" />
<xi:include href="standard-options.xml" xpointer="version" /> <xi:include href="standard-options.xml" xpointer="version" />
<xi:include href="standard-options.xml" xpointer="no-pager" /> <xi:include href="standard-options.xml" xpointer="no-pager" />
</variablelist> </variablelist>
<para>The following commands are understood:</para> <para>The following commands are understood:</para>
@ -107,8 +117,19 @@
<varlistentry> <varlistentry>
<term><command>list</command></term> <term><command>list</command></term>
<listitem><para>List coredumps captured in the journal <listitem><para>List coredumps
matching specified characteristics.</para></listitem> captured in the journal matching
specified characteristics. If no
command is specified, this is the
implied default.</para></listitem>
</varlistentry>
<varlistentry>
<term><command>info</command></term>
<listitem><para>Show detailed
information about coredumps captured
in the journal.</para></listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
@ -122,7 +143,6 @@
</para></listitem> </para></listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><command>gdb</command></term> <term><command>gdb</command></term>
@ -139,7 +159,7 @@
<refsect1> <refsect1>
<title>Matching</title> <title>Matching</title>
<para>Match can be:</para> <para>A match can be:</para>
<variablelist> <variablelist>
<varlistentry> <varlistentry>
@ -173,7 +193,7 @@
<listitem><para>General journalctl predicates <listitem><para>General journalctl predicates
(see <citerefentry><refentrytitle>journalctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>). (see <citerefentry><refentrytitle>journalctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>).
Must contain an equals sign. Must contain an equal sign.
</para></listitem> </para></listitem>
</varlistentry> </varlistentry>
</variablelist> </variablelist>

View File

@ -1,5 +1,5 @@
'\" t '\" t
.TH "CRYPTTAB" "5" "" "systemd 214" "crypttab" .TH "CRYPTTAB" "5" "" "systemd 215" "crypttab"
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * Define some portability stuff .\" * Define some portability stuff
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
@ -58,12 +58,12 @@ may prevent boot completion if the system does not have enough entropy to genera
.PP .PP
The fourth field, if present, is a comma\-delimited list of options\&. The following options are recognized: The fourth field, if present, is a comma\-delimited list of options\&. The following options are recognized:
.PP .PP
\fIdiscard\fR \fBdiscard\fR
.RS 4 .RS 4
Allow discard requests to be passed through the encrypted block device\&. This improves performance on SSD storage but has security implications\&. Allow discard requests to be passed through the encrypted block device\&. This improves performance on SSD storage but has security implications\&.
.RE .RE
.PP .PP
\fIcipher=\fR \fBcipher=\fR
.RS 4 .RS 4
Specifies the cipher to use\&. See Specifies the cipher to use\&. See
\fBcryptsetup\fR(8) \fBcryptsetup\fR(8)
@ -71,149 +71,149 @@ for possible values and the default value of this option\&. A cipher with unpred
"aes\-cbc\-essiv:sha256", is recommended\&. "aes\-cbc\-essiv:sha256", is recommended\&.
.RE .RE
.PP .PP
\fIhash=\fR \fBhash=\fR
.RS 4 .RS 4
Specifies the hash to use for password hashing\&. See Specifies the hash to use for password hashing\&. See
\fBcryptsetup\fR(8) \fBcryptsetup\fR(8)
for possible values and the default value of this option\&. for possible values and the default value of this option\&.
.RE .RE
.PP .PP
\fIkeyfile\-offset=\fR \fBkeyfile\-offset=\fR
.RS 4 .RS 4
Specifies the number of bytes to skip at the start of the key file\&. See Specifies the number of bytes to skip at the start of the key file\&. See
\fBcryptsetup\fR(8) \fBcryptsetup\fR(8)
for possible values and the default value of this option\&. for possible values and the default value of this option\&.
.RE .RE
.PP .PP
\fIkeyfile\-size=\fR \fBkeyfile\-size=\fR
.RS 4 .RS 4
Specifies the maximum number of bytes to read from the key file\&. See Specifies the maximum number of bytes to read from the key file\&. See
\fBcryptsetup\fR(8) \fBcryptsetup\fR(8)
for possible values and the default value of this option\&. This option is ignored in plain encryption mode, as the key file size is then given by the key size\&. for possible values and the default value of this option\&. This option is ignored in plain encryption mode, as the key file size is then given by the key size\&.
.RE .RE
.PP .PP
\fIkey\-slot=\fR \fBkey\-slot=\fR
.RS 4 .RS 4
Specifies the key slot to compare the passphrase or key against\&. If the key slot does not match the given passphrase or key, but another would, the setup of the device will fail regardless\&. This option implies Specifies the key slot to compare the passphrase or key against\&. If the key slot does not match the given passphrase or key, but another would, the setup of the device will fail regardless\&. This option implies
\fIluks\fR\&. See \fBluks\fR\&. See
\fBcryptsetup\fR(8) \fBcryptsetup\fR(8)
for possible values\&. The default is to try all key slots in sequential order\&. for possible values\&. The default is to try all key slots in sequential order\&.
.RE .RE
.PP .PP
\fIluks\fR \fBluks\fR
.RS 4 .RS 4
Force LUKS mode\&. When this mode is used, the following options are ignored since they are provided by the LUKS header on the device: Force LUKS mode\&. When this mode is used, the following options are ignored since they are provided by the LUKS header on the device:
\fIcipher=\fR, \fBcipher=\fR,
\fIhash=\fR, \fBhash=\fR,
\fIsize=\fR\&. \fBsize=\fR\&.
.RE .RE
.PP .PP
\fInoauto\fR \fBnoauto\fR
.RS 4 .RS 4
This device will not be automatically unlocked on boot\&. This device will not be automatically unlocked on boot\&.
.RE .RE
.PP .PP
\fInofail\fR \fBnofail\fR
.RS 4 .RS 4
The system will not wait for the device to show up and be unlocked at boot, and not fail the boot if it does not show up\&. The system will not wait for the device to show up and be unlocked at boot, and not fail the boot if it does not show up\&.
.RE .RE
.PP .PP
\fIplain\fR \fBplain\fR
.RS 4 .RS 4
Force plain encryption mode\&. Force plain encryption mode\&.
.RE .RE
.PP .PP
\fIread\-only\fR, \fIreadonly\fR \fBread\-only\fR, \fBreadonly\fR
.RS 4 .RS 4
Set up the encrypted block device in read\-only mode\&. Set up the encrypted block device in read\-only mode\&.
.RE .RE
.PP .PP
\fIsize=\fR \fBsize=\fR
.RS 4 .RS 4
Specifies the key size in bits\&. See Specifies the key size in bits\&. See
\fBcryptsetup\fR(8) \fBcryptsetup\fR(8)
for possible values and the default value of this option\&. for possible values and the default value of this option\&.
.RE .RE
.PP .PP
\fIswap\fR \fBswap\fR
.RS 4 .RS 4
The encrypted block device will be used as a swap device, and will be formatted accordingly after setting up the encrypted block device, with The encrypted block device will be used as a swap device, and will be formatted accordingly after setting up the encrypted block device, with
\fBmkswap\fR(8)\&. This option implies \fBmkswap\fR(8)\&. This option implies
\fIplain\fR\&. \fBplain\fR\&.
.sp .sp
WARNING: Using the WARNING: Using the
\fIswap\fR \fBswap\fR
option will destroy the contents of the named partition during every boot, so make sure the underlying block device is specified correctly\&. option will destroy the contents of the named partition during every boot, so make sure the underlying block device is specified correctly\&.
.RE .RE
.PP .PP
\fItcrypt\fR \fBtcrypt\fR
.RS 4 .RS 4
Use TrueCrypt encryption mode\&. When this mode is used, the following options are ignored since they are provided by the TrueCrypt header on the device or do not apply: Use TrueCrypt encryption mode\&. When this mode is used, the following options are ignored since they are provided by the TrueCrypt header on the device or do not apply:
\fIcipher=\fR, \fBcipher=\fR,
\fIhash=\fR, \fBhash=\fR,
\fIkeyfile\-offset=\fR, \fBkeyfile\-offset=\fR,
\fIkeyfile\-size=\fR, \fBkeyfile\-size=\fR,
\fIsize=\fR\&. \fBsize=\fR\&.
.sp .sp
When this mode is used, the passphrase is read from the key file given in the third field\&. Only the first line of this file is read, excluding the new line character\&. When this mode is used, the passphrase is read from the key file given in the third field\&. Only the first line of this file is read, excluding the new line character\&.
.sp .sp
Note that the TrueCrypt format uses both passphrase and key files to derive a password for the volume\&. Therefore, the passphrase and all key files need to be provided\&. Use Note that the TrueCrypt format uses both passphrase and key files to derive a password for the volume\&. Therefore, the passphrase and all key files need to be provided\&. Use
\fItcrypt\-keyfile=\fR \fBtcrypt\-keyfile=\fR
to provide the absolute path to all key files\&. When using an empty passphrase in combination with one or more key files, use to provide the absolute path to all key files\&. When using an empty passphrase in combination with one or more key files, use
"/dev/null" "/dev/null"
as the password file in the third field\&. as the password file in the third field\&.
.RE .RE
.PP .PP
\fItcrypt\-hidden\fR \fBtcrypt\-hidden\fR
.RS 4 .RS 4
Use the hidden TrueCrypt volume\&. This option implies Use the hidden TrueCrypt volume\&. This option implies
\fItcrypt\fR\&. \fBtcrypt\fR\&.
.sp .sp
This will map the hidden volume that is inside of the volume provided in the second field\&. Please note that there is no protection for the hidden volume if the outer volume is mounted instead\&. See This will map the hidden volume that is inside of the volume provided in the second field\&. Please note that there is no protection for the hidden volume if the outer volume is mounted instead\&. See
\fBcryptsetup\fR(8) \fBcryptsetup\fR(8)
for more information on this limitation\&. for more information on this limitation\&.
.RE .RE
.PP .PP
\fItcrypt\-keyfile=\fR \fBtcrypt\-keyfile=\fR
.RS 4 .RS 4
Specifies the absolute path to a key file to use for a TrueCrypt volume\&. This implies Specifies the absolute path to a key file to use for a TrueCrypt volume\&. This implies
\fItcrypt\fR \fBtcrypt\fR
and can be used more than once to provide several key files\&. and can be used more than once to provide several key files\&.
.sp .sp
See the entry for See the entry for
\fItcrypt\fR \fBtcrypt\fR
on the behavior of the passphrase and key files when using TrueCrypt encryption mode\&. on the behavior of the passphrase and key files when using TrueCrypt encryption mode\&.
.RE .RE
.PP .PP
\fItcrypt\-system\fR \fBtcrypt\-system\fR
.RS 4 .RS 4
Use TrueCrypt in system encryption mode\&. This option implies Use TrueCrypt in system encryption mode\&. This option implies
\fItcrypt\fR\&. \fBtcrypt\fR\&.
.RE .RE
.PP .PP
\fItimeout=\fR \fBtimeout=\fR
.RS 4 .RS 4
Specifies the timeout for querying for a password\&. If no unit is specified, seconds is used\&. Supported units are s, ms, us, min, h, d\&. A timeout of 0 waits indefinitely (which is the default)\&. Specifies the timeout for querying for a password\&. If no unit is specified, seconds is used\&. Supported units are s, ms, us, min, h, d\&. A timeout of 0 waits indefinitely (which is the default)\&.
.RE .RE
.PP .PP
\fItmp\fR \fBtmp\fR
.RS 4 .RS 4
The encrypted block device will be prepared for using it as The encrypted block device will be prepared for using it as
/tmp; it will be formatted using /tmp; it will be formatted using
\fBmke2fs\fR(8)\&. This option implies \fBmke2fs\fR(8)\&. This option implies
\fIplain\fR\&. \fBplain\fR\&.
.sp .sp
WARNING: Using the WARNING: Using the
\fItmp\fR \fBtmp\fR
option will destroy the contents of the named partition during every boot, so make sure the underlying block device is specified correctly\&. option will destroy the contents of the named partition during every boot, so make sure the underlying block device is specified correctly\&.
.RE .RE
.PP .PP
\fItries=\fR \fBtries=\fR
.RS 4 .RS 4
Specifies the maximum number of times the user is queried for a password\&. The default is 3\&. If set to 0, the user is queried for a password indefinitely\&. Specifies the maximum number of times the user is queried for a password\&. The default is 3\&. If set to 0, the user is queried for a password indefinitely\&.
.RE .RE
.PP .PP
\fIverify\fR \fBverify\fR
.RS 4 .RS 4
If the encryption password is read from console, it has to be entered twice to prevent typos\&. If the encryption password is read from console, it has to be entered twice to prevent typos\&.
.RE .RE
@ -233,7 +233,7 @@ Set up four encrypted block devices\&. One using LUKS for normal storage, anothe
luks UUID=2505567a\-9e27\-4efe\-a4d5\-15ad146c258b luks UUID=2505567a\-9e27\-4efe\-a4d5\-15ad146c258b
swap /dev/sda7 /dev/urandom swap swap /dev/sda7 /dev/urandom swap
truecrypt /dev/sda2 /etc/container_password tcrypt truecrypt /dev/sda2 /etc/container_password tcrypt
hidden /mnt/tc_hidden /null tcrypt\-hidden,tcrypt\-keyfile=/etc/keyfile hidden /mnt/tc_hidden /dev/null tcrypt\-hidden,tcrypt\-keyfile=/etc/keyfile
.fi .fi
.if n \{\ .if n \{\
.RE .RE

View File

@ -19,7 +19,7 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="crypttab"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>crypttab — Configuration for encrypted block devices</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><p><code class="filename">/etc/crypttab</code></p></div><div class="refsect1"><a name="idm214191735008"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p>The <code class="filename">/etc/crypttab</code> file <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="crypttab"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>crypttab — Configuration for encrypted block devices</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><p><code class="filename">/etc/crypttab</code></p></div><div class="refsect1"><a name="idm214179029408"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p>The <code class="filename">/etc/crypttab</code> file
describes encrypted block devices that are set up describes encrypted block devices that are set up
during system boot.</p><p>Empty lines and lines starting with the "<code class="literal">#</code>" during system boot.</p><p>Empty lines and lines starting with the "<code class="literal">#</code>"
character are ignored. Each of the remaining lines character are ignored. Each of the remaining lines
@ -50,116 +50,116 @@
completion if the system does not have enough entropy completion if the system does not have enough entropy
to generate a truly random encryption key.</p><p>The fourth field, if present, is a to generate a truly random encryption key.</p><p>The fourth field, if present, is a
comma-delimited list of options. The following comma-delimited list of options. The following
options are recognized:</p><div class="variablelist"><dl class="variablelist"><dt id="discard"><span class="term"><code class="varname">discard</code></span><a class="headerlink" title="Permalink to this term" href="#discard"></a></dt><dd><p>Allow discard requests to be options are recognized:</p><div class="variablelist"><dl class="variablelist"><dt id="discard"><span class="term"><code class="option">discard</code></span><a class="headerlink" title="Permalink to this term" href="#discard"></a></dt><dd><p>Allow discard requests to be
passed through the encrypted block device. This passed through the encrypted block device. This
improves performance on SSD storage but has improves performance on SSD storage but has
security implications.</p></dd><dt id="cipher="><span class="term"><code class="varname">cipher=</code></span><a class="headerlink" title="Permalink to this term" href="#cipher="></a></dt><dd><p>Specifies the cipher to use. See security implications.</p></dd><dt id="cipher="><span class="term"><code class="option">cipher=</code></span><a class="headerlink" title="Permalink to this term" href="#cipher="></a></dt><dd><p>Specifies the cipher to use. See
<a href="cryptsetup.html"><span class="citerefentry"><span class="refentrytitle">cryptsetup</span>(8)</span></a> <a href="cryptsetup.html"><span class="citerefentry"><span class="refentrytitle">cryptsetup</span>(8)</span></a>
for possible values and the default value of for possible values and the default value of
this option. A cipher with unpredictable IV this option. A cipher with unpredictable IV
values, such as "<code class="literal">aes-cbc-essiv:sha256</code>", values, such as "<code class="literal">aes-cbc-essiv:sha256</code>",
is recommended.</p></dd><dt id="hash="><span class="term"><code class="varname">hash=</code></span><a class="headerlink" title="Permalink to this term" href="#hash="></a></dt><dd><p>Specifies the hash to use for is recommended.</p></dd><dt id="hash="><span class="term"><code class="option">hash=</code></span><a class="headerlink" title="Permalink to this term" href="#hash="></a></dt><dd><p>Specifies the hash to use for
password hashing. See password hashing. See
<a href="cryptsetup.html"><span class="citerefentry"><span class="refentrytitle">cryptsetup</span>(8)</span></a> <a href="cryptsetup.html"><span class="citerefentry"><span class="refentrytitle">cryptsetup</span>(8)</span></a>
for possible values and the default value of for possible values and the default value of
this option.</p></dd><dt id="keyfile-offset="><span class="term"><code class="varname">keyfile-offset=</code></span><a class="headerlink" title="Permalink to this term" href="#keyfile-offset="></a></dt><dd><p>Specifies the number of bytes to this option.</p></dd><dt id="keyfile-offset="><span class="term"><code class="option">keyfile-offset=</code></span><a class="headerlink" title="Permalink to this term" href="#keyfile-offset="></a></dt><dd><p>Specifies the number of bytes to
skip at the start of the key file. See skip at the start of the key file. See
<a href="cryptsetup.html"><span class="citerefentry"><span class="refentrytitle">cryptsetup</span>(8)</span></a> <a href="cryptsetup.html"><span class="citerefentry"><span class="refentrytitle">cryptsetup</span>(8)</span></a>
for possible values and the default value of for possible values and the default value of
this option.</p></dd><dt id="keyfile-size="><span class="term"><code class="varname">keyfile-size=</code></span><a class="headerlink" title="Permalink to this term" href="#keyfile-size="></a></dt><dd><p>Specifies the maximum number this option.</p></dd><dt id="keyfile-size="><span class="term"><code class="option">keyfile-size=</code></span><a class="headerlink" title="Permalink to this term" href="#keyfile-size="></a></dt><dd><p>Specifies the maximum number
of bytes to read from the key file. See of bytes to read from the key file. See
<a href="cryptsetup.html"><span class="citerefentry"><span class="refentrytitle">cryptsetup</span>(8)</span></a> <a href="cryptsetup.html"><span class="citerefentry"><span class="refentrytitle">cryptsetup</span>(8)</span></a>
for possible values and the default value of for possible values and the default value of
this option. This option is ignored in plain this option. This option is ignored in plain
encryption mode, as the key file size is then encryption mode, as the key file size is then
given by the key size.</p></dd><dt id="key-slot="><span class="term"><code class="varname">key-slot=</code></span><a class="headerlink" title="Permalink to this term" href="#key-slot="></a></dt><dd><p>Specifies the key slot to given by the key size.</p></dd><dt id="key-slot="><span class="term"><code class="option">key-slot=</code></span><a class="headerlink" title="Permalink to this term" href="#key-slot="></a></dt><dd><p>Specifies the key slot to
compare the passphrase or key against. compare the passphrase or key against.
If the key slot does not match the given If the key slot does not match the given
passphrase or key, but another would, the passphrase or key, but another would, the
setup of the device will fail regardless. setup of the device will fail regardless.
This option implies <code class="varname">luks</code>. See This option implies <code class="option">luks</code>. See
<a href="cryptsetup.html"><span class="citerefentry"><span class="refentrytitle">cryptsetup</span>(8)</span></a> <a href="cryptsetup.html"><span class="citerefentry"><span class="refentrytitle">cryptsetup</span>(8)</span></a>
for possible values. The default is to try for possible values. The default is to try
all key slots in sequential order.</p></dd><dt id="luks"><span class="term"><code class="varname">luks</code></span><a class="headerlink" title="Permalink to this term" href="#luks"></a></dt><dd><p>Force LUKS mode. When this mode all key slots in sequential order.</p></dd><dt id="luks"><span class="term"><code class="option">luks</code></span><a class="headerlink" title="Permalink to this term" href="#luks"></a></dt><dd><p>Force LUKS mode. When this mode
is used, the following options are ignored since is used, the following options are ignored since
they are provided by the LUKS header on the they are provided by the LUKS header on the
device: <code class="varname">cipher=</code>, device: <code class="option">cipher=</code>,
<code class="varname">hash=</code>, <code class="option">hash=</code>,
<code class="varname">size=</code>.</p></dd><dt id="noauto"><span class="term"><code class="varname">noauto</code></span><a class="headerlink" title="Permalink to this term" href="#noauto"></a></dt><dd><p>This device will not be <code class="option">size=</code>.</p></dd><dt id="noauto"><span class="term"><code class="option">noauto</code></span><a class="headerlink" title="Permalink to this term" href="#noauto"></a></dt><dd><p>This device will not be
automatically unlocked on boot.</p></dd><dt id="nofail"><span class="term"><code class="varname">nofail</code></span><a class="headerlink" title="Permalink to this term" href="#nofail"></a></dt><dd><p>The system will not wait for the automatically unlocked on boot.</p></dd><dt id="nofail"><span class="term"><code class="option">nofail</code></span><a class="headerlink" title="Permalink to this term" href="#nofail"></a></dt><dd><p>The system will not wait for the
device to show up and be unlocked at boot, and device to show up and be unlocked at boot, and
not fail the boot if it does not show up.</p></dd><dt id="plain"><span class="term"><code class="varname">plain</code></span><a class="headerlink" title="Permalink to this term" href="#plain"></a></dt><dd><p>Force plain encryption mode.</p></dd><dt id="read-only"><span class="term"><code class="varname">read-only</code>, </span><span class="term"><code class="varname">readonly</code></span><a class="headerlink" title="Permalink to this term" href="#read-only"></a></dt><dd><p>Set up the encrypted block not fail the boot if it does not show up.</p></dd><dt id="plain"><span class="term"><code class="option">plain</code></span><a class="headerlink" title="Permalink to this term" href="#plain"></a></dt><dd><p>Force plain encryption mode.</p></dd><dt id="read-only"><span class="term"><code class="option">read-only</code>, </span><span class="term"><code class="option">readonly</code></span><a class="headerlink" title="Permalink to this term" href="#read-only"></a></dt><dd><p>Set up the encrypted block
device in read-only mode.</p></dd><dt id="size="><span class="term"><code class="varname">size=</code></span><a class="headerlink" title="Permalink to this term" href="#size="></a></dt><dd><p>Specifies the key size device in read-only mode.</p></dd><dt id="size="><span class="term"><code class="option">size=</code></span><a class="headerlink" title="Permalink to this term" href="#size="></a></dt><dd><p>Specifies the key size
in bits. See in bits. See
<a href="cryptsetup.html"><span class="citerefentry"><span class="refentrytitle">cryptsetup</span>(8)</span></a> <a href="cryptsetup.html"><span class="citerefentry"><span class="refentrytitle">cryptsetup</span>(8)</span></a>
for possible values and the default value of for possible values and the default value of
this option.</p></dd><dt id="swap"><span class="term"><code class="varname">swap</code></span><a class="headerlink" title="Permalink to this term" href="#swap"></a></dt><dd><p>The encrypted block device will this option.</p></dd><dt id="swap"><span class="term"><code class="option">swap</code></span><a class="headerlink" title="Permalink to this term" href="#swap"></a></dt><dd><p>The encrypted block device will
be used as a swap device, and will be formatted be used as a swap device, and will be formatted
accordingly after setting up the encrypted accordingly after setting up the encrypted
block device, with block device, with
<a href="mkswap.html"><span class="citerefentry"><span class="refentrytitle">mkswap</span>(8)</span></a>. <a href="mkswap.html"><span class="citerefentry"><span class="refentrytitle">mkswap</span>(8)</span></a>.
This option implies <code class="varname">plain</code>.</p><p>WARNING: Using the <code class="varname">swap</code> This option implies <code class="option">plain</code>.</p><p>WARNING: Using the <code class="option">swap</code>
option will destroy the contents of the named option will destroy the contents of the named
partition during every boot, so make sure the partition during every boot, so make sure the
underlying block device is specified correctly.</p></dd><dt id="tcrypt"><span class="term"><code class="varname">tcrypt</code></span><a class="headerlink" title="Permalink to this term" href="#tcrypt"></a></dt><dd><p>Use TrueCrypt encryption mode. underlying block device is specified correctly.</p></dd><dt id="tcrypt"><span class="term"><code class="option">tcrypt</code></span><a class="headerlink" title="Permalink to this term" href="#tcrypt"></a></dt><dd><p>Use TrueCrypt encryption mode.
When this mode is used, the following options are When this mode is used, the following options are
ignored since they are provided by the TrueCrypt ignored since they are provided by the TrueCrypt
header on the device or do not apply: header on the device or do not apply:
<code class="varname">cipher=</code>, <code class="option">cipher=</code>,
<code class="varname">hash=</code>, <code class="option">hash=</code>,
<code class="varname">keyfile-offset=</code>, <code class="option">keyfile-offset=</code>,
<code class="varname">keyfile-size=</code>, <code class="option">keyfile-size=</code>,
<code class="varname">size=</code>.</p><p>When this mode is used, the passphrase is <code class="option">size=</code>.</p><p>When this mode is used, the passphrase is
read from the key file given in the third field. read from the key file given in the third field.
Only the first line of this file is read, Only the first line of this file is read,
excluding the new line character.</p><p>Note that the TrueCrypt format uses both excluding the new line character.</p><p>Note that the TrueCrypt format uses both
passphrase and key files to derive a password passphrase and key files to derive a password
for the volume. Therefore, the passphrase and for the volume. Therefore, the passphrase and
all key files need to be provided. Use all key files need to be provided. Use
<code class="varname">tcrypt-keyfile=</code> to provide <code class="option">tcrypt-keyfile=</code> to provide
the absolute path to all key files. When using the absolute path to all key files. When using
an empty passphrase in combination with one or an empty passphrase in combination with one or
more key files, use "<code class="literal">/dev/null</code>" more key files, use "<code class="literal">/dev/null</code>"
as the password file in the third field.</p></dd><dt id="tcrypt-hidden"><span class="term"><code class="varname">tcrypt-hidden</code></span><a class="headerlink" title="Permalink to this term" href="#tcrypt-hidden"></a></dt><dd><p>Use the hidden TrueCrypt volume. as the password file in the third field.</p></dd><dt id="tcrypt-hidden"><span class="term"><code class="option">tcrypt-hidden</code></span><a class="headerlink" title="Permalink to this term" href="#tcrypt-hidden"></a></dt><dd><p>Use the hidden TrueCrypt volume.
This option implies <code class="varname">tcrypt</code>.</p><p>This will map the hidden volume that is This option implies <code class="option">tcrypt</code>.</p><p>This will map the hidden volume that is
inside of the volume provided in the second inside of the volume provided in the second
field. Please note that there is no protection field. Please note that there is no protection
for the hidden volume if the outer volume is for the hidden volume if the outer volume is
mounted instead. See mounted instead. See
<a href="cryptsetup.html"><span class="citerefentry"><span class="refentrytitle">cryptsetup</span>(8)</span></a> <a href="cryptsetup.html"><span class="citerefentry"><span class="refentrytitle">cryptsetup</span>(8)</span></a>
for more information on this limitation.</p></dd><dt id="tcrypt-keyfile="><span class="term"><code class="varname">tcrypt-keyfile=</code></span><a class="headerlink" title="Permalink to this term" href="#tcrypt-keyfile="></a></dt><dd><p>Specifies the absolute path to a for more information on this limitation.</p></dd><dt id="tcrypt-keyfile="><span class="term"><code class="option">tcrypt-keyfile=</code></span><a class="headerlink" title="Permalink to this term" href="#tcrypt-keyfile="></a></dt><dd><p>Specifies the absolute path to a
key file to use for a TrueCrypt volume. This key file to use for a TrueCrypt volume. This
implies <code class="varname">tcrypt</code> and can be implies <code class="option">tcrypt</code> and can be
used more than once to provide several key used more than once to provide several key
files.</p><p>See the entry for <code class="varname">tcrypt</code> files.</p><p>See the entry for <code class="option">tcrypt</code>
on the behavior of the passphrase and key files on the behavior of the passphrase and key files
when using TrueCrypt encryption mode.</p></dd><dt id="tcrypt-system"><span class="term"><code class="varname">tcrypt-system</code></span><a class="headerlink" title="Permalink to this term" href="#tcrypt-system"></a></dt><dd><p>Use TrueCrypt in system when using TrueCrypt encryption mode.</p></dd><dt id="tcrypt-system"><span class="term"><code class="option">tcrypt-system</code></span><a class="headerlink" title="Permalink to this term" href="#tcrypt-system"></a></dt><dd><p>Use TrueCrypt in system
encryption mode. This option implies encryption mode. This option implies
<code class="varname">tcrypt</code>.</p></dd><dt id="timeout="><span class="term"><code class="varname">timeout=</code></span><a class="headerlink" title="Permalink to this term" href="#timeout="></a></dt><dd><p>Specifies the timeout for <code class="option">tcrypt</code>.</p></dd><dt id="timeout="><span class="term"><code class="option">timeout=</code></span><a class="headerlink" title="Permalink to this term" href="#timeout="></a></dt><dd><p>Specifies the timeout for
querying for a password. If no unit is querying for a password. If no unit is
specified, seconds is used. Supported units are specified, seconds is used. Supported units are
s, ms, us, min, h, d. A timeout of 0 waits s, ms, us, min, h, d. A timeout of 0 waits
indefinitely (which is the default).</p></dd><dt id="tmp"><span class="term"><code class="varname">tmp</code></span><a class="headerlink" title="Permalink to this term" href="#tmp"></a></dt><dd><p>The encrypted block device will indefinitely (which is the default).</p></dd><dt id="tmp"><span class="term"><code class="option">tmp</code></span><a class="headerlink" title="Permalink to this term" href="#tmp"></a></dt><dd><p>The encrypted block device will
be prepared for using it as <code class="filename">/tmp</code>; be prepared for using it as <code class="filename">/tmp</code>;
it will be formatted using it will be formatted using
<a href="mke2fs.html"><span class="citerefentry"><span class="refentrytitle">mke2fs</span>(8)</span></a>. <a href="mke2fs.html"><span class="citerefentry"><span class="refentrytitle">mke2fs</span>(8)</span></a>.
This option implies <code class="varname">plain</code>.</p><p>WARNING: Using the <code class="varname">tmp</code> This option implies <code class="option">plain</code>.</p><p>WARNING: Using the <code class="option">tmp</code>
option will destroy the contents of the named option will destroy the contents of the named
partition during every boot, so make sure the partition during every boot, so make sure the
underlying block device is specified correctly.</p></dd><dt id="tries="><span class="term"><code class="varname">tries=</code></span><a class="headerlink" title="Permalink to this term" href="#tries="></a></dt><dd><p>Specifies the maximum number of underlying block device is specified correctly.</p></dd><dt id="tries="><span class="term"><code class="option">tries=</code></span><a class="headerlink" title="Permalink to this term" href="#tries="></a></dt><dd><p>Specifies the maximum number of
times the user is queried for a password. times the user is queried for a password.
The default is 3. If set to 0, the user is The default is 3. If set to 0, the user is
queried for a password indefinitely.</p></dd><dt id="verify"><span class="term"><code class="varname">verify</code></span><a class="headerlink" title="Permalink to this term" href="#verify"></a></dt><dd><p> If the encryption password is queried for a password indefinitely.</p></dd><dt id="verify"><span class="term"><code class="option">verify</code></span><a class="headerlink" title="Permalink to this term" href="#verify"></a></dt><dd><p> If the encryption password is
read from console, it has to be entered twice to read from console, it has to be entered twice to
prevent typos.</p></dd></dl></div><p>At early boot and when the system manager prevent typos.</p></dd></dl></div><p>At early boot and when the system manager
configuration is reloaded, this file is translated into configuration is reloaded, this file is translated into
native systemd units native systemd units
by <a href="systemd-cryptsetup-generator.html"><span class="citerefentry"><span class="refentrytitle">systemd-cryptsetup-generator</span>(8)</span></a>.</p></div><div class="refsect1"><a name="idm214194879488"></a><h2 id="Example">Example<a class="headerlink" title="Permalink to this headline" href="#Example"></a></h2><div class="example"><a name="idm214194878816"></a><p class="title"><b>Example 1. /etc/crypttab example</b></p><div class="example-contents"><p>Set up four encrypted block devices. One using by <a href="systemd-cryptsetup-generator.html"><span class="citerefentry"><span class="refentrytitle">systemd-cryptsetup-generator</span>(8)</span></a>.</p></div><div class="refsect1"><a name="idm214174457600"></a><h2 id="Example">Example<a class="headerlink" title="Permalink to this headline" href="#Example"></a></h2><div class="example"><a name="idm214174456960"></a><p class="title"><b>Example 1. /etc/crypttab example</b></p><div class="example-contents"><p>Set up four encrypted block devices. One using
LUKS for normal storage, another one for usage as a swap LUKS for normal storage, another one for usage as a swap
device and two TrueCrypt volumes.</p><pre class="programlisting">luks UUID=2505567a-9e27-4efe-a4d5-15ad146c258b device and two TrueCrypt volumes.</p><pre class="programlisting">luks UUID=2505567a-9e27-4efe-a4d5-15ad146c258b
swap /dev/sda7 /dev/urandom swap swap /dev/sda7 /dev/urandom swap
truecrypt /dev/sda2 /etc/container_password tcrypt truecrypt /dev/sda2 /etc/container_password tcrypt
hidden /mnt/tc_hidden /null tcrypt-hidden,tcrypt-keyfile=/etc/keyfile</pre></div></div><br class="example-break"></div><div class="refsect1"><a name="idm214193239680"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> hidden /mnt/tc_hidden /dev/null tcrypt-hidden,tcrypt-keyfile=/etc/keyfile</pre></div></div><br class="example-break"></div><div class="refsect1"><a name="idm214174454576"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="systemd-cryptsetup@.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-cryptsetup@.service</span>(8)</span></a>, <a href="systemd-cryptsetup@.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-cryptsetup@.service</span>(8)</span></a>,
<a href="systemd-cryptsetup-generator.html"><span class="citerefentry"><span class="refentrytitle">systemd-cryptsetup-generator</span>(8)</span></a>, <a href="systemd-cryptsetup-generator.html"><span class="citerefentry"><span class="refentrytitle">systemd-cryptsetup-generator</span>(8)</span></a>,

View File

@ -109,10 +109,10 @@
comma-delimited list of options. The following comma-delimited list of options. The following
options are recognized:</para> options are recognized:</para>
<variablelist class='crypttab-options'> <variablelist class='fstab-options'>
<varlistentry> <varlistentry>
<term><varname>discard</varname></term> <term><option>discard</option></term>
<listitem><para>Allow discard requests to be <listitem><para>Allow discard requests to be
passed through the encrypted block device. This passed through the encrypted block device. This
@ -121,7 +121,7 @@
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><varname>cipher=</varname></term> <term><option>cipher=</option></term>
<listitem><para>Specifies the cipher to use. See <listitem><para>Specifies the cipher to use. See
<citerefentry><refentrytitle>cryptsetup</refentrytitle><manvolnum>8</manvolnum></citerefentry> <citerefentry><refentrytitle>cryptsetup</refentrytitle><manvolnum>8</manvolnum></citerefentry>
@ -132,7 +132,7 @@
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><varname>hash=</varname></term> <term><option>hash=</option></term>
<listitem><para>Specifies the hash to use for <listitem><para>Specifies the hash to use for
password hashing. See password hashing. See
@ -142,7 +142,7 @@
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><varname>keyfile-offset=</varname></term> <term><option>keyfile-offset=</option></term>
<listitem><para>Specifies the number of bytes to <listitem><para>Specifies the number of bytes to
skip at the start of the key file. See skip at the start of the key file. See
@ -152,7 +152,7 @@
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><varname>keyfile-size=</varname></term> <term><option>keyfile-size=</option></term>
<listitem><para>Specifies the maximum number <listitem><para>Specifies the maximum number
of bytes to read from the key file. See of bytes to read from the key file. See
@ -164,39 +164,39 @@
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><varname>key-slot=</varname></term> <term><option>key-slot=</option></term>
<listitem><para>Specifies the key slot to <listitem><para>Specifies the key slot to
compare the passphrase or key against. compare the passphrase or key against.
If the key slot does not match the given If the key slot does not match the given
passphrase or key, but another would, the passphrase or key, but another would, the
setup of the device will fail regardless. setup of the device will fail regardless.
This option implies <varname>luks</varname>. See This option implies <option>luks</option>. See
<citerefentry><refentrytitle>cryptsetup</refentrytitle><manvolnum>8</manvolnum></citerefentry> <citerefentry><refentrytitle>cryptsetup</refentrytitle><manvolnum>8</manvolnum></citerefentry>
for possible values. The default is to try for possible values. The default is to try
all key slots in sequential order.</para></listitem> all key slots in sequential order.</para></listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><varname>luks</varname></term> <term><option>luks</option></term>
<listitem><para>Force LUKS mode. When this mode <listitem><para>Force LUKS mode. When this mode
is used, the following options are ignored since is used, the following options are ignored since
they are provided by the LUKS header on the they are provided by the LUKS header on the
device: <varname>cipher=</varname>, device: <option>cipher=</option>,
<varname>hash=</varname>, <option>hash=</option>,
<varname>size=</varname>.</para></listitem> <option>size=</option>.</para></listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><varname>noauto</varname></term> <term><option>noauto</option></term>
<listitem><para>This device will not be <listitem><para>This device will not be
automatically unlocked on boot.</para></listitem> automatically unlocked on boot.</para></listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><varname>nofail</varname></term> <term><option>nofail</option></term>
<listitem><para>The system will not wait for the <listitem><para>The system will not wait for the
device to show up and be unlocked at boot, and device to show up and be unlocked at boot, and
@ -204,20 +204,20 @@
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><varname>plain</varname></term> <term><option>plain</option></term>
<listitem><para>Force plain encryption mode.</para></listitem> <listitem><para>Force plain encryption mode.</para></listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><varname>read-only</varname></term><term><varname>readonly</varname></term> <term><option>read-only</option></term><term><option>readonly</option></term>
<listitem><para>Set up the encrypted block <listitem><para>Set up the encrypted block
device in read-only mode.</para></listitem> device in read-only mode.</para></listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><varname>size=</varname></term> <term><option>size=</option></term>
<listitem><para>Specifies the key size <listitem><para>Specifies the key size
in bits. See in bits. See
@ -227,33 +227,33 @@
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><varname>swap</varname></term> <term><option>swap</option></term>
<listitem><para>The encrypted block device will <listitem><para>The encrypted block device will
be used as a swap device, and will be formatted be used as a swap device, and will be formatted
accordingly after setting up the encrypted accordingly after setting up the encrypted
block device, with block device, with
<citerefentry><refentrytitle>mkswap</refentrytitle><manvolnum>8</manvolnum></citerefentry>. <citerefentry><refentrytitle>mkswap</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
This option implies <varname>plain</varname>.</para> This option implies <option>plain</option>.</para>
<para>WARNING: Using the <varname>swap</varname> <para>WARNING: Using the <option>swap</option>
option will destroy the contents of the named option will destroy the contents of the named
partition during every boot, so make sure the partition during every boot, so make sure the
underlying block device is specified correctly.</para></listitem> underlying block device is specified correctly.</para></listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><varname>tcrypt</varname></term> <term><option>tcrypt</option></term>
<listitem><para>Use TrueCrypt encryption mode. <listitem><para>Use TrueCrypt encryption mode.
When this mode is used, the following options are When this mode is used, the following options are
ignored since they are provided by the TrueCrypt ignored since they are provided by the TrueCrypt
header on the device or do not apply: header on the device or do not apply:
<varname>cipher=</varname>, <option>cipher=</option>,
<varname>hash=</varname>, <option>hash=</option>,
<varname>keyfile-offset=</varname>, <option>keyfile-offset=</option>,
<varname>keyfile-size=</varname>, <option>keyfile-size=</option>,
<varname>size=</varname>.</para> <option>size=</option>.</para>
<para>When this mode is used, the passphrase is <para>When this mode is used, the passphrase is
read from the key file given in the third field. read from the key file given in the third field.
@ -264,7 +264,7 @@
passphrase and key files to derive a password passphrase and key files to derive a password
for the volume. Therefore, the passphrase and for the volume. Therefore, the passphrase and
all key files need to be provided. Use all key files need to be provided. Use
<varname>tcrypt-keyfile=</varname> to provide <option>tcrypt-keyfile=</option> to provide
the absolute path to all key files. When using the absolute path to all key files. When using
an empty passphrase in combination with one or an empty passphrase in combination with one or
more key files, use <literal>/dev/null</literal> more key files, use <literal>/dev/null</literal>
@ -272,10 +272,10 @@
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><varname>tcrypt-hidden</varname></term> <term><option>tcrypt-hidden</option></term>
<listitem><para>Use the hidden TrueCrypt volume. <listitem><para>Use the hidden TrueCrypt volume.
This option implies <varname>tcrypt</varname>.</para> This option implies <option>tcrypt</option>.</para>
<para>This will map the hidden volume that is <para>This will map the hidden volume that is
inside of the volume provided in the second inside of the volume provided in the second
@ -287,29 +287,29 @@
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><varname>tcrypt-keyfile=</varname></term> <term><option>tcrypt-keyfile=</option></term>
<listitem><para>Specifies the absolute path to a <listitem><para>Specifies the absolute path to a
key file to use for a TrueCrypt volume. This key file to use for a TrueCrypt volume. This
implies <varname>tcrypt</varname> and can be implies <option>tcrypt</option> and can be
used more than once to provide several key used more than once to provide several key
files.</para> files.</para>
<para>See the entry for <varname>tcrypt</varname> <para>See the entry for <option>tcrypt</option>
on the behavior of the passphrase and key files on the behavior of the passphrase and key files
when using TrueCrypt encryption mode.</para></listitem> when using TrueCrypt encryption mode.</para></listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><varname>tcrypt-system</varname></term> <term><option>tcrypt-system</option></term>
<listitem><para>Use TrueCrypt in system <listitem><para>Use TrueCrypt in system
encryption mode. This option implies encryption mode. This option implies
<varname>tcrypt</varname>.</para></listitem> <option>tcrypt</option>.</para></listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><varname>timeout=</varname></term> <term><option>timeout=</option></term>
<listitem><para>Specifies the timeout for <listitem><para>Specifies the timeout for
querying for a password. If no unit is querying for a password. If no unit is
@ -319,22 +319,22 @@
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><varname>tmp</varname></term> <term><option>tmp</option></term>
<listitem><para>The encrypted block device will <listitem><para>The encrypted block device will
be prepared for using it as <filename>/tmp</filename>; be prepared for using it as <filename>/tmp</filename>;
it will be formatted using it will be formatted using
<citerefentry><refentrytitle>mke2fs</refentrytitle><manvolnum>8</manvolnum></citerefentry>. <citerefentry><refentrytitle>mke2fs</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
This option implies <varname>plain</varname>.</para> This option implies <option>plain</option>.</para>
<para>WARNING: Using the <varname>tmp</varname> <para>WARNING: Using the <option>tmp</option>
option will destroy the contents of the named option will destroy the contents of the named
partition during every boot, so make sure the partition during every boot, so make sure the
underlying block device is specified correctly.</para></listitem> underlying block device is specified correctly.</para></listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><varname>tries=</varname></term> <term><option>tries=</option></term>
<listitem><para>Specifies the maximum number of <listitem><para>Specifies the maximum number of
times the user is queried for a password. times the user is queried for a password.
@ -343,7 +343,7 @@
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><varname>verify</varname></term> <term><option>verify</option></term>
<listitem><para> If the encryption password is <listitem><para> If the encryption password is
read from console, it has to be entered twice to read from console, it has to be entered twice to
@ -369,7 +369,7 @@
<programlisting>luks UUID=2505567a-9e27-4efe-a4d5-15ad146c258b <programlisting>luks UUID=2505567a-9e27-4efe-a4d5-15ad146c258b
swap /dev/sda7 /dev/urandom swap swap /dev/sda7 /dev/urandom swap
truecrypt /dev/sda2 /etc/container_password tcrypt truecrypt /dev/sda2 /etc/container_password tcrypt
hidden /mnt/tc_hidden /null tcrypt-hidden,tcrypt-keyfile=/etc/keyfile</programlisting> hidden /mnt/tc_hidden /dev/null tcrypt-hidden,tcrypt-keyfile=/etc/keyfile</programlisting>
</example> </example>
</refsect1> </refsect1>

View File

@ -1,5 +1,5 @@
'\" t '\" t
.TH "DAEMON" "7" "" "systemd 214" "daemon" .TH "DAEMON" "7" "" "systemd 215" "daemon"
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * Define some portability stuff .\" * Define some portability stuff
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
@ -362,10 +362,7 @@ Instead of using the
call to log directly to the system syslog service, a new\-style daemon may choose to simply log to standard error via call to log directly to the system syslog service, a new\-style daemon may choose to simply log to standard error via
\fBfprintf()\fR, which is then forwarded to syslog by the init system\&. If log priorities are necessary, these can be encoded by prefixing individual log lines with strings like "<4>" (for log priority 4 "WARNING" in the syslog priority scheme), following a similar style as the Linux kernel\*(Aqs \fBfprintf()\fR, which is then forwarded to syslog by the init system\&. If log priorities are necessary, these can be encoded by prefixing individual log lines with strings like "<4>" (for log priority 4 "WARNING" in the syslog priority scheme), following a similar style as the Linux kernel\*(Aqs
\fBprintk()\fR \fBprintk()\fR
priority system\&. In fact, using this style of logging also enables the init system to optionally direct all application logging to the kernel log buffer (kmsg), as accessible via priority system\&. For details, see
\fBdmesg\fR(1)\&. This kind of logging may be enabled by setting
\fIStandardError=syslog\fR
in the service unit file\&. For details, see
\fBsd-daemon\fR(3) \fBsd-daemon\fR(3)
and and
\fBsystemd.exec\fR(5)\&. \fBsystemd.exec\fR(5)\&.
@ -783,6 +780,10 @@ Write and install a systemd unit file for the service (and the sockets if socket
.\} .\}
If the daemon exposes interfaces via D\-Bus, write and install a D\-Bus activation file for the service, see above for details\&. If the daemon exposes interfaces via D\-Bus, write and install a D\-Bus activation file for the service, see above for details\&.
.RE .RE
.SH "PLACING DAEMON DATA"
.PP
It is recommended to follow the general guidelines for placing package files, as discussed in
\fBfile-hierarchy\fR(7)\&.
.SH "SEE ALSO" .SH "SEE ALSO"
.PP .PP
\fBsystemd\fR(1), \fBsystemd\fR(1),
@ -790,7 +791,8 @@ If the daemon exposes interfaces via D\-Bus, write and install a D\-Bus activati
\fBsd_listen_fds\fR(3), \fBsd_listen_fds\fR(3),
\fBsd_notify\fR(3), \fBsd_notify\fR(3),
\fBdaemon\fR(3), \fBdaemon\fR(3),
\fBsystemd.service\fR(5) \fBsystemd.service\fR(5),
\fBfile-hierarchy\fR(7)
.SH "NOTES" .SH "NOTES"
.IP " 1." 4 .IP " 1." 4
LSB recommendations for SysV init scripts LSB recommendations for SysV init scripts

View File

@ -19,7 +19,7 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="daemon"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>daemon — Writing and packaging system daemons</p></div><div class="refsect1"><a name="idm214176733072"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p>A daemon is a service process that runs in the <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="daemon"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>daemon — Writing and packaging system daemons</p></div><div class="refsect1"><a name="idm214179512176"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p>A daemon is a service process that runs in the
background and supervises the system or provides background and supervises the system or provides
functionality to other processes. Traditionally, functionality to other processes. Traditionally,
daemons are implemented following a scheme originating daemons are implemented following a scheme originating
@ -29,7 +29,7 @@
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>. This <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>. This
manual page covers both schemes, and in manual page covers both schemes, and in
particular includes recommendations for daemons that particular includes recommendations for daemons that
shall be included in the systemd init system.</p><div class="refsect2"><a name="idm214172947136"></a><h3 id="SysV Daemons">SysV Daemons<a class="headerlink" title="Permalink to this headline" href="#SysV%20Daemons"></a></h3><p>When a traditional SysV daemon shall be included in the systemd init system.</p><div class="refsect2"><a name="idm214177063248"></a><h3 id="SysV Daemons">SysV Daemons<a class="headerlink" title="Permalink to this headline" href="#SysV%20Daemons"></a></h3><p>When a traditional SysV daemon
starts, it should execute the following steps starts, it should execute the following steps
as part of the initialization. Note that these as part of the initialization. Note that these
steps are unnecessary for new-style daemons (see below), steps are unnecessary for new-style daemons (see below),
@ -125,7 +125,7 @@
behavior optional and configurable via a behavior optional and configurable via a
command line argument to ease debugging as command line argument to ease debugging as
well as to simplify integration into systems well as to simplify integration into systems
using systemd.</p></div><div class="refsect2"><a name="idm214176819824"></a><h3 id="New-Style Daemons">New-Style Daemons<a class="headerlink" title="Permalink to this headline" href="#New-Style%20Daemons"></a></h3><p>Modern services for Linux should be using systemd.</p></div><div class="refsect2"><a name="idm214175728384"></a><h3 id="New-Style Daemons">New-Style Daemons<a class="headerlink" title="Permalink to this headline" href="#New-Style%20Daemons"></a></h3><p>Modern services for Linux should be
implemented as new-style daemons. This makes it implemented as new-style daemons. This makes it
easier to supervise and control them at easier to supervise and control them at
runtime and simplifies their runtime and simplifies their
@ -215,34 +215,26 @@
via the via the
<a href="sd_notify.html"><span class="citerefentry"><span class="refentrytitle">sd_notify</span>(3)</span></a> <a href="sd_notify.html"><span class="citerefentry"><span class="refentrytitle">sd_notify</span>(3)</span></a>
interface.</p></li><li class="listitem"><p>Instead of using the interface.</p></li><li class="listitem"><p>Instead of using the
<code class="function">syslog()</code> call to log directly to the <code class="function">syslog()</code> call to
system syslog service, a new-style daemon may log directly to the system syslog
choose to simply log to standard error via service, a new-style daemon may choose
<code class="function">fprintf()</code>, which is then forwarded to to simply log to standard error via
syslog by the init system. If log <code class="function">fprintf()</code>, which
priorities are necessary, these can be is then forwarded to syslog by the
encoded by prefixing individual log init system. If log priorities are
lines with strings like "&lt;4&gt;" necessary, these can be encoded by
(for log priority 4 "WARNING" in the prefixing individual log lines with
syslog priority scheme), following a strings like "&lt;4&gt;" (for log
similar style as the Linux kernel's priority 4 "WARNING" in the syslog
<code class="function">printk()</code> priority system. In fact, priority scheme), following a similar
using this style of logging also style as the Linux kernel's
enables the init system to optionally <code class="function">printk()</code> priority
direct all application logging to the system. For details, see
kernel log buffer (kmsg), as
accessible via
<a href="dmesg.html"><span class="citerefentry"><span class="refentrytitle">dmesg</span>(1)</span></a>. This
kind of logging may be enabled by
setting
<code class="varname">StandardError=syslog</code>
in the service unit file. For details,
see
<a href="sd-daemon.html"><span class="citerefentry"><span class="refentrytitle">sd-daemon</span>(3)</span></a> <a href="sd-daemon.html"><span class="citerefentry"><span class="refentrytitle">sd-daemon</span>(3)</span></a>
and and
<a href="systemd.exec.html"><span class="citerefentry"><span class="refentrytitle">systemd.exec</span>(5)</span></a>.</p></li></ol></div><p>These recommendations are similar but <a href="systemd.exec.html"><span class="citerefentry"><span class="refentrytitle">systemd.exec</span>(5)</span></a>.</p></li></ol></div><p>These recommendations are similar but
not identical to the <a class="ulink" href="https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html" target="_top">Apple not identical to the <a class="ulink" href="https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html" target="_top">Apple
MacOS X Daemon Requirements</a>.</p></div></div><div class="refsect1"><a name="idm214171871376"></a><h2 id="Activation">Activation<a class="headerlink" title="Permalink to this headline" href="#Activation"></a></h2><p>New-style init systems provide multiple MacOS X Daemon Requirements</a>.</p></div></div><div class="refsect1"><a name="idm214178358368"></a><h2 id="Activation">Activation<a class="headerlink" title="Permalink to this headline" href="#Activation"></a></h2><p>New-style init systems provide multiple
additional mechanisms to activate services, as additional mechanisms to activate services, as
detailed below. It is common that services are detailed below. It is common that services are
configured to be activated via more than one mechanism configured to be activated via more than one mechanism
@ -266,7 +258,7 @@
request is lost because client requests will be queued request is lost because client requests will be queued
by the bus system (in case of D-Bus) or the kernel (in by the bus system (in case of D-Bus) or the kernel (in
case of sockets) until the activation is case of sockets) until the activation is
completed.</p><div class="refsect2"><a name="idm214171868144"></a><h3 id="Activation on Boot">Activation on Boot<a class="headerlink" title="Permalink to this headline" href="#Activation%20on%20Boot"></a></h3><p>Old-style daemons are usually activated completed.</p><div class="refsect2"><a name="idm214177474608"></a><h3 id="Activation on Boot">Activation on Boot<a class="headerlink" title="Permalink to this headline" href="#Activation%20on%20Boot"></a></h3><p>Old-style daemons are usually activated
exclusively on boot (and manually by the exclusively on boot (and manually by the
administrator) via SysV init scripts, as administrator) via SysV init scripts, as
detailed in the <a class="ulink" href="http://refspecs.linuxbase.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/iniscrptact.html" target="_top">LSB detailed in the <a class="ulink" href="http://refspecs.linuxbase.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/iniscrptact.html" target="_top">LSB
@ -294,7 +286,7 @@
for details about the for details about the
<code class="filename">.wants/</code> directories, and <code class="filename">.wants/</code> directories, and
<a href="systemd.special.html"><span class="citerefentry"><span class="refentrytitle">systemd.special</span>(7)</span></a> <a href="systemd.special.html"><span class="citerefentry"><span class="refentrytitle">systemd.special</span>(7)</span></a>
for details about the two boot targets.</p></div><div class="refsect2"><a name="idm214171860432"></a><h3 id="Socket-Based Activation">Socket-Based Activation<a class="headerlink" title="Permalink to this headline" href="#Socket-Based%20Activation"></a></h3><p>In order to maximize the possible for details about the two boot targets.</p></div><div class="refsect2"><a name="idm214175963792"></a><h3 id="Socket-Based Activation">Socket-Based Activation<a class="headerlink" title="Permalink to this headline" href="#Socket-Based%20Activation"></a></h3><p>In order to maximize the possible
parallelization and robustness and simplify parallelization and robustness and simplify
configuration and development, it is configuration and development, it is
recommended for all new-style daemons that recommended for all new-style daemons that
@ -365,7 +357,7 @@
example from example from
<code class="filename">multi-user.target</code> or <code class="filename">multi-user.target</code> or
suchlike) when one is installed in suchlike) when one is installed in
<code class="filename">sockets.target</code>.</p></div><div class="refsect2"><a name="idm214171846960"></a><h3 id="Bus-Based Activation">Bus-Based Activation<a class="headerlink" title="Permalink to this headline" href="#Bus-Based%20Activation"></a></h3><p>When the D-Bus IPC system is used for <code class="filename">sockets.target</code>.</p></div><div class="refsect2"><a name="idm214176756752"></a><h3 id="Bus-Based Activation">Bus-Based Activation<a class="headerlink" title="Permalink to this headline" href="#Bus-Based%20Activation"></a></h3><p>When the D-Bus IPC system is used for
communication with clients, new-style daemons communication with clients, new-style daemons
should employ bus activation so that they are should employ bus activation so that they are
automatically activated when a client automatically activated when a client
@ -388,7 +380,7 @@
<code class="filename">rtkit-daemon.service</code>. This <code class="filename">rtkit-daemon.service</code>. This
is needed to make sure that the daemon is is needed to make sure that the daemon is
started in a race-free fashion when activated started in a race-free fashion when activated
via multiple mechanisms simultaneously.</p></div><div class="refsect2"><a name="idm214171842480"></a><h3 id="Device-Based Activation">Device-Based Activation<a class="headerlink" title="Permalink to this headline" href="#Device-Based%20Activation"></a></h3><p>Often, daemons that manage a particular via multiple mechanisms simultaneously.</p></div><div class="refsect2"><a name="idm214178044384"></a><h3 id="Device-Based Activation">Device-Based Activation<a class="headerlink" title="Permalink to this headline" href="#Device-Based%20Activation"></a></h3><p>Often, daemons that manage a particular
type of hardware should be activated only when type of hardware should be activated only when
the hardware of the respective kind is plugged the hardware of the respective kind is plugged
in or otherwise becomes available. In a in or otherwise becomes available. In a
@ -424,7 +416,7 @@
<span class="command"><strong>enable</strong></span> of <span class="command"><strong>enable</strong></span> of
<a href="systemctl.html"><span class="citerefentry"><span class="refentrytitle">systemctl</span>(1)</span></a> <a href="systemctl.html"><span class="citerefentry"><span class="refentrytitle">systemctl</span>(1)</span></a>
instead of manipulating the udev instead of manipulating the udev
ruleset.</p></div><div class="refsect2"><a name="idm214176892432"></a><h3 id="Path-Based Activation">Path-Based Activation<a class="headerlink" title="Permalink to this headline" href="#Path-Based%20Activation"></a></h3><p>Often, runtime of daemons processing ruleset.</p></div><div class="refsect2"><a name="idm214178026080"></a><h3 id="Path-Based Activation">Path-Based Activation<a class="headerlink" title="Permalink to this headline" href="#Path-Based%20Activation"></a></h3><p>Often, runtime of daemons processing
spool files or directories (such as a printing spool files or directories (such as a printing
system) can be delayed until these file system system) can be delayed until these file system
objects change state, or become objects change state, or become
@ -434,13 +426,13 @@
path-based activation configured in path-based activation configured in
<code class="filename">.path</code> units, as outlined <code class="filename">.path</code> units, as outlined
in in
<a href="systemd.path.html"><span class="citerefentry"><span class="refentrytitle">systemd.path</span>(5)</span></a>.</p></div><div class="refsect2"><a name="idm214171821840"></a><h3 id="Timer-Based Activation">Timer-Based Activation<a class="headerlink" title="Permalink to this headline" href="#Timer-Based%20Activation"></a></h3><p>Some daemons that implement clean-up <a href="systemd.path.html"><span class="citerefentry"><span class="refentrytitle">systemd.path</span>(5)</span></a>.</p></div><div class="refsect2"><a name="idm214176776224"></a><h3 id="Timer-Based Activation">Timer-Based Activation<a class="headerlink" title="Permalink to this headline" href="#Timer-Based%20Activation"></a></h3><p>Some daemons that implement clean-up
jobs that are intended to be executed in jobs that are intended to be executed in
regular intervals benefit from timer-based regular intervals benefit from timer-based
activation. In systemd, this is implemented activation. In systemd, this is implemented
via <code class="filename">.timer</code> units, as via <code class="filename">.timer</code> units, as
described in described in
<a href="systemd.timer.html"><span class="citerefentry"><span class="refentrytitle">systemd.timer</span>(5)</span></a>.</p></div><div class="refsect2"><a name="idm214171818912"></a><h3 id="Other Forms of Activation">Other Forms of Activation<a class="headerlink" title="Permalink to this headline" href="#Other%20Forms%20of%20Activation"></a></h3><p>Other forms of activation have been <a href="systemd.timer.html"><span class="citerefentry"><span class="refentrytitle">systemd.timer</span>(5)</span></a>.</p></div><div class="refsect2"><a name="idm214176252752"></a><h3 id="Other Forms of Activation">Other Forms of Activation<a class="headerlink" title="Permalink to this headline" href="#Other%20Forms%20of%20Activation"></a></h3><p>Other forms of activation have been
suggested and implemented in some suggested and implemented in some
systems. However, there are often simpler or systems. However, there are often simpler or
better alternatives, or they can be put better alternatives, or they can be put
@ -485,7 +477,7 @@
activation to schedule background jobs during activation to schedule background jobs during
runtime and with minimal impact on the system, runtime and with minimal impact on the system,
and remove it from the boot phase and remove it from the boot phase
itself.</p></div></div><div class="refsect1"><a name="idm214171812272"></a><h2 id="Integration with Systemd">Integration with Systemd<a class="headerlink" title="Permalink to this headline" href="#Integration%20with%20Systemd"></a></h2><div class="refsect2"><a name="idm214171811632"></a><h3 id="Writing Systemd Unit Files">Writing Systemd Unit Files<a class="headerlink" title="Permalink to this headline" href="#Writing%20Systemd%20Unit%20Files"></a></h3><p>When writing systemd unit files, it is itself.</p></div></div><div class="refsect1"><a name="idm214176372608"></a><h2 id="Integration with Systemd">Integration with Systemd<a class="headerlink" title="Permalink to this headline" href="#Integration%20with%20Systemd"></a></h2><div class="refsect2"><a name="idm214178809840"></a><h3 id="Writing Systemd Unit Files">Writing Systemd Unit Files<a class="headerlink" title="Permalink to this headline" href="#Writing%20Systemd%20Unit%20Files"></a></h3><p>When writing systemd unit files, it is
recommended to consider the following recommended to consider the following
suggestions:</p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><p>If possible, do not use suggestions:</p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><p>If possible, do not use
the <code class="varname">Type=forking</code> the <code class="varname">Type=forking</code>
@ -534,7 +526,7 @@
your service file your service file
<code class="filename">foo.service</code>, for <code class="filename">foo.service</code>, for
a hypothetical program a hypothetical program
<code class="filename">foo</code>.</p></li></ol></div></div><div class="refsect2"><a name="idm214171796080"></a><h3 id="Installing Systemd Service Files">Installing Systemd Service Files<a class="headerlink" title="Permalink to this headline" href="#Installing%20Systemd%20Service%20Files"></a></h3><p>At the build installation time <code class="filename">foo</code>.</p></li></ol></div></div><div class="refsect2"><a name="idm214177358624"></a><h3 id="Installing Systemd Service Files">Installing Systemd Service Files<a class="headerlink" title="Permalink to this headline" href="#Installing%20Systemd%20Service%20Files"></a></h3><p>At the build installation time
(e.g. <span class="command"><strong>make install</strong></span> during (e.g. <span class="command"><strong>make install</strong></span> during
package build), packages are recommended to package build), packages are recommended to
install their systemd unit files in the install their systemd unit files in the
@ -639,7 +631,7 @@ fi</pre><p>Where 0.47.11-1 is the first package
specific to Fedora which can be used to check specific to Fedora which can be used to check
whether a SysV init script is enabled. Other whether a SysV init script is enabled. Other
operating systems will have to use different operating systems will have to use different
commands here.</p></div></div><div class="refsect1"><a name="idm214171768368"></a><h2 id="Porting Existing Daemons">Porting Existing Daemons<a class="headerlink" title="Permalink to this headline" href="#Porting%20Existing%20Daemons"></a></h2><p>Since new-style init systems such as systemd are commands here.</p></div></div><div class="refsect1"><a name="idm214178311488"></a><h2 id="Porting Existing Daemons">Porting Existing Daemons<a class="headerlink" title="Permalink to this headline" href="#Porting%20Existing%20Daemons"></a></h2><p>Since new-style init systems such as systemd are
compatible with traditional SysV init systems, it is compatible with traditional SysV init systems, it is
not strictly necessary to port existing daemons to the not strictly necessary to port existing daemons to the
new style. However, doing so offers additional new style. However, doing so offers additional
@ -684,11 +676,14 @@ fi</pre><p>Where 0.47.11-1 is the first package
details.</p></li><li class="listitem"><p>If the daemon exposes details.</p></li><li class="listitem"><p>If the daemon exposes
interfaces via D-Bus, write and install a interfaces via D-Bus, write and install a
D-Bus activation file for the service, see D-Bus activation file for the service, see
above for details.</p></li></ol></div></div><div class="refsect1"><a name="idm214171757872"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> above for details.</p></li></ol></div></div><div class="refsect1"><a name="idm214180581568"></a><h2 id="Placing Daemon Data">Placing Daemon Data<a class="headerlink" title="Permalink to this headline" href="#Placing%20Daemon%20Data"></a></h2><p>It is recommended to follow the general
guidelines for placing package files, as discussed in
<a href="file-hierarchy.html"><span class="citerefentry"><span class="refentrytitle">file-hierarchy</span>(7)</span></a>.</p></div><div class="refsect1"><a name="idm214180579440"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="sd-daemon.html"><span class="citerefentry"><span class="refentrytitle">sd-daemon</span>(3)</span></a>, <a href="sd-daemon.html"><span class="citerefentry"><span class="refentrytitle">sd-daemon</span>(3)</span></a>,
<a href="sd_listen_fds.html"><span class="citerefentry"><span class="refentrytitle">sd_listen_fds</span>(3)</span></a>, <a href="sd_listen_fds.html"><span class="citerefentry"><span class="refentrytitle">sd_listen_fds</span>(3)</span></a>,
<a href="sd_notify.html"><span class="citerefentry"><span class="refentrytitle">sd_notify</span>(3)</span></a>, <a href="sd_notify.html"><span class="citerefentry"><span class="refentrytitle">sd_notify</span>(3)</span></a>,
<a href="daemon.html"><span class="citerefentry"><span class="refentrytitle">daemon</span>(3)</span></a>, <a href="daemon.html"><span class="citerefentry"><span class="refentrytitle">daemon</span>(3)</span></a>,
<a href="systemd.service.html"><span class="citerefentry"><span class="refentrytitle">systemd.service</span>(5)</span></a> <a href="systemd.service.html"><span class="citerefentry"><span class="refentrytitle">systemd.service</span>(5)</span></a>,
<a href="file-hierarchy.html"><span class="citerefentry"><span class="refentrytitle">file-hierarchy</span>(7)</span></a>
</p></div></div></body></html> </p></div></div></body></html>

View File

@ -321,29 +321,21 @@
interface.</para></listitem> interface.</para></listitem>
<listitem><para>Instead of using the <listitem><para>Instead of using the
<function>syslog()</function> call to log directly to the <function>syslog()</function> call to
system syslog service, a new-style daemon may log directly to the system syslog
choose to simply log to standard error via service, a new-style daemon may choose
<function>fprintf()</function>, which is then forwarded to to simply log to standard error via
syslog by the init system. If log <function>fprintf()</function>, which
priorities are necessary, these can be is then forwarded to syslog by the
encoded by prefixing individual log init system. If log priorities are
lines with strings like "&lt;4&gt;" necessary, these can be encoded by
(for log priority 4 "WARNING" in the prefixing individual log lines with
syslog priority scheme), following a strings like "&lt;4&gt;" (for log
similar style as the Linux kernel's priority 4 "WARNING" in the syslog
<function>printk()</function> priority system. In fact, priority scheme), following a similar
using this style of logging also style as the Linux kernel's
enables the init system to optionally <function>printk()</function> priority
direct all application logging to the system. For details, see
kernel log buffer (kmsg), as
accessible via
<citerefentry><refentrytitle>dmesg</refentrytitle><manvolnum>1</manvolnum></citerefentry>. This
kind of logging may be enabled by
setting
<varname>StandardError=syslog</varname>
in the service unit file. For details,
see
<citerefentry><refentrytitle>sd-daemon</refentrytitle><manvolnum>3</manvolnum></citerefentry> <citerefentry><refentrytitle>sd-daemon</refentrytitle><manvolnum>3</manvolnum></citerefentry>
and and
<citerefentry><refentrytitle>systemd.exec</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para></listitem> <citerefentry><refentrytitle>systemd.exec</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para></listitem>
@ -940,6 +932,14 @@ fi</programlisting>
</orderedlist> </orderedlist>
</refsect1> </refsect1>
<refsect1>
<title>Placing Daemon Data</title>
<para>It is recommended to follow the general
guidelines for placing package files, as discussed in
<citerefentry><refentrytitle>file-hierarchy</refentrytitle><manvolnum>7</manvolnum></citerefentry>.</para>
</refsect1>
<refsect1> <refsect1>
<title>See Also</title> <title>See Also</title>
<para> <para>
@ -948,7 +948,8 @@ fi</programlisting>
<citerefentry><refentrytitle>sd_listen_fds</refentrytitle><manvolnum>3</manvolnum></citerefentry>, <citerefentry><refentrytitle>sd_listen_fds</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
<citerefentry><refentrytitle>sd_notify</refentrytitle><manvolnum>3</manvolnum></citerefentry>, <citerefentry><refentrytitle>sd_notify</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
<citerefentry><refentrytitle>daemon</refentrytitle><manvolnum>3</manvolnum></citerefentry>, <citerefentry><refentrytitle>daemon</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
<citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry> <citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
<citerefentry><refentrytitle>file-hierarchy</refentrytitle><manvolnum>7</manvolnum></citerefentry>
</para> </para>
</refsect1> </refsect1>

637
man/file-hierarchy.7 Normal file
View File

@ -0,0 +1,637 @@
'\" t
.TH "FILE\-HIERARCHY" "7" "" "systemd 215" "file-hierarchy"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
file-hierarchy \- File system hierarchy overview
.SH "DESCRIPTION"
.PP
Operating systems using the
\fBsystemd\fR(1)
system and service manager are organized based on a file system hierarchy inspired by UNIX, more specifically the hierarchy described in the
\m[blue]\fBFile System Hierarchy\fR\m[]\&\s-2\u[1]\d\s+2
specification and
\fBhier\fR(7)\&. This manual page describes a more minimal, modernized subset of these specifications that defines more strictly the suggestions and restrictions systemd makes on the file system hierarchy\&.
.PP
Many of the paths described here are queriable with the
\fBsystemd-path\fR(1)
tool\&.
.SH "GENERAL STRUCTURE"
.PP
/
.RS 4
The file system root\&. Usually writable, but this is not required\&. Possibly a temporary file system ("tmpfs")\&. Not shared with other hosts (unless read\-only)\&.
.RE
.PP
/boot
.RS 4
The boot partition used for bringing up the system\&. On EFI systems this is possibly the EFI System Partition, also see
\fBsystemd-efi-boot-generator\fR(8)\&. This directory is usually strictly local to the host, and should be considered read\-only, except when a new kernel or boot loader is installed\&. This directory only exists on systems that run on physical or emulated hardware that requires boot loaders\&.
.RE
.PP
/etc
.RS 4
System\-specific configuration\&. This directory may or may not be read\-only\&. Frequently, this directory is pre\-populated with vendor\-supplied configuration files, but applications should not make assumptions about this directory being fully populated or populated at all, and should fall back to defaults if configuration is missing\&.
.RE
.PP
/home
.RS 4
The location for normal user\*(Aqs home directories\&. Possibly shared with other systems, and never read\-only\&. This directory should only be used for normal users, never for system users\&. This directory and possibly the directories contained within it might only become available or writable in late boot or even only after user authentication\&. This directory might be placed on limited\-functionality network file systems, hence applications should not assume the full set of file API is available on this directory\&. Applications should generally not reference this directory directly, but via the per\-user
\fI$HOME\fR
environment variable, or via the home directory field of the user database\&.
.RE
.PP
/root
.RS 4
The home directory of the root user\&. The root user\*(Aqs home directory is located outside of
/home
in order to make sure the root user may log in even without
/home
being available and mounted\&.
.RE
.PP
/srv
.RS 4
The place to store general server payload, managed by the administrator\&. No restrictions are made how this directory is organized internally\&. Generally writable, and possibly shared among systems\&. This directory might become available or writable only very late during boot\&.
.RE
.PP
/tmp
.RS 4
The place for small temporary files\&. This directory is usually mounted as a
"tmpfs"
instance, and should hence not be used for larger files\&. (Use
/var/tmp
for larger files\&.) Since the directory is accessible to other users of the system it is essential that this directory is only written to with the
\fBmkstemp\fR(3),
\fBmkdtemp\fR(3)
and related calls\&. This directory is usually flushed at boot\-up\&. Also, files that are not accessed within a certain time are usually automatically deleted\&. If applications find the environment variable
\fI$TMPDIR\fR
set they should prefer using the directory specified in it over directly referencing
/tmp
(see
\fBenviron\fR(7)
for details)\&.
.RE
.SH "RUNTIME DATA"
.PP
/run
.RS 4
A
"tmpfs"
file system for system packages to place runtime data in\&. This directory is flushed on boot, and generally writable for privileged programs only\&. Always writable\&.
.RE
.PP
/run/log
.RS 4
Runtime system logs\&. System components may place private logs in this directory\&. Always writable, even when
/var/log
might not be accessible yet\&.
.RE
.PP
/run/user
.RS 4
Contains per\-user runtime directories, each usually individually mounted
"tmpfs"
instances\&. Always writable, flushed at each reboot and when the user logs out\&. User code should not reference this directory directly, but via the
\fI$XDG_RUNTIME_DIR\fR
environment variable, as documented in the
\m[blue]\fBXDG Base Directory Specification\fR\m[]\&\s-2\u[2]\d\s+2\&.
.RE
.SH "VENDOR-SUPPLIED OPERATING SYSTEM RESOURCES"
.PP
/usr
.RS 4
Vendor\-supplied operating system resources\&. Usually read\-only, but this is not required\&. Possibly shared between multiple hosts\&. This directory should not be modified by the administrator, except when installing or removing vendor\-supplied packages\&.
.RE
.PP
/usr/bin
.RS 4
Binaries and executables for user commands, that shall appear in the
\fI$PATH\fR
search path\&. It is recommended not to place binaries in this directory that are not useful for invocation from a shell (such as daemon binaries); these should be placed in a subdirectory of
/usr/lib
instead\&.
.RE
.PP
/usr/include
.RS 4
C and C++ API header files of system libraries\&.
.RE
.PP
/usr/lib
.RS 4
Static, private vendor data that is compatible with all architectures (though not necessarily architecture\-independent)\&. Note that this includes internal executables or other binaries that are not regularly invoked from a shell\&. Such binaries may be for any architecture supported by the system\&. Do not place public libraries in this directory, use
\fI$libdir\fR
(see below), instead\&.
.RE
.PP
/usr/lib/\fIarch\-id\fR
.RS 4
Location for placing dynamic libraries, also called
\fI$libdir\fR\&. The architecture identifier to use is defined on
\m[blue]\fBMultiarch Architecture Specifiers (Tuples)\fR\m[]\&\s-2\u[3]\d\s+2
list\&. Legacy locations of
\fI$libdir\fR
are
/usr/lib,
/usr/lib64\&. This directory should not be used for package\-specific data, unless this data is architecture\-dependent, too\&. To query
\fI$libdir\fR
for the primary architecture of the system, invoke:
.sp
.if n \{\
.RS 4
.\}
.nf
# pkg\-config \-\-variable=libdir systemd
.fi
.if n \{\
.RE
.\}
.sp
or
.sp
.if n \{\
.RS 4
.\}
.nf
# systemd\-path system\-library\-arch
.fi
.if n \{\
.RE
.\}
.sp
.RE
.PP
/usr/share
.RS 4
Resources shared between multiple packages, such as documentation, man pages, time zone information, fonts and other resources\&. Usually, the precise location and format of files stored below this directory is subject to specifications that ensure interoperability\&.
.RE
.PP
/usr/share/doc
.RS 4
Documentation for the operating system or system packages\&.
.RE
.PP
/usr/share/factory/etc
.RS 4
Repository for vendor\-supplied default configuration files\&. This directory should be populated with pristine vendor versions of all configuration files that may be placed in
/etc\&. This is useful to compare the local configuration of a system with vendor defaults and to populate the local configuration with defaults\&.
.RE
.PP
/usr/share/factory/var
.RS 4
Similar to
/usr/share/factory/etc
but for vendor versions of files in the variable, persistent data directory
/var\&.
.RE
.SH "PERSISTENT VARIABLE SYSTEM DATA"
.PP
/var
.RS 4
Persistent, variable system data\&. Must be writable\&. This directory might be pre\-populated with vendor\-supplied data, but applications should be able to reconstruct necessary files and directories in this subhierarchy should they be missing, as the system might start up without this directory being populated\&. Persistency is recommended, but optional, to support ephemeral systems\&. This directory might become available or writable only very late during boot\&. Components that are required to operate during early boot hence shall not unconditionally rely on this directory\&.
.RE
.PP
/var/cache
.RS 4
Persistent system cache data\&. System components may place non\-essential data in this directory\&. Flushing this directory should have no effect on operation of programs, except for increased runtimes necessary to rebuild these caches\&.
.RE
.PP
/var/lib
.RS 4
Persistent system data\&. System components may place private data in this directory\&.
.RE
.PP
/var/log
.RS 4
Persistent system logs\&. System components may place private logs in this directory, though it is recommended to do most logging via the
\fBsyslog\fR(3)
and
\fBsd_journal_print\fR(3)
calls\&.
.RE
.PP
/var/spool
.RS 4
Persistent system spool data, such as printer or mail queues\&.
.RE
.PP
/var/tmp
.RS 4
The place for larger and persistent temporary files\&. In contrast to
/tmp
this directory is usually mounted from a persistent physical file system and can thus accept larger files\&. (Use
/tmp
for smaller files\&.) This directory is generally not flushed at boot\-up, but time\-based cleanup of files that have not been accessed for a certain time is applied\&. The same security restrictions as with
/tmp
apply, and hence only
\fBmkstemp\fR(3),
\fBmkdtemp\fR(3)
or similar calls should be used to make use of this directory\&. If applications find the environment variable
\fI$TMPDIR\fR
set they should prefer using the directory specified in it over directly referencing
/var/tmp
(see
\fBenviron\fR(7)
for details)\&.
.RE
.SH "VIRTUAL KERNEL AND API FILE SYSTEMS"
.PP
/dev
.RS 4
The root directory for device nodes\&. Usually this directory is mounted as a
"devtmpfs"
instance, but might be of a different type in sandboxed/containerized setups\&. This directory is managed jointly by the kernel and
\fBsystemd-udevd\fR(8), and should not be written to by other components\&. A number of special purpose virtual file systems might be mounted below this directory\&.
.RE
.PP
/dev/shm
.RS 4
Place for POSIX shared memory segments, as created via
\fBshm_open\fR(3)\&. This directory is flushed on boot, and is a
"tmpfs"
file system\&. Since all users have write access to this directory, special care should be taken to avoid name clashes and vulnerabilities\&. For normal users, shared memory segments in this directory are usually deleted when the user logs out\&. Usually it is a better idea to use memory mapped files in
/run
(for system programs) or
\fI$XDG_RUNTIME_DIR\fR
(for user programs) instead of POSIX shared memory segments, since those directories are not world\-writable and hence not vulnerable to security\-sensitive name clashes\&.
.RE
.PP
/proc
.RS 4
A virtual kernel file system exposing the process list and other functionality\&. This file system is mostly an API to interface with the kernel and not a place where normal files may be stored\&. For details, see
\fBproc\fR(5)\&. A number of special purpose virtual file systems might be mounted below this directory\&.
.RE
.PP
/proc/sys
.RS 4
A hierarchy below
/proc
that exposes a number of kernel tunables\&. The primary way to configure the settings in this API file tree is via
\fBsysctl.d\fR(5)
files\&. In sandboxed/containerized setups this directory is generally mounted read\-only\&.
.RE
.PP
/sys
.RS 4
A virtual kernel file system exposing discovered devices and other functionality\&. This file system is mostly an API to interface with the kernel and not a place where normal files may be stored\&. In sandboxed/containerized setups this directory is generally mounted read\-only\&. A number of special purpose virtual file systems might be mounted below this directory\&.
.RE
.SH "COMPATIBILITY SYMLINKS"
.PP
/bin, /sbin, /usr/sbin
.RS 4
These compatibility symlinks point to
/usr/bin, ensuring that scripts and binaries referencing these legacy paths correctly find their binaries\&.
.RE
.PP
/lib
.RS 4
This compatibility symlink points to
/usr/lib, ensuring that programs referencing this legacy path correctly find their resources\&.
.RE
.PP
/lib64
.RS 4
On some architecture ABIs this compatibility symlink points to
\fI$libdir\fR, ensuring that binaries referencing this legacy path correctly find their dynamic loader\&. This symlink only exists on architectures whose ABI places the dynamic loader in this path\&.
.RE
.PP
/var/run
.RS 4
This compatibility symlink points to
/run, ensuring that programs referencing this legacy path correctly find their runtime data\&.
.RE
.SH "HOME DIRECTORY"
.PP
User applications may want to place files and directories in the user\*(Aqs home directory\&. They should follow the following basic structure\&. Note that some of these directories are also standardized (though more weakly) by the
\m[blue]\fBXDG Base Directory Specification\fR\m[]\&\s-2\u[2]\d\s+2\&. Additional locations for high\-level user resources are defined by
\m[blue]\fBxdg\-user\-dirs\fR\m[]\&\s-2\u[4]\d\s+2\&.
.PP
~/\&.cache
.RS 4
Persistent user cache data\&. User programs may place non\-essential data in this directory\&. Flushing this directory should have no effect on operation of programs, except for increased runtimes necessary to rebuild these caches\&. If an application finds
\fI$XDG_CACHE_HOME\fR
set is should use the directory specified in it instead of this directory\&.
.RE
.PP
~/\&.config
.RS 4
Application configuration and state\&. When a new user is created this directory will be empty or not exist at all\&. Applications should fall back to defaults should their configuration or state in this directory be missing\&. If an application finds
\fI$XDG_CONFIG_HOME\fR
set is should use the directory specified in it instead of this directory\&.
.RE
.PP
~/\&.local/bin
.RS 4
Executables that shall appear in the user\*(Aqs
\fI$PATH\fR
search path\&. It is recommended not to place executables in this directory that are not useful for invocation from a shell; these should be placed in a subdirectory of
~/\&.local/lib
instead\&. Care should be taken when placing architecture\-dependent binaries in this place which might be problematic if the home directory is shared between multiple hosts with different architectures\&.
.RE
.PP
~/\&.local/lib
.RS 4
Static, private vendor data that is compatible with all architectures\&.
.RE
.PP
~/\&.local/lib/\fIarch\-id\fR
.RS 4
Location for placing public dynamic libraries\&. The architecture identifier to use, is defined on
\m[blue]\fBMultiarch Architecture Specifiers (Tuples)\fR\m[]\&\s-2\u[3]\d\s+2
list\&.
.RE
.PP
~/\&.local/share
.RS 4
Resources shared between multiple packages, such as fonts or artwork\&. Usually, the precise location and format of files stored below this directory is subject to specifications that ensure interoperability\&. If an application finds
\fI$XDG_DATA_HOME\fR
set is should use the directory specified in it instead of this directory\&.
.RE
.SH "UNPRIVILEGED WRITE ACCESS"
.PP
Unprivileged processes generally lack write access to most of the hierarchy\&.
.PP
The exceptions for normal users are
/tmp,
/var/tmp,
/dev/shm, as well as the home directory
\fI$HOME\fR
(usually found below
/home) and the runtime directory
\fI$XDG_RUNTIME_DIR\fR
(found below
/run/user) of the user, which are all writable\&.
.PP
For unprivileged system processes only
/tmp,
/var/tmp
and
/dev/shm
are writable\&. If an unprivileged system process needs a private, writable directory in
/var
or
/run, it is recommended to either create it before dropping privileges in the daemon code, to create it via
\fBtmpfiles.d\fR(5)
fragments during boot, or via the
\fIRuntimeDirectory=\fR
directive of service units (see
\fBsystemd.unit\fR(5)
for details)\&.
.SH "NODE TYPES"
.PP
Unix file systems support different types of file nodes, including regular files, directories, symlinks, character and block device nodes, sockets and FIFOs\&.
.PP
It is strongly recommended that
/dev
is the only location below which device nodes shall be placed\&. Similar,
/run
shall be the only location to place sockets and FIFOs\&. Regular files, directories and symlinks may be used in all directories\&.
.SH "SYSTEM PACKAGES"
.PP
Developers of system packages should follow strict rules when placing their own files in the file system\&. The following table lists recommended locations for specific types of files supplied by the vendor\&.
.sp
.it 1 an-trap
.nr an-no-space-flag 1
.nr an-break-flag 1
.br
.B Table\ \&1.\ \&System Package Vendor Files Locations
.TS
allbox tab(:);
lB lB.
T{
Directory
T}:T{
Purpose
T}
.T&
l l
l l
l l
l l
l l.
T{
/usr/bin
T}:T{
Package executables that shall appear in the \fI$PATH\fR executable search path, compiled for any of the supported architectures compatible with the operating system\&. It is not recommended to place internal binaries or binaries that are not commonly invoked from the shell in this directory, such as daemon binaries\&. As this directory is shared with most other packages of the system special care should be taken to pick unique names for files placed here, that are unlikely to clash with other package\*(Aqs files\&.
T}
T{
/usr/lib/\fIarch\-id\fR
T}:T{
Public shared libraries of the package\&. As above, be careful with using too generic names, and pick unique names for your libraries to place here to avoid name clashes\&.
T}
T{
/usr/lib/\fIpackage\fR
T}:T{
Private, static vendor resources of the package, including private binaries and libraries, or any other kind of read\-only vendor data\&.
T}
T{
/usr/lib/\fIarch\-id\fR/\fIpackage\fR
T}:T{
Private other vendor resources of the package that are architecture\-specific and cannot be shared between architectures\&. Note that this generally does not include private executables since binaries of a specific architecture may be freely invoked from any other supported system architecture\&.
T}
T{
/usr/include/\fIpackage\fR
T}:T{
Public C/C++ APIs of public shared libraries of the package\&.
T}
.TE
.sp 1
.PP
Additional static vendor files may be installed in the
/usr/share
hierarchy, to the locations defined by the various relevant specifications\&.
.PP
During runtime and for local configuration and state additional directories are defined:
.sp
.it 1 an-trap
.nr an-no-space-flag 1
.nr an-break-flag 1
.br
.B Table\ \&2.\ \&System Package Variable Files Locations
.TS
allbox tab(:);
lB lB.
T{
Directory
T}:T{
Purpose
T}
.T&
l l
l l
l l
l l
l l
l l
l l.
T{
/etc/\fIpackage\fR
T}:T{
System\-specific configuration for the package\&. It is recommended to default to safe fallbacks if this configuration is missing, if this is possible\&. Alternatively, a \fBtmpfiles.d\fR(5) fragment may be used to copy or symlink the necessary files and directories from /usr/share/factory during boot, via the "L" or "C" directives\&.
T}
T{
/run/\fIpackage\fR
T}:T{
Runtime data for the package\&. Packages must be able to create the necessary subdirectories in this tree on their own, since the directory is flushed automatically on boot\&. Alternatively, a \fBtmpfiles.d\fR(5) fragment may be used to create the necessary directories during boot\&. Alternatively, the \fIRuntimeDirectory=\fR directive of service units may be used (see \fBsystemd.unit\fR(5) for details\&.)
T}
T{
/run/log/\fIpackage\fR
T}:T{
Runtime log data for the package\&. As above, the package needs to make sure to create this directory if necessary, as it will be flushed on every boot\&.
T}
T{
/var/cache/\fIpackage\fR
T}:T{
Persistent cache data of the package\&. If this directory is flushed the application should work correctly on next invocation, though possibly slowed down due to the need to rebuild any local cache files\&. The application must be capable of recreating this directory should it be missing and necessary\&.
T}
T{
/var/lib/\fIpackage\fR
T}:T{
Persistent private data of the package\&. This is the primary place to put persistent data that does not fall into the other categories listed\&. Packages should be able to create the necessary subdirectories in this tree on their own, since the directory might be missing on boot\&. Alternatively, a \fBtmpfiles.d\fR(5) fragment may be used to create the necessary directories during boot\&.
T}
T{
/var/log/\fIpackage\fR
T}:T{
Persistent log data of the package\&. As above, the package should make sure to create this directory if necessary, as it might be missing\&.
T}
T{
/var/spool/\fIpackage\fR
T}:T{
Persistent spool/queue data of the package\&. As above, the package should make sure to create this directory if necessary, as it might be missing\&.
T}
.TE
.sp 1
.SH "USER PACKAGES"
.PP
Programs running in user context should follow strict rules when placing their own files in the user\*(Aqs home directory\&. The following table lists recommended locations in the home directory for specific types of files supplied by the vendor if the application is installed in the home directory\&. (Note however, that user applications installed system\-wide should follow the rules outlined above regarding placing vendor files\&.)
.sp
.it 1 an-trap
.nr an-no-space-flag 1
.nr an-break-flag 1
.br
.B Table\ \&3.\ \&User Package Vendor File Locations
.TS
allbox tab(:);
lB lB.
T{
Directory
T}:T{
Purpose
T}
.T&
l l
l l
l l
l l.
T{
~/\&.local/bin
T}:T{
Package executables that shall appear in the \fI$PATH\fR executable search path\&. It is not recommended to place internal executables or executables that are not commonly invoked from the shell in this directory, such as daemon executables\&. As this directory is shared with most other packages of the user special care should be taken to pick unique names for files placed here, that are unlikely to clash with other package\*(Aqs files\&.
T}
T{
~/\&.local/lib/\fIarch\-id\fR
T}:T{
Public shared libraries of the package\&. As above, be careful with using too generic names, and pick unique names for your libraries to place here to avoid name clashes\&.
T}
T{
~/\&.local/lib/\fIpackage\fR
T}:T{
Private, static vendor resources of the package, compatible wih any architecture, or any other kind of read\-only vendor data\&.
T}
T{
~/\&.local/lib/\fIarch\-id\fR/\fIpackage\fR
T}:T{
Private other vendor resources of the package that are architecture\-specific and cannot be shared between architectures\&.
T}
.TE
.sp 1
.PP
Additional static vendor files may be installed in the
~/\&.local/share
hierarchy, to the locations defined by the various relevant specifications\&.
.PP
During runtime and for local configuration and state additional directories are defined:
.sp
.it 1 an-trap
.nr an-no-space-flag 1
.nr an-break-flag 1
.br
.B Table\ \&4.\ \&User Package Variable File Locations
.TS
allbox tab(:);
lB lB.
T{
Directory
T}:T{
Purpose
T}
.T&
l l
l l
l l.
T{
~/\&.config/\fIpackage\fR
T}:T{
User\-specific configuration and state for the package\&. It is required to default to safe fallbacks if this configuration is missing\&.
T}
T{
\fI$XDG_RUNTIME_DIR\fR/\fIpackage\fR
T}:T{
User runtime data for the package\&.
T}
T{
~/\&.cache/\fIpackage\fR
T}:T{
Persistent cache data of the package\&. If this directory is flushed the application should work correctly on next invocation, though possibly slowed down due to the need to rebuild any local cache files\&. The application must be capable of recreating this directory should it be missing and necessary\&.
T}
.TE
.sp 1
.SH "SEE ALSO"
.PP
\fBsystemd\fR(1),
\fBhier\fR(7),
\fBsystemd-path\fR(1),
\fBsystemd-efi-boot-generator\fR(8),
\fBsysctl.d\fR(5),
\fBtmpfiles.d\fR(5),
\fBpkg-config\fR(1),
\fBsystemd.unit\fR(5)
.SH "NOTES"
.IP " 1." 4
File System Hierarchy
.RS 4
\%http://refspecs.linuxfoundation.org/FHS_2.3/fhs-2.3.html
.RE
.IP " 2." 4
XDG Base Directory Specification
.RS 4
\%http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
.RE
.IP " 3." 4
Multiarch Architecture Specifiers (Tuples)
.RS 4
\%https://wiki.debian.org/Multiarch/Tuples
.RE
.IP " 4." 4
xdg-user-dirs
.RS 4
\%http://www.freedesktop.org/wiki/Software/xdg-user-dirs/
.RE

483
man/file-hierarchy.html Normal file
View File

@ -0,0 +1,483 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>file-hierarchy</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><style>
a.headerlink {
color: #c60f0f;
font-size: 0.8em;
padding: 0 4px 0 4px;
text-decoration: none;
visibility: hidden;
}
a.headerlink:hover {
background-color: #c60f0f;
color: white;
}
h1:hover > a.headerlink, h2:hover > a.headerlink, h3:hover > a.headerlink, dt:hover > a.headerlink {
visibility: visible;
}
</style><a href="index.html">Index </a>·
<a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="file-hierarchy"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>file-hierarchy — File system hierarchy overview</p></div><div class="refsect1"><a name="idm214174576496"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p>Operating systems using the
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>
system and service manager are organized based on a
file system hierarchy inspired by UNIX, more
specifically the hierarchy described in the <a class="ulink" href="http://refspecs.linuxfoundation.org/FHS_2.3/fhs-2.3.html" target="_top">File
System Hierarchy</a> specification and
<a href="hier.html"><span class="citerefentry"><span class="refentrytitle">hier</span>(7)</span></a>. This
manual page describes a more minimal, modernized
subset of these specifications that defines more
strictly the suggestions and restrictions systemd
makes on the file system hierarchy.</p><p>Many of the paths described here are queriable
with the
<a href="systemd-path.html"><span class="citerefentry"><span class="refentrytitle">systemd-path</span>(1)</span></a>
tool.</p></div><div class="refsect1"><a name="idm214173152608"></a><h2 id="General Structure">General Structure<a class="headerlink" title="Permalink to this headline" href="#General%20Structure"></a></h2><div class="variablelist"><dl class="variablelist"><dt id="/"><span class="term"><code class="filename">/</code></span><a class="headerlink" title="Permalink to this term" href="#/"></a></dt><dd><p>The file system
root. Usually writable, but this is
not required. Possibly a temporary
file system ("<code class="literal">tmpfs</code>"). Not shared with
other hosts (unless read-only).
</p></dd><dt id="/boot"><span class="term"><code class="filename">/boot</code></span><a class="headerlink" title="Permalink to this term" href="#/boot"></a></dt><dd><p>The boot partition
used for bringing up the system. On
EFI systems this is possibly the EFI
System Partition, also see
<a href="systemd-efi-boot-generator.html"><span class="citerefentry"><span class="refentrytitle">systemd-efi-boot-generator</span>(8)</span></a>. This
directory is usually strictly local
to the host, and should be considered
read-only, except when a new kernel or
boot loader is installed. This
directory only exists on systems that
run on physical or emulated hardware
that requires boot
loaders.</p></dd><dt id="/etc"><span class="term"><code class="filename">/etc</code></span><a class="headerlink" title="Permalink to this term" href="#/etc"></a></dt><dd><p>System-specific
configuration. This directory may or
may not be read-only. Frequently, this
directory is pre-populated with
vendor-supplied configuration files,
but applications should not make
assumptions about this directory
being fully populated or populated at
all, and should fall back to defaults
if configuration is missing.</p></dd><dt id="/home"><span class="term"><code class="filename">/home</code></span><a class="headerlink" title="Permalink to this term" href="#/home"></a></dt><dd><p>The location for
normal user's home
directories. Possibly shared with
other systems, and never
read-only. This directory should only
be used for normal users, never for
system users. This directory and
possibly the directories contained
within it might only become available
or writable in late boot or even only
after user authentication. This directory
might be placed on limited-functionality
network file systems, hence
applications should not assume the
full set of file API is available on
this directory. Applications should
generally not reference this directory
directly, but via the per-user
<code class="varname">$HOME</code> environment
variable, or via the home directory
field of the user
database.</p></dd><dt id="/root"><span class="term"><code class="filename">/root</code></span><a class="headerlink" title="Permalink to this term" href="#/root"></a></dt><dd><p>The home directory of
the root user. The root user's home
directory is located outside of
<code class="filename">/home</code> in order to
make sure the root user may log in
even without <code class="filename">/home</code>
being available and
mounted.</p></dd><dt id="/srv"><span class="term"><code class="filename">/srv</code></span><a class="headerlink" title="Permalink to this term" href="#/srv"></a></dt><dd><p>The place to store
general server payload, managed by the
administrator. No restrictions are
made how this directory is organized
internally. Generally writable, and
possibly shared among systems. This
directory might become available or
writable only very late during
boot.</p></dd><dt id="/tmp"><span class="term"><code class="filename">/tmp</code></span><a class="headerlink" title="Permalink to this term" href="#/tmp"></a></dt><dd><p>The place for small
temporary files. This directory is
usually mounted as
a "<code class="literal">tmpfs</code>" instance, and
should hence not be used for larger
files. (Use
<code class="filename">/var/tmp</code> for
larger files.) Since the directory is
accessible to other users of the
system it is essential that this
directory is only written to with the
<a href="mkstemp.html"><span class="citerefentry"><span class="refentrytitle">mkstemp</span>(3)</span></a>,
<a href="mkdtemp.html"><span class="citerefentry"><span class="refentrytitle">mkdtemp</span>(3)</span></a>
and related calls. This directory is
usually flushed at boot-up. Also,
files that are not accessed within a
certain time are usually automatically
deleted. If applications find the
environment variable
<code class="varname">$TMPDIR</code> set they
should prefer using the directory
specified in it over directly
referencing
<code class="filename">/tmp</code> (see <a href="environ.html"><span class="citerefentry"><span class="refentrytitle">environ</span>(7)</span></a> for details).</p></dd></dl></div></div><div class="refsect1"><a name="idm214170719280"></a><h2 id="Runtime Data">Runtime Data<a class="headerlink" title="Permalink to this headline" href="#Runtime%20Data"></a></h2><div class="variablelist"><dl class="variablelist"><dt id="/run"><span class="term"><code class="filename">/run</code></span><a class="headerlink" title="Permalink to this term" href="#/run"></a></dt><dd><p>A
"<code class="literal">tmpfs</code>" file system
for system packages to place runtime
data in. This directory is flushed on
boot, and generally writable for
privileged programs
only. Always writable.</p></dd><dt id="/run/log"><span class="term"><code class="filename">/run/log</code></span><a class="headerlink" title="Permalink to this term" href="#/run/log"></a></dt><dd><p>Runtime system
logs. System components may place
private logs in this directory. Always
writable, even when
<code class="filename">/var/log</code> might
not be accessible
yet.</p></dd><dt id="/run/user"><span class="term"><code class="filename">/run/user</code></span><a class="headerlink" title="Permalink to this term" href="#/run/user"></a></dt><dd><p>Contains per-user
runtime directories, each usually
individually mounted
"<code class="literal">tmpfs</code>"
instances. Always writable, flushed at
each reboot and when the user logs
out. User code should not reference
this directory directly, but via the
<code class="varname">$XDG_RUNTIME_DIR</code>
environment variable, as documented in
the <a class="ulink" href="http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html" target="_top">XDG
Base Directory
Specification</a>.</p></dd></dl></div></div><div class="refsect1"><a name="idm214174010496"></a><h2 id="Vendor-supplied Operating System Resources">Vendor-supplied Operating System Resources<a class="headerlink" title="Permalink to this headline" href="#Vendor-supplied%20Operating%20System%20Resources"></a></h2><div class="variablelist"><dl class="variablelist"><dt id="/usr"><span class="term"><code class="filename">/usr</code></span><a class="headerlink" title="Permalink to this term" href="#/usr"></a></dt><dd><p>Vendor-supplied
operating system resources. Usually
read-only, but this is not
required. Possibly shared between
multiple hosts. This directory should
not be modified by the administrator,
except when installing or removing
vendor-supplied
packages.</p></dd><dt id="/usr/bin"><span class="term"><code class="filename">/usr/bin</code></span><a class="headerlink" title="Permalink to this term" href="#/usr/bin"></a></dt><dd><p>Binaries and
executables for user commands, that
shall appear in the
<code class="varname">$PATH</code> search
path. It is recommended not to place
binaries in this directory that are
not useful for invocation from a shell
(such as daemon binaries); these
should be placed in a subdirectory of
<code class="filename">/usr/lib</code>
instead.</p></dd><dt id="/usr/include"><span class="term"><code class="filename">/usr/include</code></span><a class="headerlink" title="Permalink to this term" href="#/usr/include"></a></dt><dd><p>C and C++ API header
files of system
libraries.</p></dd><dt id="/usr/lib"><span class="term"><code class="filename">/usr/lib</code></span><a class="headerlink" title="Permalink to this term" href="#/usr/lib"></a></dt><dd><p>Static, private vendor
data that is compatible with all
architectures (though not necessarily
architecture-independent). Note that
this includes internal executables or
other binaries that are not regularly
invoked from a shell. Such binaries
may be for any architecture supported
by the system. Do not place public
libraries in this directory, use
<code class="varname">$libdir</code> (see
below), instead.</p></dd><dt id="/usr/lib/arch-id"><span class="term"><code class="filename">/usr/lib/<em class="replaceable"><code>arch-id</code></em></code></span><a class="headerlink" title="Permalink to this term" href="#/usr/lib/arch-id"></a></dt><dd><p>Location for placing
dynamic libraries, also called <code class="varname">$libdir</code>.
The architecture identifier to use is defined on <a class="ulink" href="https://wiki.debian.org/Multiarch/Tuples" target="_top">Multiarch Architecture Specifiers (Tuples)</a>
list. Legacy locations of <code class="varname">$libdir</code> are
<code class="filename">/usr/lib</code>,
<code class="filename">/usr/lib64</code>.
This directory should not
be used for package-specific data,
unless this data is
architecture-dependent, too. To query
<code class="varname">$libdir</code> for the
primary architecture of the system,
invoke:
</p><pre class="programlisting"># pkg-config --variable=libdir systemd</pre><p> or
</p><pre class="programlisting"># systemd-path system-library-arch</pre><p>
</p></dd><dt id="/usr/share"><span class="term"><code class="filename">/usr/share</code></span><a class="headerlink" title="Permalink to this term" href="#/usr/share"></a></dt><dd><p>Resources shared
between multiple packages, such as
documentation, man pages, time zone
information, fonts and other
resources. Usually, the precise
location and format of files stored
below this directory is subject to
specifications that ensure
interoperability.</p></dd><dt id="/usr/share/doc"><span class="term"><code class="filename">/usr/share/doc</code></span><a class="headerlink" title="Permalink to this term" href="#/usr/share/doc"></a></dt><dd><p>Documentation for the
operating system or system
packages.</p></dd><dt id="/usr/share/factory/etc"><span class="term"><code class="filename">/usr/share/factory/etc</code></span><a class="headerlink" title="Permalink to this term" href="#/usr/share/factory/etc"></a></dt><dd><p>Repository for
vendor-supplied default configuration
files. This directory should be
populated with pristine vendor versions
of all configuration files that may be
placed in
<code class="filename">/etc</code>. This is
useful to compare the local
configuration of a system with vendor
defaults and to populate the local
configuration with
defaults.</p></dd><dt id="/usr/share/factory/var"><span class="term"><code class="filename">/usr/share/factory/var</code></span><a class="headerlink" title="Permalink to this term" href="#/usr/share/factory/var"></a></dt><dd><p>Similar to
<code class="filename">/usr/share/factory/etc</code>
but for vendor versions of files in
the variable, persistent data
directory
<code class="filename">/var</code>.</p></dd></dl></div></div><div class="refsect1"><a name="idm214171094480"></a><h2 id="Persistent Variable System Data">Persistent Variable System Data<a class="headerlink" title="Permalink to this headline" href="#Persistent%20Variable%20System%20Data"></a></h2><div class="variablelist"><dl class="variablelist"><dt id="/var"><span class="term"><code class="filename">/var</code></span><a class="headerlink" title="Permalink to this term" href="#/var"></a></dt><dd><p>Persistent, variable
system data. Must be writable. This
directory might be pre-populated with
vendor-supplied data, but applications
should be able to reconstruct
necessary files and directories in
this subhierarchy should they be
missing, as the system might start up
without this directory being
populated. Persistency is recommended,
but optional, to support ephemeral
systems. This directory might become
available or writable only very late
during boot. Components that are
required to operate during early boot
hence shall not unconditionally rely
on this directory.</p></dd><dt id="/var/cache"><span class="term"><code class="filename">/var/cache</code></span><a class="headerlink" title="Permalink to this term" href="#/var/cache"></a></dt><dd><p>Persistent system
cache data. System components may
place non-essential data in this
directory. Flushing this directory
should have no effect on operation of
programs, except for increased
runtimes necessary to rebuild these
caches.</p></dd><dt id="/var/lib"><span class="term"><code class="filename">/var/lib</code></span><a class="headerlink" title="Permalink to this term" href="#/var/lib"></a></dt><dd><p>Persistent system
data. System components may
place private data in this
directory.</p></dd><dt id="/var/log"><span class="term"><code class="filename">/var/log</code></span><a class="headerlink" title="Permalink to this term" href="#/var/log"></a></dt><dd><p>Persistent system
logs. System components may place
private logs in this directory, though
it is recommended to do most logging
via the
<a href="syslog.html"><span class="citerefentry"><span class="refentrytitle">syslog</span>(3)</span></a>
and
<a href="sd_journal_print.html"><span class="citerefentry"><span class="refentrytitle">sd_journal_print</span>(3)</span></a>
calls.</p></dd><dt id="/var/spool"><span class="term"><code class="filename">/var/spool</code></span><a class="headerlink" title="Permalink to this term" href="#/var/spool"></a></dt><dd><p>Persistent system
spool data, such as printer or mail
queues.</p></dd><dt id="/var/tmp"><span class="term"><code class="filename">/var/tmp</code></span><a class="headerlink" title="Permalink to this term" href="#/var/tmp"></a></dt><dd><p>The place for larger
and persistent temporary files. In
contrast to <code class="filename">/tmp</code>
this directory is usually mounted from
a persistent physical file system and
can thus accept larger files. (Use
<code class="filename">/tmp</code> for smaller
files.) This directory is generally
not flushed at boot-up, but time-based
cleanup of files that have not been
accessed for a certain time is
applied. The same security
restrictions as with
<code class="filename">/tmp</code> apply, and
hence only
<a href="mkstemp.html"><span class="citerefentry"><span class="refentrytitle">mkstemp</span>(3)</span></a>,
<a href="mkdtemp.html"><span class="citerefentry"><span class="refentrytitle">mkdtemp</span>(3)</span></a>
or similar calls should be used to
make use of this directory. If
applications find the environment
variable <code class="varname">$TMPDIR</code>
set they should prefer using the
directory specified in it over
directly referencing
<code class="filename">/var/tmp</code> (see <a href="environ.html"><span class="citerefentry"><span class="refentrytitle">environ</span>(7)</span></a> for details).
</p></dd></dl></div></div><div class="refsect1"><a name="idm214172285296"></a><h2 id="Virtual Kernel and API File Systems">Virtual Kernel and API File Systems<a class="headerlink" title="Permalink to this headline" href="#Virtual%20Kernel%20and%20API%20File%20Systems"></a></h2><div class="variablelist"><dl class="variablelist"><dt id="/dev"><span class="term"><code class="filename">/dev</code></span><a class="headerlink" title="Permalink to this term" href="#/dev"></a></dt><dd><p>The root directory for
device nodes. Usually this directory
is mounted as a
"<code class="literal">devtmpfs</code>" instance,
but might be of a different type in
sandboxed/containerized setups. This
directory is managed jointly by the
kernel and
<a href="systemd-udevd.html"><span class="citerefentry"><span class="refentrytitle">systemd-udevd</span>(8)</span></a>,
and should not be written to by other
components. A number of special
purpose virtual file systems might be
mounted below this
directory.</p></dd><dt id="/dev/shm"><span class="term"><code class="filename">/dev/shm</code></span><a class="headerlink" title="Permalink to this term" href="#/dev/shm"></a></dt><dd><p>Place for POSIX shared
memory segments, as created via
<a href="shm_open.html"><span class="citerefentry"><span class="refentrytitle">shm_open</span>(3)</span></a>. This
directory is flushed on boot, and is a
"<code class="literal">tmpfs</code>" file
system. Since all users have write
access to this directory, special care
should be taken to avoid name clashes
and vulnerabilities. For normal users,
shared memory segments in this
directory are usually deleted when the
user logs out. Usually it is a better
idea to use memory mapped files in
<code class="filename">/run</code> (for system
programs) or
<code class="varname">$XDG_RUNTIME_DIR</code>
(for user programs) instead of POSIX
shared memory segments, since those
directories are not world-writable and
hence not vulnerable to
security-sensitive name
clashes.</p></dd><dt id="/proc"><span class="term"><code class="filename">/proc</code></span><a class="headerlink" title="Permalink to this term" href="#/proc"></a></dt><dd><p>A virtual kernel file
system exposing the process list and
other functionality. This file system
is mostly an API to interface with the
kernel and not a place where normal
files may be stored. For details, see
<a href="proc.html"><span class="citerefentry"><span class="refentrytitle">proc</span>(5)</span></a>. A
number of special purpose virtual file
systems might be mounted below this
directory.</p></dd><dt id="/proc/sys"><span class="term"><code class="filename">/proc/sys</code></span><a class="headerlink" title="Permalink to this term" href="#/proc/sys"></a></dt><dd><p>A hierarchy below
<code class="filename">/proc</code> that
exposes a number of kernel
tunables. The primary way to configure
the settings in this API file tree is
via
<a href="sysctl.d.html"><span class="citerefentry"><span class="refentrytitle">sysctl.d</span>(5)</span></a>
files. In sandboxed/containerized
setups this directory is generally
mounted read-only.</p></dd><dt id="/sys"><span class="term"><code class="filename">/sys</code></span><a class="headerlink" title="Permalink to this term" href="#/sys"></a></dt><dd><p>A virtual kernel file
system exposing discovered devices and
other functionality. This file system
is mostly an API to interface with the
kernel and not a place where normal
files may be stored. In
sandboxed/containerized setups this
directory is generally mounted
read-only. A number of special purpose
virtual file systems might be mounted
below this
directory.</p></dd></dl></div></div><div class="refsect1"><a name="idm214170710752"></a><h2 id="Compatibility Symlinks">Compatibility Symlinks<a class="headerlink" title="Permalink to this headline" href="#Compatibility%20Symlinks"></a></h2><div class="variablelist"><dl class="variablelist"><dt id="/bin"><span class="term"><code class="filename">/bin</code>, </span><span class="term"><code class="filename">/sbin</code>, </span><span class="term"><code class="filename">/usr/sbin</code></span><a class="headerlink" title="Permalink to this term" href="#/bin"></a></dt><dd><p>These compatibility
symlinks point to
<code class="filename">/usr/bin</code>,
ensuring that scripts and binaries
referencing these legacy paths
correctly find their binaries.</p></dd><dt id="/lib"><span class="term"><code class="filename">/lib</code></span><a class="headerlink" title="Permalink to this term" href="#/lib"></a></dt><dd><p>This compatibility
symlink points to
<code class="filename">/usr/lib</code>,
ensuring that programs referencing
this legacy path correctly find
their resources.</p></dd><dt id="/lib64"><span class="term"><code class="filename">/lib64</code></span><a class="headerlink" title="Permalink to this term" href="#/lib64"></a></dt><dd><p>On some architecture
ABIs this compatibility symlink points
to <code class="varname">$libdir</code>,
ensuring that binaries referencing
this legacy path correctly find their
dynamic loader. This symlink only
exists on architectures whose ABI
places the dynamic loader in this
path.</p></dd><dt id="/var/run"><span class="term"><code class="filename">/var/run</code></span><a class="headerlink" title="Permalink to this term" href="#/var/run"></a></dt><dd><p>This compatibility
symlink points to
<code class="filename">/run</code>, ensuring
that programs referencing this legacy
path correctly find their runtime
data.</p></dd></dl></div></div><div class="refsect1"><a name="idm214172491616"></a><h2 id="Home Directory">Home Directory<a class="headerlink" title="Permalink to this headline" href="#Home%20Directory"></a></h2><p>User applications may want to place files and
directories in the user's home directory. They should
follow the following basic structure. Note that some
of these directories are also standardized (though
more weakly) by the <a class="ulink" href="http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html" target="_top">XDG
Base Directory Specification</a>. Additional
locations for high-level user resources are defined by
<a class="ulink" href="http://www.freedesktop.org/wiki/Software/xdg-user-dirs/" target="_top">xdg-user-dirs</a>.</p><div class="variablelist"><dl class="variablelist"><dt id="~/.cache"><span class="term"><code class="filename">~/.cache</code></span><a class="headerlink" title="Permalink to this term" href="#~/.cache"></a></dt><dd><p>Persistent user cache
data. User programs may place
non-essential data in this
directory. Flushing this directory
should have no effect on operation of
programs, except for increased
runtimes necessary to rebuild these
caches. If an application finds
<code class="varname">$XDG_CACHE_HOME</code> set
is should use the directory specified
in it instead of this
directory.</p></dd><dt id="~/.config"><span class="term"><code class="filename">~/.config</code></span><a class="headerlink" title="Permalink to this term" href="#~/.config"></a></dt><dd><p>Application
configuration and state. When a new
user is created this directory will be
empty or not exist at
all. Applications should fall back to
defaults should their configuration or
state in this directory be missing. If
an application finds
<code class="varname">$XDG_CONFIG_HOME</code> set
is should use the directory specified
in it instead of this
directory.</p></dd><dt id="~/.local/bin"><span class="term"><code class="filename">~/.local/bin</code></span><a class="headerlink" title="Permalink to this term" href="#~/.local/bin"></a></dt><dd><p>Executables that shall
appear in the user's
<code class="varname">$PATH</code> search
path. It is recommended not to place
executables in this directory that are
not useful for invocation from a
shell; these should be placed in a
subdirectory of
<code class="filename">~/.local/lib</code>
instead. Care should be taken when
placing architecture-dependent
binaries in this place which might be
problematic if the home directory is
shared between multiple hosts with
different
architectures.</p></dd><dt id="~/.local/lib"><span class="term"><code class="filename">~/.local/lib</code></span><a class="headerlink" title="Permalink to this term" href="#~/.local/lib"></a></dt><dd><p>Static, private vendor
data that is compatible with all
architectures.</p></dd><dt id="~/.local/lib/arch-id"><span class="term"><code class="filename">~/.local/lib/<em class="replaceable"><code>arch-id</code></em></code></span><a class="headerlink" title="Permalink to this term" href="#~/.local/lib/arch-id"></a></dt><dd><p>Location for placing
public dynamic libraries. The architecture
identifier to use, is defined on <a class="ulink" href="https://wiki.debian.org/Multiarch/Tuples" target="_top">Multiarch Architecture Specifiers (Tuples)</a>
list.</p></dd><dt id="~/.local/share"><span class="term"><code class="filename">~/.local/share</code></span><a class="headerlink" title="Permalink to this term" href="#~/.local/share"></a></dt><dd><p>Resources shared
between multiple packages, such as
fonts or artwork. Usually, the precise
location and format of files stored
below this directory is subject to
specifications that ensure
interoperability. If
an application finds
<code class="varname">$XDG_DATA_HOME</code> set
is should use the directory specified
in it instead of this
directory.</p></dd></dl></div></div><div class="refsect1"><a name="idm214175546688"></a><h2 id="Unprivileged Write Access">Unprivileged Write Access<a class="headerlink" title="Permalink to this headline" href="#Unprivileged%20Write%20Access"></a></h2><p>Unprivileged processes generally lack
write access to most of the hierarchy.</p><p>The exceptions for normal users are
<code class="filename">/tmp</code>,
<code class="filename">/var/tmp</code>,
<code class="filename">/dev/shm</code>, as well as the home
directory <code class="varname">$HOME</code> (usually found
below <code class="filename">/home</code>) and the runtime
directory <code class="varname">$XDG_RUNTIME_DIR</code> (found
below <code class="filename">/run/user</code>) of the
user, which are all writable.</p><p>For unprivileged system processes only
<code class="filename">/tmp</code>,
<code class="filename">/var/tmp</code> and
<code class="filename">/dev/shm</code> are writable. If an
unprivileged system process needs a private, writable
directory in <code class="filename">/var</code> or
<code class="filename">/run</code>, it is recommended to either
create it before dropping privileges in the daemon
code, to create it via
<a href="tmpfiles.d.html"><span class="citerefentry"><span class="refentrytitle">tmpfiles.d</span>(5)</span></a>
fragments during boot, or via the
<code class="varname">RuntimeDirectory=</code> directive of
service units (see
<a href="systemd.unit.html"><span class="citerefentry"><span class="refentrytitle">systemd.unit</span>(5)</span></a>
for details).</p></div><div class="refsect1"><a name="idm214173794992"></a><h2 id="Node Types">Node Types<a class="headerlink" title="Permalink to this headline" href="#Node%20Types"></a></h2><p>Unix file systems support different types of file
nodes, including regular files, directories, symlinks,
character and block device nodes, sockets and FIFOs.</p><p>It is strongly recommended that
<code class="filename">/dev</code> is the only location below
which device nodes shall be placed. Similar,
<code class="filename">/run</code> shall be the only location
to place sockets and FIFOs. Regular files,
directories and symlinks may be used in all
directories.</p></div><div class="refsect1"><a name="idm214173791552"></a><h2 id="System Packages">System Packages<a class="headerlink" title="Permalink to this headline" href="#System%20Packages"></a></h2><p>Developers of system packages should follow
strict rules when placing their own files in the file
system. The following table lists recommended
locations for specific types of files supplied by the
vendor.</p><div class="table"><a name="idm214173790208"></a><p class="title"><b>Table 1. System Package Vendor Files Locations</b></p><div class="table-contents"><table summary="System Package Vendor Files Locations" border="1"><colgroup><col align="left" class="directory"><col align="left" class="purpose"></colgroup><thead><tr><th align="left">Directory</th><th align="left">Purpose</th></tr></thead><tbody><tr><td align="left"><code class="filename">/usr/bin</code></td><td align="left">Package executables that shall appear in the <code class="varname">$PATH</code> executable search path, compiled for any of the supported architectures compatible with the operating system. It is not recommended to place internal binaries or binaries that are not commonly invoked from the shell in this directory, such as daemon binaries. As this directory is shared with most other packages of the system special care should be taken to pick unique names for files placed here, that are unlikely to clash with other package's files.</td></tr><tr><td align="left"><code class="filename">/usr/lib/<em class="replaceable"><code>arch-id</code></em></code></td><td align="left">Public shared libraries of the package. As above, be careful with using too generic names, and pick unique names for your libraries to place here to avoid name clashes.</td></tr><tr><td align="left"><code class="filename">/usr/lib/<em class="replaceable"><code>package</code></em></code></td><td align="left">Private, static vendor resources of the package, including private binaries and libraries, or any other kind of read-only vendor data.</td></tr><tr><td align="left"><code class="filename">/usr/lib/<em class="replaceable"><code>arch-id</code></em>/<em class="replaceable"><code>package</code></em></code></td><td align="left">Private other vendor resources of the package that are architecture-specific and cannot be shared between architectures. Note that this generally does not include private executables since binaries of a specific architecture may be freely invoked from any other supported system architecture.</td></tr><tr><td align="left"><code class="filename">/usr/include/<em class="replaceable"><code>package</code></em></code></td><td align="left">Public C/C++ APIs of public shared libraries of the package.</td></tr></tbody></table></div></div><br class="table-break"><p>Additional static vendor files may be installed
in the <code class="filename">/usr/share</code> hierarchy, to
the locations defined by the various relevant
specifications.</p><p>During runtime and for local configuration and
state additional directories are defined:</p><div class="table"><a name="idm214173772160"></a><p class="title"><b>Table 2. System Package Variable Files Locations</b></p><div class="table-contents"><table summary="System Package Variable Files Locations" border="1"><colgroup><col align="left" class="directory"><col align="left" class="purpose"></colgroup><thead><tr><th align="left">Directory</th><th align="left">Purpose</th></tr></thead><tbody><tr><td align="left"><code class="filename">/etc/<em class="replaceable"><code>package</code></em></code></td><td align="left">System-specific configuration for the package. It is recommended to default to safe fallbacks if this configuration is missing, if this is possible. Alternatively, a <a href="tmpfiles.d.html"><span class="citerefentry"><span class="refentrytitle">tmpfiles.d</span>(5)</span></a> fragment may be used to copy or symlink the necessary files and directories from <code class="filename">/usr/share/factory</code> during boot, via the "<code class="literal">L</code>" or "<code class="literal">C</code>" directives.</td></tr><tr><td align="left"><code class="filename">/run/<em class="replaceable"><code>package</code></em></code></td><td align="left">Runtime data for the package. Packages must be able to create the necessary subdirectories in this tree on their own, since the directory is flushed automatically on boot. Alternatively, a <a href="tmpfiles.d.html"><span class="citerefentry"><span class="refentrytitle">tmpfiles.d</span>(5)</span></a> fragment may be used to create the necessary directories during boot. Alternatively, the <code class="varname">RuntimeDirectory=</code> directive of service units may be used (see <a href="systemd.unit.html"><span class="citerefentry"><span class="refentrytitle">systemd.unit</span>(5)</span></a> for details.)</td></tr><tr><td align="left"><code class="filename">/run/log/<em class="replaceable"><code>package</code></em></code></td><td align="left">Runtime log data for the package. As above, the package needs to make sure to create this directory if necessary, as it will be flushed on every boot.</td></tr><tr><td align="left"><code class="filename">/var/cache/<em class="replaceable"><code>package</code></em></code></td><td align="left">Persistent cache data of the package. If this directory is flushed the application should work correctly on next invocation, though possibly slowed down due to the need to rebuild any local cache files. The application must be capable of recreating this directory should it be missing and necessary.</td></tr><tr><td align="left"><code class="filename">/var/lib/<em class="replaceable"><code>package</code></em></code></td><td align="left">Persistent private data of the package. This is the primary place to put persistent data that does not fall into the other categories listed. Packages should be able to create the necessary subdirectories in this tree on their own, since the directory might be missing on boot. Alternatively, a <a href="tmpfiles.d.html"><span class="citerefentry"><span class="refentrytitle">tmpfiles.d</span>(5)</span></a> fragment may be used to create the necessary directories during boot.</td></tr><tr><td align="left"><code class="filename">/var/log/<em class="replaceable"><code>package</code></em></code></td><td align="left">Persistent log data of the package. As above, the package should make sure to create this directory if necessary, as it might be missing.</td></tr><tr><td align="left"><code class="filename">/var/spool/<em class="replaceable"><code>package</code></em></code></td><td align="left">Persistent spool/queue data of the package. As above, the package should make sure to create this directory if necessary, as it might be missing.</td></tr></tbody></table></div></div><br class="table-break"></div><div class="refsect1"><a name="idm214173746304"></a><h2 id="User Packages">User Packages<a class="headerlink" title="Permalink to this headline" href="#User%20Packages"></a></h2><p>Programs running in user context should follow
strict rules when placing their own files in the
user's home directory. The following table lists
recommended locations in the home directory for
specific types of files supplied by the vendor if the
application is installed in the home directory. (Note
however, that user applications installed system-wide
should follow the rules outlined above regarding
placing vendor files.)</p><div class="table"><a name="idm214173744672"></a><p class="title"><b>Table 3. User Package Vendor File Locations</b></p><div class="table-contents"><table summary="User Package Vendor File Locations" border="1"><colgroup><col align="left" class="directory"><col align="left" class="purpose"></colgroup><thead><tr><th align="left">Directory</th><th align="left">Purpose</th></tr></thead><tbody><tr><td align="left"><code class="filename">~/.local/bin</code></td><td align="left">Package executables that shall appear in the <code class="varname">$PATH</code> executable search path. It is not recommended to place internal executables or executables that are not commonly invoked from the shell in this directory, such as daemon executables. As this directory is shared with most other packages of the user special care should be taken to pick unique names for files placed here, that are unlikely to clash with other package's files.</td></tr><tr><td align="left"><code class="filename">~/.local/lib/<em class="replaceable"><code>arch-id</code></em></code></td><td align="left">Public shared libraries of the package. As above, be careful with using too generic names, and pick unique names for your libraries to place here to avoid name clashes.</td></tr><tr><td align="left"><code class="filename">~/.local/lib/<em class="replaceable"><code>package</code></em></code></td><td align="left">Private, static vendor resources of the package, compatible wih any architecture, or any other kind of read-only vendor data.</td></tr><tr><td align="left"><code class="filename">~/.local/lib/<em class="replaceable"><code>arch-id</code></em>/<em class="replaceable"><code>package</code></em></code></td><td align="left">Private other vendor resources of the package that are architecture-specific and cannot be shared between architectures.</td></tr></tbody></table></div></div><br class="table-break"><p>Additional static vendor files may be installed
in the <code class="filename">~/.local/share</code> hierarchy,
to the locations defined by the various relevant
specifications.</p><p>During runtime and for local configuration and
state additional directories are defined:</p><div class="table"><a name="idm214173728816"></a><p class="title"><b>Table 4. User Package Variable File Locations</b></p><div class="table-contents"><table summary="User Package Variable File Locations" border="1"><colgroup><col align="left" class="directory"><col align="left" class="purpose"></colgroup><thead><tr><th align="left">Directory</th><th align="left">Purpose</th></tr></thead><tbody><tr><td align="left"><code class="filename">~/.config/<em class="replaceable"><code>package</code></em></code></td><td align="left">User-specific configuration and state for the package. It is required to default to safe fallbacks if this configuration is missing.</td></tr><tr><td align="left"><code class="filename"><code class="varname">$XDG_RUNTIME_DIR</code>/<em class="replaceable"><code>package</code></em></code></td><td align="left">User runtime data for the package.</td></tr><tr><td align="left"><code class="filename">~/.cache/<em class="replaceable"><code>package</code></em></code></td><td align="left">Persistent cache data of the package. If this directory is flushed the application should work correctly on next invocation, though possibly slowed down due to the need to rebuild any local cache files. The application must be capable of recreating this directory should it be missing and necessary.</td></tr></tbody></table></div></div><br class="table-break"></div><div class="refsect1"><a name="idm214173717072"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="hier.html"><span class="citerefentry"><span class="refentrytitle">hier</span>(7)</span></a>,
<a href="systemd-path.html"><span class="citerefentry"><span class="refentrytitle">systemd-path</span>(1)</span></a>,
<a href="systemd-efi-boot-generator.html"><span class="citerefentry"><span class="refentrytitle">systemd-efi-boot-generator</span>(8)</span></a>,
<a href="sysctl.d.html"><span class="citerefentry"><span class="refentrytitle">sysctl.d</span>(5)</span></a>,
<a href="tmpfiles.d.html"><span class="citerefentry"><span class="refentrytitle">tmpfiles.d</span>(5)</span></a>,
<a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a>,
<a href="systemd.unit.html"><span class="citerefentry"><span class="refentrytitle">systemd.unit</span>(5)</span></a>
</p></div></div></body></html>

975
man/file-hierarchy.xml Normal file
View File

@ -0,0 +1,975 @@
<?xml version='1.0'?> <!--*-nxml-*-->
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<!--
This file is part of systemd.
Copyright 2014 Lennart Poettering
systemd is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
systemd is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with systemd; If not, see <http://www.gnu.org/licenses/>.
-->
<refentry id="file-hierarchy">
<refentryinfo>
<title>file-hierarchy</title>
<productname>systemd</productname>
<authorgroup>
<author>
<contrib>Developer</contrib>
<firstname>Lennart</firstname>
<surname>Poettering</surname>
<email>lennart@poettering.net</email>
</author>
</authorgroup>
</refentryinfo>
<refmeta>
<refentrytitle>file-hierarchy</refentrytitle>
<manvolnum>7</manvolnum>
</refmeta>
<refnamediv>
<refname>file-hierarchy</refname>
<refpurpose>File system hierarchy overview</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<para>Operating systems using the
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>
system and service manager are organized based on a
file system hierarchy inspired by UNIX, more
specifically the hierarchy described in the <ulink
url="http://refspecs.linuxfoundation.org/FHS_2.3/fhs-2.3.html">File
System Hierarchy</ulink> specification and
<citerefentry><refentrytitle>hier</refentrytitle><manvolnum>7</manvolnum></citerefentry>. This
manual page describes a more minimal, modernized
subset of these specifications that defines more
strictly the suggestions and restrictions systemd
makes on the file system hierarchy.</para>
<para>Many of the paths described here are queriable
with the
<citerefentry><refentrytitle>systemd-path</refentrytitle><manvolnum>1</manvolnum></citerefentry>
tool.</para>
</refsect1>
<refsect1>
<title>General Structure</title>
<variablelist>
<varlistentry>
<term><filename>/</filename></term>
<listitem><para>The file system
root. Usually writable, but this is
not required. Possibly a temporary
file system (<literal>tmpfs</literal>). Not shared with
other hosts (unless read-only).
</para></listitem>
</varlistentry>
<varlistentry>
<term><filename>/boot</filename></term>
<listitem><para>The boot partition
used for bringing up the system. On
EFI systems this is possibly the EFI
System Partition, also see
<citerefentry><refentrytitle>systemd-efi-boot-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry>. This
directory is usually strictly local
to the host, and should be considered
read-only, except when a new kernel or
boot loader is installed. This
directory only exists on systems that
run on physical or emulated hardware
that requires boot
loaders.</para></listitem>
</varlistentry>
<varlistentry>
<term><filename>/etc</filename></term>
<listitem><para>System-specific
configuration. This directory may or
may not be read-only. Frequently, this
directory is pre-populated with
vendor-supplied configuration files,
but applications should not make
assumptions about this directory
being fully populated or populated at
all, and should fall back to defaults
if configuration is missing.</para></listitem>
</varlistentry>
<varlistentry>
<term><filename>/home</filename></term>
<listitem><para>The location for
normal user's home
directories. Possibly shared with
other systems, and never
read-only. This directory should only
be used for normal users, never for
system users. This directory and
possibly the directories contained
within it might only become available
or writable in late boot or even only
after user authentication. This directory
might be placed on limited-functionality
network file systems, hence
applications should not assume the
full set of file API is available on
this directory. Applications should
generally not reference this directory
directly, but via the per-user
<varname>$HOME</varname> environment
variable, or via the home directory
field of the user
database.</para></listitem>
</varlistentry>
<varlistentry>
<term><filename>/root</filename></term>
<listitem><para>The home directory of
the root user. The root user's home
directory is located outside of
<filename>/home</filename> in order to
make sure the root user may log in
even without <filename>/home</filename>
being available and
mounted.</para></listitem>
</varlistentry>
<varlistentry>
<term><filename>/srv</filename></term>
<listitem><para>The place to store
general server payload, managed by the
administrator. No restrictions are
made how this directory is organized
internally. Generally writable, and
possibly shared among systems. This
directory might become available or
writable only very late during
boot.</para></listitem>
</varlistentry>
<varlistentry>
<term><filename>/tmp</filename></term>
<listitem><para>The place for small
temporary files. This directory is
usually mounted as
a <literal>tmpfs</literal> instance, and
should hence not be used for larger
files. (Use
<filename>/var/tmp</filename> for
larger files.) Since the directory is
accessible to other users of the
system it is essential that this
directory is only written to with the
<citerefentry><refentrytitle>mkstemp</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
<citerefentry><refentrytitle>mkdtemp</refentrytitle><manvolnum>3</manvolnum></citerefentry>
and related calls. This directory is
usually flushed at boot-up. Also,
files that are not accessed within a
certain time are usually automatically
deleted. If applications find the
environment variable
<varname>$TMPDIR</varname> set they
should prefer using the directory
specified in it over directly
referencing
<filename>/tmp</filename> (see <citerefentry><refentrytitle>environ</refentrytitle><manvolnum>7</manvolnum></citerefentry> for details).</para></listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title>Runtime Data</title>
<variablelist>
<varlistentry>
<term><filename>/run</filename></term>
<listitem><para>A
<literal>tmpfs</literal> file system
for system packages to place runtime
data in. This directory is flushed on
boot, and generally writable for
privileged programs
only. Always writable.</para></listitem>
</varlistentry>
<varlistentry>
<term><filename>/run/log</filename></term>
<listitem><para>Runtime system
logs. System components may place
private logs in this directory. Always
writable, even when
<filename>/var/log</filename> might
not be accessible
yet.</para></listitem>
</varlistentry>
<varlistentry>
<term><filename>/run/user</filename></term>
<listitem><para>Contains per-user
runtime directories, each usually
individually mounted
<literal>tmpfs</literal>
instances. Always writable, flushed at
each reboot and when the user logs
out. User code should not reference
this directory directly, but via the
<varname>$XDG_RUNTIME_DIR</varname>
environment variable, as documented in
the <ulink
url="http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html">XDG
Base Directory
Specification</ulink>.</para></listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title>Vendor-supplied Operating System Resources</title>
<variablelist>
<varlistentry>
<term><filename>/usr</filename></term>
<listitem><para>Vendor-supplied
operating system resources. Usually
read-only, but this is not
required. Possibly shared between
multiple hosts. This directory should
not be modified by the administrator,
except when installing or removing
vendor-supplied
packages.</para></listitem>
</varlistentry>
<varlistentry>
<term><filename>/usr/bin</filename></term>
<listitem><para>Binaries and
executables for user commands, that
shall appear in the
<varname>$PATH</varname> search
path. It is recommended not to place
binaries in this directory that are
not useful for invocation from a shell
(such as daemon binaries); these
should be placed in a subdirectory of
<filename>/usr/lib</filename>
instead.</para></listitem>
</varlistentry>
<varlistentry>
<term><filename>/usr/include</filename></term>
<listitem><para>C and C++ API header
files of system
libraries.</para></listitem>
</varlistentry>
<varlistentry>
<term><filename>/usr/lib</filename></term>
<listitem><para>Static, private vendor
data that is compatible with all
architectures (though not necessarily
architecture-independent). Note that
this includes internal executables or
other binaries that are not regularly
invoked from a shell. Such binaries
may be for any architecture supported
by the system. Do not place public
libraries in this directory, use
<varname>$libdir</varname> (see
below), instead.</para></listitem>
</varlistentry>
<varlistentry>
<term><filename>/usr/lib/<replaceable>arch-id</replaceable></filename></term>
<listitem><para>Location for placing
dynamic libraries, also called <varname>$libdir</varname>.
The architecture identifier to use is defined on <ulink
url="https://wiki.debian.org/Multiarch/Tuples">Multiarch Architecture Specifiers (Tuples)</ulink>
list. Legacy locations of <varname>$libdir</varname> are
<filename>/usr/lib</filename>,
<filename>/usr/lib64</filename>.
This directory should not
be used for package-specific data,
unless this data is
architecture-dependent, too. To query
<varname>$libdir</varname> for the
primary architecture of the system,
invoke:
<programlisting># pkg-config --variable=libdir systemd</programlisting> or
<programlisting># systemd-path system-library-arch</programlisting>
</para></listitem>
</varlistentry>
<varlistentry>
<term><filename>/usr/share</filename></term>
<listitem><para>Resources shared
between multiple packages, such as
documentation, man pages, time zone
information, fonts and other
resources. Usually, the precise
location and format of files stored
below this directory is subject to
specifications that ensure
interoperability.</para></listitem>
</varlistentry>
<varlistentry>
<term><filename>/usr/share/doc</filename></term>
<listitem><para>Documentation for the
operating system or system
packages.</para></listitem>
</varlistentry>
<varlistentry>
<term><filename>/usr/share/factory/etc</filename></term>
<listitem><para>Repository for
vendor-supplied default configuration
files. This directory should be
populated with pristine vendor versions
of all configuration files that may be
placed in
<filename>/etc</filename>. This is
useful to compare the local
configuration of a system with vendor
defaults and to populate the local
configuration with
defaults.</para></listitem>
</varlistentry>
<varlistentry>
<term><filename>/usr/share/factory/var</filename></term>
<listitem><para>Similar to
<filename>/usr/share/factory/etc</filename>
but for vendor versions of files in
the variable, persistent data
directory
<filename>/var</filename>.</para></listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title>Persistent Variable System Data</title>
<variablelist>
<varlistentry>
<term><filename>/var</filename></term>
<listitem><para>Persistent, variable
system data. Must be writable. This
directory might be pre-populated with
vendor-supplied data, but applications
should be able to reconstruct
necessary files and directories in
this subhierarchy should they be
missing, as the system might start up
without this directory being
populated. Persistency is recommended,
but optional, to support ephemeral
systems. This directory might become
available or writable only very late
during boot. Components that are
required to operate during early boot
hence shall not unconditionally rely
on this directory.</para></listitem>
</varlistentry>
<varlistentry>
<term><filename>/var/cache</filename></term>
<listitem><para>Persistent system
cache data. System components may
place non-essential data in this
directory. Flushing this directory
should have no effect on operation of
programs, except for increased
runtimes necessary to rebuild these
caches.</para></listitem>
</varlistentry>
<varlistentry>
<term><filename>/var/lib</filename></term>
<listitem><para>Persistent system
data. System components may
place private data in this
directory.</para></listitem>
</varlistentry>
<varlistentry>
<term><filename>/var/log</filename></term>
<listitem><para>Persistent system
logs. System components may place
private logs in this directory, though
it is recommended to do most logging
via the
<citerefentry><refentrytitle>syslog</refentrytitle><manvolnum>3</manvolnum></citerefentry>
and
<citerefentry><refentrytitle>sd_journal_print</refentrytitle><manvolnum>3</manvolnum></citerefentry>
calls.</para></listitem>
</varlistentry>
<varlistentry>
<term><filename>/var/spool</filename></term>
<listitem><para>Persistent system
spool data, such as printer or mail
queues.</para></listitem>
</varlistentry>
<varlistentry>
<term><filename>/var/tmp</filename></term>
<listitem><para>The place for larger
and persistent temporary files. In
contrast to <filename>/tmp</filename>
this directory is usually mounted from
a persistent physical file system and
can thus accept larger files. (Use
<filename>/tmp</filename> for smaller
files.) This directory is generally
not flushed at boot-up, but time-based
cleanup of files that have not been
accessed for a certain time is
applied. The same security
restrictions as with
<filename>/tmp</filename> apply, and
hence only
<citerefentry><refentrytitle>mkstemp</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
<citerefentry><refentrytitle>mkdtemp</refentrytitle><manvolnum>3</manvolnum></citerefentry>
or similar calls should be used to
make use of this directory. If
applications find the environment
variable <varname>$TMPDIR</varname>
set they should prefer using the
directory specified in it over
directly referencing
<filename>/var/tmp</filename> (see <citerefentry><refentrytitle>environ</refentrytitle><manvolnum>7</manvolnum></citerefentry> for details).
</para></listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title>Virtual Kernel and API File Systems</title>
<variablelist>
<varlistentry>
<term><filename>/dev</filename></term>
<listitem><para>The root directory for
device nodes. Usually this directory
is mounted as a
<literal>devtmpfs</literal> instance,
but might be of a different type in
sandboxed/containerized setups. This
directory is managed jointly by the
kernel and
<citerefentry><refentrytitle>systemd-udevd</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
and should not be written to by other
components. A number of special
purpose virtual file systems might be
mounted below this
directory.</para></listitem>
</varlistentry>
<varlistentry>
<term><filename>/dev/shm</filename></term>
<listitem><para>Place for POSIX shared
memory segments, as created via
<citerefentry><refentrytitle>shm_open</refentrytitle><manvolnum>3</manvolnum></citerefentry>. This
directory is flushed on boot, and is a
<literal>tmpfs</literal> file
system. Since all users have write
access to this directory, special care
should be taken to avoid name clashes
and vulnerabilities. For normal users,
shared memory segments in this
directory are usually deleted when the
user logs out. Usually it is a better
idea to use memory mapped files in
<filename>/run</filename> (for system
programs) or
<varname>$XDG_RUNTIME_DIR</varname>
(for user programs) instead of POSIX
shared memory segments, since those
directories are not world-writable and
hence not vulnerable to
security-sensitive name
clashes.</para></listitem>
</varlistentry>
<varlistentry>
<term><filename>/proc</filename></term>
<listitem><para>A virtual kernel file
system exposing the process list and
other functionality. This file system
is mostly an API to interface with the
kernel and not a place where normal
files may be stored. For details, see
<citerefentry><refentrytitle>proc</refentrytitle><manvolnum>5</manvolnum></citerefentry>. A
number of special purpose virtual file
systems might be mounted below this
directory.</para></listitem>
</varlistentry>
<varlistentry>
<term><filename>/proc/sys</filename></term>
<listitem><para>A hierarchy below
<filename>/proc</filename> that
exposes a number of kernel
tunables. The primary way to configure
the settings in this API file tree is
via
<citerefentry><refentrytitle>sysctl.d</refentrytitle><manvolnum>5</manvolnum></citerefentry>
files. In sandboxed/containerized
setups this directory is generally
mounted read-only.</para></listitem>
</varlistentry>
<varlistentry>
<term><filename>/sys</filename></term>
<listitem><para>A virtual kernel file
system exposing discovered devices and
other functionality. This file system
is mostly an API to interface with the
kernel and not a place where normal
files may be stored. In
sandboxed/containerized setups this
directory is generally mounted
read-only. A number of special purpose
virtual file systems might be mounted
below this
directory.</para></listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title>Compatibility Symlinks</title>
<variablelist>
<varlistentry>
<term><filename>/bin</filename></term>
<term><filename>/sbin</filename></term>
<term><filename>/usr/sbin</filename></term>
<listitem><para>These compatibility
symlinks point to
<filename>/usr/bin</filename>,
ensuring that scripts and binaries
referencing these legacy paths
correctly find their binaries.</para></listitem>
</varlistentry>
<varlistentry>
<term><filename>/lib</filename></term>
<listitem><para>This compatibility
symlink points to
<filename>/usr/lib</filename>,
ensuring that programs referencing
this legacy path correctly find
their resources.</para></listitem>
</varlistentry>
<varlistentry>
<term><filename>/lib64</filename></term>
<listitem><para>On some architecture
ABIs this compatibility symlink points
to <varname>$libdir</varname>,
ensuring that binaries referencing
this legacy path correctly find their
dynamic loader. This symlink only
exists on architectures whose ABI
places the dynamic loader in this
path.</para></listitem>
</varlistentry>
<varlistentry>
<term><filename>/var/run</filename></term>
<listitem><para>This compatibility
symlink points to
<filename>/run</filename>, ensuring
that programs referencing this legacy
path correctly find their runtime
data.</para></listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title>Home Directory</title>
<para>User applications may want to place files and
directories in the user's home directory. They should
follow the following basic structure. Note that some
of these directories are also standardized (though
more weakly) by the <ulink
url="http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html">XDG
Base Directory Specification</ulink>. Additional
locations for high-level user resources are defined by
<ulink
url="http://www.freedesktop.org/wiki/Software/xdg-user-dirs/">xdg-user-dirs</ulink>.</para>
<variablelist>
<varlistentry>
<term><filename>~/.cache</filename></term>
<listitem><para>Persistent user cache
data. User programs may place
non-essential data in this
directory. Flushing this directory
should have no effect on operation of
programs, except for increased
runtimes necessary to rebuild these
caches. If an application finds
<varname>$XDG_CACHE_HOME</varname> set
is should use the directory specified
in it instead of this
directory.</para></listitem>
</varlistentry>
<varlistentry>
<term><filename>~/.config</filename></term>
<listitem><para>Application
configuration and state. When a new
user is created this directory will be
empty or not exist at
all. Applications should fall back to
defaults should their configuration or
state in this directory be missing. If
an application finds
<varname>$XDG_CONFIG_HOME</varname> set
is should use the directory specified
in it instead of this
directory.</para></listitem>
</varlistentry>
<varlistentry>
<term><filename>~/.local/bin</filename></term>
<listitem><para>Executables that shall
appear in the user's
<varname>$PATH</varname> search
path. It is recommended not to place
executables in this directory that are
not useful for invocation from a
shell; these should be placed in a
subdirectory of
<filename>~/.local/lib</filename>
instead. Care should be taken when
placing architecture-dependent
binaries in this place which might be
problematic if the home directory is
shared between multiple hosts with
different
architectures.</para></listitem>
</varlistentry>
<varlistentry>
<term><filename>~/.local/lib</filename></term>
<listitem><para>Static, private vendor
data that is compatible with all
architectures.</para></listitem>
</varlistentry>
<varlistentry>
<term><filename>~/.local/lib/<replaceable>arch-id</replaceable></filename></term>
<listitem><para>Location for placing
public dynamic libraries. The architecture
identifier to use, is defined on <ulink
url="https://wiki.debian.org/Multiarch/Tuples">Multiarch Architecture Specifiers (Tuples)</ulink>
list.</para></listitem>
</varlistentry>
<varlistentry>
<term><filename>~/.local/share</filename></term>
<listitem><para>Resources shared
between multiple packages, such as
fonts or artwork. Usually, the precise
location and format of files stored
below this directory is subject to
specifications that ensure
interoperability. If
an application finds
<varname>$XDG_DATA_HOME</varname> set
is should use the directory specified
in it instead of this
directory.</para></listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title>Unprivileged Write Access</title>
<para>Unprivileged processes generally lack
write access to most of the hierarchy.</para>
<para>The exceptions for normal users are
<filename>/tmp</filename>,
<filename>/var/tmp</filename>,
<filename>/dev/shm</filename>, as well as the home
directory <varname>$HOME</varname> (usually found
below <filename>/home</filename>) and the runtime
directory <varname>$XDG_RUNTIME_DIR</varname> (found
below <filename>/run/user</filename>) of the
user, which are all writable.</para>
<para>For unprivileged system processes only
<filename>/tmp</filename>,
<filename>/var/tmp</filename> and
<filename>/dev/shm</filename> are writable. If an
unprivileged system process needs a private, writable
directory in <filename>/var</filename> or
<filename>/run</filename>, it is recommended to either
create it before dropping privileges in the daemon
code, to create it via
<citerefentry><refentrytitle>tmpfiles.d</refentrytitle><manvolnum>5</manvolnum></citerefentry>
fragments during boot, or via the
<varname>RuntimeDirectory=</varname> directive of
service units (see
<citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>
for details).</para>
</refsect1>
<refsect1>
<title>Node Types</title>
<para>Unix file systems support different types of file
nodes, including regular files, directories, symlinks,
character and block device nodes, sockets and FIFOs.</para>
<para>It is strongly recommended that
<filename>/dev</filename> is the only location below
which device nodes shall be placed. Similar,
<filename>/run</filename> shall be the only location
to place sockets and FIFOs. Regular files,
directories and symlinks may be used in all
directories.</para>
</refsect1>
<refsect1>
<title>System Packages</title>
<para>Developers of system packages should follow
strict rules when placing their own files in the file
system. The following table lists recommended
locations for specific types of files supplied by the
vendor.</para>
<table>
<title>System Package Vendor Files Locations</title>
<tgroup cols='2' align='left' colsep='1' rowsep='1'>
<colspec colname="directory" />
<colspec colname="purpose" />
<thead>
<row>
<entry>Directory</entry>
<entry>Purpose</entry>
</row>
</thead>
<tbody>
<row>
<entry><filename>/usr/bin</filename></entry>
<entry>Package executables that shall appear in the <varname>$PATH</varname> executable search path, compiled for any of the supported architectures compatible with the operating system. It is not recommended to place internal binaries or binaries that are not commonly invoked from the shell in this directory, such as daemon binaries. As this directory is shared with most other packages of the system special care should be taken to pick unique names for files placed here, that are unlikely to clash with other package's files.</entry>
</row>
<row>
<entry><filename>/usr/lib/<replaceable>arch-id</replaceable></filename></entry>
<entry>Public shared libraries of the package. As above, be careful with using too generic names, and pick unique names for your libraries to place here to avoid name clashes.</entry>
</row>
<row>
<entry><filename>/usr/lib/<replaceable>package</replaceable></filename></entry>
<entry>Private, static vendor resources of the package, including private binaries and libraries, or any other kind of read-only vendor data.</entry>
</row>
<row>
<entry><filename>/usr/lib/<replaceable>arch-id</replaceable>/<replaceable>package</replaceable></filename></entry>
<entry>Private other vendor resources of the package that are architecture-specific and cannot be shared between architectures. Note that this generally does not include private executables since binaries of a specific architecture may be freely invoked from any other supported system architecture.</entry>
</row>
<row>
<entry><filename>/usr/include/<replaceable>package</replaceable></filename></entry>
<entry>Public C/C++ APIs of public shared libraries of the package.</entry>
</row>
</tbody>
</tgroup>
</table>
<para>Additional static vendor files may be installed
in the <filename>/usr/share</filename> hierarchy, to
the locations defined by the various relevant
specifications.</para>
<para>During runtime and for local configuration and
state additional directories are defined:</para>
<table>
<title>System Package Variable Files Locations</title>
<tgroup cols='2' align='left' colsep='1' rowsep='1'>
<colspec colname="directory" />
<colspec colname="purpose" />
<thead>
<row>
<entry>Directory</entry>
<entry>Purpose</entry>
</row>
</thead>
<tbody>
<row>
<entry><filename>/etc/<replaceable>package</replaceable></filename></entry>
<entry>System-specific configuration for the package. It is recommended to default to safe fallbacks if this configuration is missing, if this is possible. Alternatively, a <citerefentry><refentrytitle>tmpfiles.d</refentrytitle><manvolnum>5</manvolnum></citerefentry> fragment may be used to copy or symlink the necessary files and directories from <filename>/usr/share/factory</filename> during boot, via the <literal>L</literal> or <literal>C</literal> directives.</entry>
</row>
<row>
<entry><filename>/run/<replaceable>package</replaceable></filename></entry>
<entry>Runtime data for the package. Packages must be able to create the necessary subdirectories in this tree on their own, since the directory is flushed automatically on boot. Alternatively, a <citerefentry><refentrytitle>tmpfiles.d</refentrytitle><manvolnum>5</manvolnum></citerefentry> fragment may be used to create the necessary directories during boot. Alternatively, the <varname>RuntimeDirectory=</varname> directive of service units may be used (see <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry> for details.)</entry>
</row>
<row>
<entry><filename>/run/log/<replaceable>package</replaceable></filename></entry>
<entry>Runtime log data for the package. As above, the package needs to make sure to create this directory if necessary, as it will be flushed on every boot.</entry>
</row>
<row>
<entry><filename>/var/cache/<replaceable>package</replaceable></filename></entry>
<entry>Persistent cache data of the package. If this directory is flushed the application should work correctly on next invocation, though possibly slowed down due to the need to rebuild any local cache files. The application must be capable of recreating this directory should it be missing and necessary.</entry>
</row>
<row>
<entry><filename>/var/lib/<replaceable>package</replaceable></filename></entry>
<entry>Persistent private data of the package. This is the primary place to put persistent data that does not fall into the other categories listed. Packages should be able to create the necessary subdirectories in this tree on their own, since the directory might be missing on boot. Alternatively, a <citerefentry><refentrytitle>tmpfiles.d</refentrytitle><manvolnum>5</manvolnum></citerefentry> fragment may be used to create the necessary directories during boot.</entry>
</row>
<row>
<entry><filename>/var/log/<replaceable>package</replaceable></filename></entry>
<entry>Persistent log data of the package. As above, the package should make sure to create this directory if necessary, as it might be missing.</entry>
</row>
<row>
<entry><filename>/var/spool/<replaceable>package</replaceable></filename></entry>
<entry>Persistent spool/queue data of the package. As above, the package should make sure to create this directory if necessary, as it might be missing.</entry>
</row>
</tbody>
</tgroup>
</table>
</refsect1>
<refsect1>
<title>User Packages</title>
<para>Programs running in user context should follow
strict rules when placing their own files in the
user's home directory. The following table lists
recommended locations in the home directory for
specific types of files supplied by the vendor if the
application is installed in the home directory. (Note
however, that user applications installed system-wide
should follow the rules outlined above regarding
placing vendor files.)</para>
<table>
<title>User Package Vendor File Locations</title>
<tgroup cols='2' align='left' colsep='1' rowsep='1'>
<colspec colname="directory" />
<colspec colname="purpose" />
<thead>
<row>
<entry>Directory</entry>
<entry>Purpose</entry>
</row>
</thead>
<tbody>
<row>
<entry><filename>~/.local/bin</filename></entry>
<entry>Package executables that shall appear in the <varname>$PATH</varname> executable search path. It is not recommended to place internal executables or executables that are not commonly invoked from the shell in this directory, such as daemon executables. As this directory is shared with most other packages of the user special care should be taken to pick unique names for files placed here, that are unlikely to clash with other package's files.</entry>
</row>
<row>
<entry><filename>~/.local/lib/<replaceable>arch-id</replaceable></filename></entry>
<entry>Public shared libraries of the package. As above, be careful with using too generic names, and pick unique names for your libraries to place here to avoid name clashes.</entry>
</row>
<row>
<entry><filename>~/.local/lib/<replaceable>package</replaceable></filename></entry>
<entry>Private, static vendor resources of the package, compatible wih any architecture, or any other kind of read-only vendor data.</entry>
</row>
<row>
<entry><filename>~/.local/lib/<replaceable>arch-id</replaceable>/<replaceable>package</replaceable></filename></entry>
<entry>Private other vendor resources of the package that are architecture-specific and cannot be shared between architectures.</entry>
</row>
</tbody>
</tgroup>
</table>
<para>Additional static vendor files may be installed
in the <filename>~/.local/share</filename> hierarchy,
to the locations defined by the various relevant
specifications.</para>
<para>During runtime and for local configuration and
state additional directories are defined:</para>
<table>
<title>User Package Variable File Locations</title>
<tgroup cols='2' align='left' colsep='1' rowsep='1'>
<colspec colname="directory" />
<colspec colname="purpose" />
<thead>
<row>
<entry>Directory</entry>
<entry>Purpose</entry>
</row>
</thead>
<tbody>
<row>
<entry><filename>~/.config/<replaceable>package</replaceable></filename></entry>
<entry>User-specific configuration and state for the package. It is required to default to safe fallbacks if this configuration is missing.</entry>
</row>
<row>
<entry><filename><varname>$XDG_RUNTIME_DIR</varname>/<replaceable>package</replaceable></filename></entry>
<entry>User runtime data for the package.</entry>
</row>
<row>
<entry><filename>~/.cache/<replaceable>package</replaceable></filename></entry>
<entry>Persistent cache data of the package. If this directory is flushed the application should work correctly on next invocation, though possibly slowed down due to the need to rebuild any local cache files. The application must be capable of recreating this directory should it be missing and necessary.</entry>
</row>
</tbody>
</tgroup>
</table>
</refsect1>
<refsect1>
<title>See Also</title>
<para>
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
<citerefentry><refentrytitle>hier</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
<citerefentry><refentrytitle>systemd-path</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
<citerefentry><refentrytitle>systemd-efi-boot-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
<citerefentry><refentrytitle>sysctl.d</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
<citerefentry><refentrytitle>tmpfiles.d</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
<citerefentry><refentrytitle>pkg-config</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
<citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>
</para>
</refsect1>
</refentry>

View File

@ -1,5 +1,5 @@
'\" t '\" t
.TH "HALT" "8" "" "systemd 214" "halt" .TH "HALT" "8" "" "systemd 215" "halt"
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * Define some portability stuff .\" * Define some portability stuff
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------

View File

@ -19,10 +19,10 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="halt"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>halt, poweroff, reboot — Halt, power-off or reboot the machine</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">halt [OPTIONS...]</code> </p></div><div class="cmdsynopsis"><p><code class="command">poweroff [OPTIONS...]</code> </p></div><div class="cmdsynopsis"><p><code class="command">reboot [OPTIONS...]</code> </p></div></div><div class="refsect1"><a name="idm214181158752"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><span class="command"><strong>halt</strong></span>, <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="halt"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>halt, poweroff, reboot — Halt, power-off or reboot the machine</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">halt [OPTIONS...]</code> </p></div><div class="cmdsynopsis"><p><code class="command">poweroff [OPTIONS...]</code> </p></div><div class="cmdsynopsis"><p><code class="command">reboot [OPTIONS...]</code> </p></div></div><div class="refsect1"><a name="idm214185642768"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><span class="command"><strong>halt</strong></span>,
<span class="command"><strong>poweroff</strong></span>, <span class="command"><strong>reboot</strong></span> <span class="command"><strong>poweroff</strong></span>, <span class="command"><strong>reboot</strong></span>
may be used to halt, power-off or reboot the may be used to halt, power-off or reboot the
machine.</p></div><div class="refsect1"><a name="idm214181155552"></a><h2 id="Options">Options<a class="headerlink" title="Permalink to this headline" href="#Options"></a></h2><p>The following options are understood:</p><div class="variablelist"><dl class="variablelist"><dt id="--help"><span class="term"><code class="option">--help</code></span><a class="headerlink" title="Permalink to this term" href="#--help"></a></dt><dd><p><a name="help-text"></a>Print a short help text and exit. machine.</p></div><div class="refsect1"><a name="idm214186089440"></a><h2 id="Options">Options<a class="headerlink" title="Permalink to this headline" href="#Options"></a></h2><p>The following options are understood:</p><div class="variablelist"><dl class="variablelist"><dt id="--help"><span class="term"><code class="option">--help</code></span><a class="headerlink" title="Permalink to this term" href="#--help"></a></dt><dd><p><a name="help-text"></a>Print a short help text and exit.
</p></dd><dt id="--halt"><span class="term"><code class="option">--halt</code></span><a class="headerlink" title="Permalink to this term" href="#--halt"></a></dt><dd><p>Halt the machine, </p></dd><dt id="--halt"><span class="term"><code class="option">--halt</code></span><a class="headerlink" title="Permalink to this term" href="#--halt"></a></dt><dd><p>Halt the machine,
regardless of which one of the three regardless of which one of the three
commands is invoked.</p></dd><dt id="-p"><span class="term"><code class="option">-p</code>, </span><span class="term"><code class="option">--poweroff</code></span><a class="headerlink" title="Permalink to this term" href="#-p"></a></dt><dd><p>Power-off the machine, commands is invoked.</p></dd><dt id="-p"><span class="term"><code class="option">-p</code>, </span><span class="term"><code class="option">--poweroff</code></span><a class="headerlink" title="Permalink to this term" href="#-p"></a></dt><dd><p>Power-off the machine,
@ -36,9 +36,9 @@
power-off, reboot.</p></dd><dt id="-d"><span class="term"><code class="option">-d</code>, </span><span class="term"><code class="option">--no-wtmp</code></span><a class="headerlink" title="Permalink to this term" href="#-d"></a></dt><dd><p>Do not write wtmp power-off, reboot.</p></dd><dt id="-d"><span class="term"><code class="option">-d</code>, </span><span class="term"><code class="option">--no-wtmp</code></span><a class="headerlink" title="Permalink to this term" href="#-d"></a></dt><dd><p>Do not write wtmp
shutdown entry.</p></dd><dt id="--no-wall"><span class="term"><code class="option">--no-wall</code></span><a class="headerlink" title="Permalink to this term" href="#--no-wall"></a></dt><dd><p>Do not send wall shutdown entry.</p></dd><dt id="--no-wall"><span class="term"><code class="option">--no-wall</code></span><a class="headerlink" title="Permalink to this term" href="#--no-wall"></a></dt><dd><p>Do not send wall
message before message before
halt, power-off, reboot.</p></dd></dl></div></div><div class="refsect1"><a name="idm214185040240"></a><h2 id="Exit status">Exit status<a class="headerlink" title="Permalink to this headline" href="#Exit%20status"></a></h2><p>On success, 0 is returned, a non-zero failure halt, power-off, reboot.</p></dd></dl></div></div><div class="refsect1"><a name="idm214183375264"></a><h2 id="Exit status">Exit status<a class="headerlink" title="Permalink to this headline" href="#Exit%20status"></a></h2><p>On success, 0 is returned, a non-zero failure
code otherwise.</p></div><div class="refsect1"><a name="idm214185039056"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p>These are legacy commands available for code otherwise.</p></div><div class="refsect1"><a name="idm214184284480"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes"></a></h2><p>These are legacy commands available for
compatibility only.</p></div><div class="refsect1"><a name="idm214185037776"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> compatibility only.</p></div><div class="refsect1"><a name="idm214184877296"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="systemctl.html"><span class="citerefentry"><span class="refentrytitle">systemctl</span>(1)</span></a>, <a href="systemctl.html"><span class="citerefentry"><span class="refentrytitle">systemctl</span>(1)</span></a>,
<a href="shutdown.html"><span class="citerefentry"><span class="refentrytitle">shutdown</span>(8)</span></a>, <a href="shutdown.html"><span class="citerefentry"><span class="refentrytitle">shutdown</span>(8)</span></a>,

View File

@ -1,5 +1,5 @@
'\" t '\" t
.TH "HOSTNAME" "5" "" "systemd 214" "hostname" .TH "HOSTNAME" "5" "" "systemd 215" "hostname"
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * Define some portability stuff .\" * Define some portability stuff
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------

View File

@ -19,7 +19,7 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="hostname"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>hostname — Local hostname configuration file</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><p><code class="filename">/etc/hostname</code></p></div><div class="refsect1"><a name="idm214180664576"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p>The <code class="filename">/etc/hostname</code> file <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="hostname"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>hostname — Local hostname configuration file</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><p><code class="filename">/etc/hostname</code></p></div><div class="refsect1"><a name="idm214180092048"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p>The <code class="filename">/etc/hostname</code> file
configures the name of the local system that is set configures the name of the local system that is set
during boot using the during boot using the
<a href="sethostname.html"><span class="citerefentry"><span class="refentrytitle">sethostname</span>(2)</span></a> <a href="sethostname.html"><span class="citerefentry"><span class="refentrytitle">sethostname</span>(2)</span></a>
@ -35,9 +35,9 @@
of the hostname as well, however only as fallback.</p><p>You may use of the hostname as well, however only as fallback.</p><p>You may use
<a href="hostnamectl.html"><span class="citerefentry"><span class="refentrytitle">hostnamectl</span>(1)</span></a> <a href="hostnamectl.html"><span class="citerefentry"><span class="refentrytitle">hostnamectl</span>(1)</span></a>
to change the value of this file from the command to change the value of this file from the command
line.</p></div><div class="refsect1"><a name="idm214180659472"></a><h2 id="History">History<a class="headerlink" title="Permalink to this headline" href="#History"></a></h2><p>The simple configuration file format of line.</p></div><div class="refsect1"><a name="idm214181007760"></a><h2 id="History">History<a class="headerlink" title="Permalink to this headline" href="#History"></a></h2><p>The simple configuration file format of
<code class="filename">/etc/hostname</code> originates from <code class="filename">/etc/hostname</code> originates from
Debian GNU/Linux.</p></div><div class="refsect1"><a name="idm214180657712"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> Debian GNU/Linux.</p></div><div class="refsect1"><a name="idm214180591920"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="sethostname.html"><span class="citerefentry"><span class="refentrytitle">sethostname</span>(2)</span></a>, <a href="sethostname.html"><span class="citerefentry"><span class="refentrytitle">sethostname</span>(2)</span></a>,
<a href="hostname.html"><span class="citerefentry"><span class="refentrytitle">hostname</span>(1)</span></a>, <a href="hostname.html"><span class="citerefentry"><span class="refentrytitle">hostname</span>(1)</span></a>,

View File

@ -1,5 +1,5 @@
'\" t '\" t
.TH "HOSTNAMECTL" "1" "" "systemd 214" "hostnamectl" .TH "HOSTNAMECTL" "1" "" "systemd 215" "hostnamectl"
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * Define some portability stuff .\" * Define some portability stuff
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
@ -29,7 +29,7 @@ hostnamectl \- Control the system hostname
\fBhostnamectl\fR \fBhostnamectl\fR
may be used to query and change the system hostname and related settings\&. may be used to query and change the system hostname and related settings\&.
.PP .PP
This tool distinguishes three different hostnames: the high\-level "pretty" hostname which might include all kinds of special characters (e\&.g\&. "Lennart\*(Aqs Laptop"), the static hostname which is used to initialize the kernel hostname at boot (e\&.g\&. "lennarts\-laptop"), and the transient hostname which is a default received from network configuration\&. If a static hostname is set, and is valid (something other than localhost) then the transient hostname is not used\&. This tool distinguishes three different hostnames: the high\-level "pretty" hostname which might include all kinds of special characters (e\&.g\&. "Lennart\*(Aqs Laptop"), the static hostname which is used to initialize the kernel hostname at boot (e\&.g\&. "lennarts\-laptop"), and the transient hostname which is a default received from network configuration\&. If a static hostname is set, and is valid (something other than localhost), then the transient hostname is not used\&.
.PP .PP
Note that the pretty hostname has little restrictions on the characters used, while the static and transient hostnames are limited to the usually accepted characters of Internet domain names\&. Note that the pretty hostname has little restrictions on the characters used, while the static and transient hostnames are limited to the usually accepted characters of Internet domain names\&.
.PP .PP
@ -67,8 +67,10 @@ If used with
.PP .PP
\fB\-H\fR, \fB\-\-host=\fR \fB\-H\fR, \fB\-\-host=\fR
.RS 4 .RS 4
Execute the operation remotely\&. Specify a hostname, or username and hostname separated by Execute the operation remotely\&. Specify a hostname, or a username and hostname separated by
"@", to connect to\&. This will use SSH to talk to the remote machine manager instance\&. "@", to connect to\&. The hostname may optionally be suffixed by a container name, separated by
":", which connects directly to a specific container on the specified host\&. This will use SSH to talk to the remote machine manager instance\&. Container names may be enumerated with
\fBmachinectl \-H \fR\fB\fIHOST\fR\fR\&.
.RE .RE
.PP .PP
\fB\-h\fR, \fB\-\-help\fR \fB\-h\fR, \fB\-\-help\fR

View File

@ -19,7 +19,7 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="hostnamectl"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>hostnamectl — Control the system hostname</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">hostnamectl</code> [OPTIONS...] {COMMAND}</p></div></div><div class="refsect1"><a name="idm214193019328"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><span class="command"><strong>hostnamectl</strong></span> may be used to <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="hostnamectl"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>hostnamectl — Control the system hostname</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">hostnamectl</code> [OPTIONS...] {COMMAND}</p></div></div><div class="refsect1"><a name="idm214197136464"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><span class="command"><strong>hostnamectl</strong></span> may be used to
query and change the system hostname and related query and change the system hostname and related
settings.</p><p>This tool distinguishes three different settings.</p><p>This tool distinguishes three different
hostnames: the high-level "pretty" hostname which hostnames: the high-level "pretty" hostname which
@ -29,7 +29,7 @@
(e.g. "lennarts-laptop"), and the transient hostname (e.g. "lennarts-laptop"), and the transient hostname
which is a default received from network configuration. which is a default received from network configuration.
If a static hostname is set, and is valid (something other If a static hostname is set, and is valid (something other
than localhost) then the transient hostname is not used.</p><p>Note that the pretty hostname has little than localhost), then the transient hostname is not used.</p><p>Note that the pretty hostname has little
restrictions on the characters used, while the static restrictions on the characters used, while the static
and transient hostnames are limited to the usually and transient hostnames are limited to the usually
accepted characters of Internet domain names.</p><p>The static hostname is stored in accepted characters of Internet domain names.</p><p>The static hostname is stored in
@ -38,7 +38,7 @@
for more information. The pretty hostname, chassis for more information. The pretty hostname, chassis
type, and icon name are stored in type, and icon name are stored in
<code class="filename">/etc/machine-info</code>, see <code class="filename">/etc/machine-info</code>, see
<a href="machine-id.html"><span class="citerefentry"><span class="refentrytitle">machine-id</span>(5)</span></a>.</p></div><div class="refsect1"><a name="idm214189203776"></a><h2 id="Options">Options<a class="headerlink" title="Permalink to this headline" href="#Options"></a></h2><p>The following options are understood:</p><div class="variablelist"><dl class="variablelist"><dt id="--no-ask-password"><span class="term"><code class="option">--no-ask-password</code></span><a class="headerlink" title="Permalink to this term" href="#--no-ask-password"></a></dt><dd><p>Do not query the user <a href="machine-id.html"><span class="citerefentry"><span class="refentrytitle">machine-id</span>(5)</span></a>.</p></div><div class="refsect1"><a name="idm214193390992"></a><h2 id="Options">Options<a class="headerlink" title="Permalink to this headline" href="#Options"></a></h2><p>The following options are understood:</p><div class="variablelist"><dl class="variablelist"><dt id="--no-ask-password"><span class="term"><code class="option">--no-ask-password</code></span><a class="headerlink" title="Permalink to this term" href="#--no-ask-password"></a></dt><dd><p>Do not query the user
for authentication for privileged for authentication for privileged
operations.</p></dd><dt id="-P"><span class="term"><code class="option">-P</code>, </span><span class="term"><code class="option">--privileged</code></span><a class="headerlink" title="Permalink to this term" href="#-P"></a></dt><dd><p>Acquire privileges via PolicyKit operations.</p></dd><dt id="-P"><span class="term"><code class="option">-P</code>, </span><span class="term"><code class="option">--privileged</code></span><a class="headerlink" title="Permalink to this term" href="#-P"></a></dt><dd><p>Acquire privileges via PolicyKit
before executing the operation.</p></dd><dt id="--static"><span class="term"><code class="option">--static</code>, </span><span class="term"><code class="option">--transient</code>, </span><span class="term"><code class="option">--pretty</code></span><a class="headerlink" title="Permalink to this term" href="#--static"></a></dt><dd><p>If before executing the operation.</p></dd><dt id="--static"><span class="term"><code class="option">--static</code>, </span><span class="term"><code class="option">--transient</code>, </span><span class="term"><code class="option">--pretty</code></span><a class="headerlink" title="Permalink to this term" href="#--static"></a></dt><dd><p>If
@ -53,10 +53,15 @@
updated. When more than one of those updated. When more than one of those
options is used, all the specified options is used, all the specified
hostnames will be updated. hostnames will be updated.
</p></dd><dt id="-H"><span class="term"><code class="option">-H</code>, </span><span class="term"><code class="option">--host=</code></span><a class="headerlink" title="Permalink to this term" href="#-H"></a></dt><dd><p><a name="host-text"></a>Execute the operation remotely. Specify a hostname, or </p></dd><dt id="-H"><span class="term"><code class="option">-H</code>, </span><span class="term"><code class="option">--host=</code></span><a class="headerlink" title="Permalink to this term" href="#-H"></a></dt><dd><p><a name="host-text"></a>Execute the operation remotely. Specify a hostname, or a
username and hostname separated by "<code class="literal">@</code>", to username and hostname separated by "<code class="literal">@</code>", to
connect to. This will use SSH to talk to the remote machine connect to. The hostname may optionally be suffixed by a
manager instance.</p></dd><dt id="-h"><span class="term"><code class="option">-h</code>, </span><span class="term"><code class="option">--help</code></span><a class="headerlink" title="Permalink to this term" href="#-h"></a></dt><dd><p><a name="help-text"></a>Print a short help text and exit. container name, separated by "<code class="literal">:</code>", which
connects directly to a specific container on the specified
host. This will use SSH to talk to the remote machine manager
instance. Container names may be enumerated with
<span class="command"><strong>machinectl -H
<em class="replaceable"><code>HOST</code></em></strong></span>.</p></dd><dt id="-h"><span class="term"><code class="option">-h</code>, </span><span class="term"><code class="option">--help</code></span><a class="headerlink" title="Permalink to this term" href="#-h"></a></dt><dd><p><a name="help-text"></a>Print a short help text and exit.
</p></dd><dt id="--version"><span class="term"><code class="option">--version</code></span><a class="headerlink" title="Permalink to this term" href="#--version"></a></dt><dd><p><a name="version-text"></a>Print a short version string and exit.</p></dd></dl></div><p>The following commands are understood:</p><div class="variablelist"><dl class="variablelist"><dt id="status"><span class="term"><span class="command"><strong>status</strong></span></span><a class="headerlink" title="Permalink to this term" href="#status"></a></dt><dd><p>Show current system </p></dd><dt id="--version"><span class="term"><code class="option">--version</code></span><a class="headerlink" title="Permalink to this term" href="#--version"></a></dt><dd><p><a name="version-text"></a>Print a short version string and exit.</p></dd></dl></div><p>The following commands are understood:</p><div class="variablelist"><dl class="variablelist"><dt id="status"><span class="term"><span class="command"><strong>status</strong></span></span><a class="headerlink" title="Permalink to this term" href="#status"></a></dt><dd><p>Show current system
hostname and related hostname and related
information.</p></dd><dt id="set-hostname [NAME]"><span class="term"><span class="command"><strong>set-hostname [NAME]</strong></span></span><a class="headerlink" title="Permalink to this term" href="#set-hostname%20%5BNAME%5D"></a></dt><dd><p>Set the system information.</p></dd><dt id="set-hostname [NAME]"><span class="term"><span class="command"><strong>set-hostname [NAME]</strong></span></span><a class="headerlink" title="Permalink to this term" href="#set-hostname%20%5BNAME%5D"></a></dt><dd><p>Set the system
@ -118,8 +123,8 @@
reset the chassis type to the default reset the chassis type to the default
value which is determined from the value which is determined from the
firmware and possibly other firmware and possibly other
parameters.</p></dd></dl></div></div><div class="refsect1"><a name="idm214193117216"></a><h2 id="Exit status">Exit status<a class="headerlink" title="Permalink to this headline" href="#Exit%20status"></a></h2><p>On success, 0 is returned, a non-zero failure parameters.</p></dd></dl></div></div><div class="refsect1"><a name="idm214197252416"></a><h2 id="Exit status">Exit status<a class="headerlink" title="Permalink to this headline" href="#Exit%20status"></a></h2><p>On success, 0 is returned, a non-zero failure
code otherwise.</p></div><div class="refsect1"><a name="idm214193116032"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> code otherwise.</p></div><div class="refsect1"><a name="idm214197251232"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="hostname.html"><span class="citerefentry"><span class="refentrytitle">hostname</span>(1)</span></a>, <a href="hostname.html"><span class="citerefentry"><span class="refentrytitle">hostname</span>(1)</span></a>,
<a href="hostname.html"><span class="citerefentry"><span class="refentrytitle">hostname</span>(5)</span></a>, <a href="hostname.html"><span class="citerefentry"><span class="refentrytitle">hostname</span>(5)</span></a>,

View File

@ -71,7 +71,7 @@
(e.g. "lennarts-laptop"), and the transient hostname (e.g. "lennarts-laptop"), and the transient hostname
which is a default received from network configuration. which is a default received from network configuration.
If a static hostname is set, and is valid (something other If a static hostname is set, and is valid (something other
than localhost) then the transient hostname is not used.</para> than localhost), then the transient hostname is not used.</para>
<para>Note that the pretty hostname has little <para>Note that the pretty hostname has little
restrictions on the characters used, while the static restrictions on the characters used, while the static

File diff suppressed because one or more lines are too long

View File

@ -19,7 +19,7 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="systemd"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>systemd, init — systemd system and service manager</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">systemd [OPTIONS...]</code> </p></div><div class="cmdsynopsis"><p><code class="command">init [OPTIONS...] {COMMAND}</code> </p></div></div><div class="refsect1"><a name="idm214185400592"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p>systemd is a system and service manager for <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="systemd"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>systemd, init — systemd system and service manager</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">systemd [OPTIONS...]</code> </p></div><div class="cmdsynopsis"><p><code class="command">init [OPTIONS...] {COMMAND}</code> </p></div></div><div class="refsect1"><a name="idm214189898832"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p>systemd is a system and service manager for
Linux operating systems. When run as first process on Linux operating systems. When run as first process on
boot (as PID 1), it acts as init system that brings boot (as PID 1), it acts as init system that brings
up and maintains userspace services.</p><p>For compatibility with SysV, if systemd is called up and maintains userspace services.</p><p>For compatibility with SysV, if systemd is called
@ -34,7 +34,7 @@
<code class="filename">system.conf</code>, otherwise <code class="filename">system.conf</code>, otherwise
<code class="filename">user.conf</code>. See <code class="filename">user.conf</code>. See
<a href="systemd-system.conf.html"><span class="citerefentry"><span class="refentrytitle">systemd-system.conf</span>(5)</span></a> <a href="systemd-system.conf.html"><span class="citerefentry"><span class="refentrytitle">systemd-system.conf</span>(5)</span></a>
for more information.</p></div><div class="refsect1"><a name="idm214185392096"></a><h2 id="Options">Options<a class="headerlink" title="Permalink to this headline" href="#Options"></a></h2><p>The following options are understood:</p><div class="variablelist"><dl class="variablelist"><dt id="--test"><span class="term"><code class="option">--test</code></span><a class="headerlink" title="Permalink to this term" href="#--test"></a></dt><dd><p>Determine startup for more information.</p></div><div class="refsect1"><a name="idm214188084384"></a><h2 id="Options">Options<a class="headerlink" title="Permalink to this headline" href="#Options"></a></h2><p>The following options are understood:</p><div class="variablelist"><dl class="variablelist"><dt id="--test"><span class="term"><code class="option">--test</code></span><a class="headerlink" title="Permalink to this term" href="#--test"></a></dt><dd><p>Determine startup
sequence, dump it and exit. This is an sequence, dump it and exit. This is an
option useful for debugging option useful for debugging
only.</p></dd><dt id="--dump-configuration-items"><span class="term"><code class="option">--dump-configuration-items</code></span><a class="headerlink" title="Permalink to this term" href="#--dump-configuration-items"></a></dt><dd><p>Dump understood unit only.</p></dd><dt id="--dump-configuration-items"><span class="term"><code class="option">--dump-configuration-items</code></span><a class="headerlink" title="Permalink to this term" href="#--dump-configuration-items"></a></dt><dd><p>Dump understood unit
@ -131,7 +131,7 @@
<code class="option">--default-standard-error=</code> <code class="option">--default-standard-error=</code>
to to
<code class="option">inherit</code>.</p></dd><dt id="-h"><span class="term"><code class="option">-h</code>, </span><span class="term"><code class="option">--help</code></span><a class="headerlink" title="Permalink to this term" href="#-h"></a></dt><dd><p><a name="help-text"></a>Print a short help text and exit. <code class="option">inherit</code>.</p></dd><dt id="-h"><span class="term"><code class="option">-h</code>, </span><span class="term"><code class="option">--help</code></span><a class="headerlink" title="Permalink to this term" href="#-h"></a></dt><dd><p><a name="help-text"></a>Print a short help text and exit.
</p></dd><dt id="--version"><span class="term"><code class="option">--version</code></span><a class="headerlink" title="Permalink to this term" href="#--version"></a></dt><dd><p><a name="version-text"></a>Print a short version string and exit.</p></dd></dl></div></div><div class="refsect1"><a name="idm214186942512"></a><h2 id="Concepts">Concepts<a class="headerlink" title="Permalink to this headline" href="#Concepts"></a></h2><p>systemd provides a dependency system between </p></dd><dt id="--version"><span class="term"><code class="option">--version</code></span><a class="headerlink" title="Permalink to this term" href="#--version"></a></dt><dd><p><a name="version-text"></a>Print a short version string and exit.</p></dd></dl></div></div><div class="refsect1"><a name="idm214189143952"></a><h2 id="Concepts">Concepts<a class="headerlink" title="Permalink to this headline" href="#Concepts"></a></h2><p>systemd provides a dependency system between
various entities called "units" of 12 different various entities called "units" of 12 different
types. Units encapsulate various objects that are types. Units encapsulate various objects that are
relevant for system boot-up and maintenance. The relevant for system boot-up and maintenance. The
@ -304,7 +304,7 @@
or initrd environment should implement the or initrd environment should implement the
<a class="ulink" href="http://www.freedesktop.org/wiki/Software/systemd/ContainerInterface" target="_top">Container <a class="ulink" href="http://www.freedesktop.org/wiki/Software/systemd/ContainerInterface" target="_top">Container
Interface</a> or <a class="ulink" href="http://www.freedesktop.org/wiki/Software/systemd/InitrdInterface" target="_top">initrd Interface</a> or <a class="ulink" href="http://www.freedesktop.org/wiki/Software/systemd/InitrdInterface" target="_top">initrd
Interface</a> specifications, respectively.</p></div><div class="refsect1"><a name="idm214182266208"></a><h2 id="Directories">Directories<a class="headerlink" title="Permalink to this headline" href="#Directories"></a></h2><div class="variablelist"><dl class="variablelist"><dt id="System unit directories"><span class="term">System unit directories</span><a class="headerlink" title="Permalink to this term" href="#System%20unit%20directories"></a></dt><dd><p>The systemd system Interface</a> specifications, respectively.</p></div><div class="refsect1"><a name="idm214189453632"></a><h2 id="Directories">Directories<a class="headerlink" title="Permalink to this headline" href="#Directories"></a></h2><div class="variablelist"><dl class="variablelist"><dt id="System unit directories"><span class="term">System unit directories</span><a class="headerlink" title="Permalink to this term" href="#System%20unit%20directories"></a></dt><dd><p>The systemd system
manager reads unit configuration from manager reads unit configuration from
various directories. Packages that various directories. Packages that
want to install unit files shall place want to install unit files shall place
@ -368,7 +368,7 @@
unit with a native unit configuration unit with a native unit configuration
file cannot be started by activating it file cannot be started by activating it
in the SysV runlevel link in the SysV runlevel link
farm.</p></dd></dl></div></div><div class="refsect1"><a name="idm214182243984"></a><h2 id="Signals">Signals<a class="headerlink" title="Permalink to this headline" href="#Signals"></a></h2><div class="variablelist"><dl class="variablelist"><dt id="SIGTERM"><span class="term"><code class="constant">SIGTERM</code></span><a class="headerlink" title="Permalink to this term" href="#SIGTERM"></a></dt><dd><p>Upon receiving this farm.</p></dd></dl></div></div><div class="refsect1"><a name="idm214189693872"></a><h2 id="Signals">Signals<a class="headerlink" title="Permalink to this headline" href="#Signals"></a></h2><div class="variablelist"><dl class="variablelist"><dt id="SIGTERM"><span class="term"><code class="constant">SIGTERM</code></span><a class="headerlink" title="Permalink to this term" href="#SIGTERM"></a></dt><dd><p>Upon receiving this
signal the systemd system manager signal the systemd system manager
serializes its state, reexecutes serializes its state, reexecutes
itself and deserializes the saved itself and deserializes the saved
@ -486,7 +486,7 @@
<code class="varname">systemd.log_target=syslog-or-kmsg</code> <code class="varname">systemd.log_target=syslog-or-kmsg</code>
on <code class="constant">SIGRTMIN+29</code>) on on <code class="constant">SIGRTMIN+29</code>) on
the kernel command the kernel command
line.</p></dd></dl></div></div><div class="refsect1"><a name="idm214182175312"></a><h2 id="Environment">Environment<a class="headerlink" title="Permalink to this headline" href="#Environment"></a></h2><div class="variablelist"><dl class="variablelist"><dt id="$SYSTEMD_LOG_LEVEL"><span class="term"><code class="varname">$SYSTEMD_LOG_LEVEL</code></span><a class="headerlink" title="Permalink to this term" href="#%24SYSTEMD_LOG_LEVEL"></a></dt><dd><p>systemd reads the line.</p></dd></dl></div></div><div class="refsect1"><a name="idm214191284560"></a><h2 id="Environment">Environment<a class="headerlink" title="Permalink to this headline" href="#Environment"></a></h2><div class="variablelist"><dl class="variablelist"><dt id="$SYSTEMD_LOG_LEVEL"><span class="term"><code class="varname">$SYSTEMD_LOG_LEVEL</code></span><a class="headerlink" title="Permalink to this term" href="#%24SYSTEMD_LOG_LEVEL"></a></dt><dd><p>systemd reads the
log level from this environment log level from this environment
variable. This can be overridden with variable. This can be overridden with
<code class="option">--log-level=</code>.</p></dd><dt id="$SYSTEMD_LOG_TARGET"><span class="term"><code class="varname">$SYSTEMD_LOG_TARGET</code></span><a class="headerlink" title="Permalink to this term" href="#%24SYSTEMD_LOG_TARGET"></a></dt><dd><p>systemd reads the <code class="option">--log-level=</code>.</p></dd><dt id="$SYSTEMD_LOG_TARGET"><span class="term"><code class="varname">$SYSTEMD_LOG_TARGET</code></span><a class="headerlink" title="Permalink to this term" href="#%24SYSTEMD_LOG_TARGET"></a></dt><dd><p>systemd reads the
@ -518,9 +518,9 @@
start-up completion notification. See start-up completion notification. See
<a href="sd_notify.html"><span class="citerefentry"><span class="refentrytitle">sd_notify</span>(3)</span></a> <a href="sd_notify.html"><span class="citerefentry"><span class="refentrytitle">sd_notify</span>(3)</span></a>
for more information. for more information.
</p></dd></dl></div></div><div class="refsect1"><a name="idm214182151888"></a><h2 id="Kernel Command Line">Kernel Command Line<a class="headerlink" title="Permalink to this headline" href="#Kernel%20Command%20Line"></a></h2><p>When run as system instance systemd parses a </p></dd></dl></div></div><div class="refsect1"><a name="idm214191260432"></a><h2 id="Kernel Command Line">Kernel Command Line<a class="headerlink" title="Permalink to this headline" href="#Kernel%20Command%20Line"></a></h2><p>When run as system instance systemd parses a
number of kernel command line number of kernel command line
arguments<a href="#ftn.idm214182150864" class="footnote" name="idm214182150864"><sup class="footnote">[1]</sup></a>:</p><div class="variablelist"><dl class="variablelist"><dt id="systemd.unit="><span class="term"><code class="varname">systemd.unit=</code>, </span><span class="term"><code class="varname">rd.systemd.unit=</code></span><a class="headerlink" title="Permalink to this term" href="#systemd.unit="></a></dt><dd><p>Overrides the unit to arguments<a href="#ftn.idm214191259376" class="footnote" name="idm214191259376"><sup class="footnote">[1]</sup></a>:</p><div class="variablelist"><dl class="variablelist"><dt id="systemd.unit="><span class="term"><code class="varname">systemd.unit=</code>, </span><span class="term"><code class="varname">rd.systemd.unit=</code></span><a class="headerlink" title="Permalink to this term" href="#systemd.unit="></a></dt><dd><p>Overrides the unit to
activate on boot. Defaults to activate on boot. Defaults to
<code class="filename">default.target</code>. This <code class="filename">default.target</code>. This
may be used to temporarily boot into a may be used to temporarily boot into a
@ -626,7 +626,7 @@
</p></dd></dl></div><p>For other kernel command line parameters </p></dd></dl></div><p>For other kernel command line parameters
understood by components of the core OS, please refer understood by components of the core OS, please refer
to to
<a href="kernel-command-line.html"><span class="citerefentry"><span class="refentrytitle">kernel-command-line</span>(7)</span></a>.</p></div><div class="refsect1"><a name="idm214182090736"></a><h2 id="Sockets and FIFOs">Sockets and FIFOs<a class="headerlink" title="Permalink to this headline" href="#Sockets%20and%20FIFOs"></a></h2><div class="variablelist"><dl class="variablelist"><dt id="/run/systemd/notify"><span class="term"><code class="filename">/run/systemd/notify</code></span><a class="headerlink" title="Permalink to this term" href="#/run/systemd/notify"></a></dt><dd><p>Daemon status <a href="kernel-command-line.html"><span class="citerefentry"><span class="refentrytitle">kernel-command-line</span>(7)</span></a>.</p></div><div class="refsect1"><a name="idm214187977552"></a><h2 id="Sockets and FIFOs">Sockets and FIFOs<a class="headerlink" title="Permalink to this headline" href="#Sockets%20and%20FIFOs"></a></h2><div class="variablelist"><dl class="variablelist"><dt id="/run/systemd/notify"><span class="term"><code class="filename">/run/systemd/notify</code></span><a class="headerlink" title="Permalink to this term" href="#/run/systemd/notify"></a></dt><dd><p>Daemon status
notification socket. This is an notification socket. This is an
<code class="constant">AF_UNIX</code> datagram socket and is used to <code class="constant">AF_UNIX</code> datagram socket and is used to
implement the daemon notification implement the daemon notification
@ -649,7 +649,7 @@
unit. This is a named pipe in the file unit. This is a named pipe in the file
system. This interface is obsolete and system. This interface is obsolete and
should not be used in new should not be used in new
applications.</p></dd></dl></div></div><div class="refsect1"><a name="idm214182077552"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> applications.</p></dd></dl></div></div><div class="refsect1"><a name="idm214187964368"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
The <a class="ulink" href="http://www.freedesktop.org/wiki/Software/systemd/" target="_top">systemd Homepage</a>, The <a class="ulink" href="http://www.freedesktop.org/wiki/Software/systemd/" target="_top">systemd Homepage</a>,
<a href="systemd-system.conf.html"><span class="citerefentry"><span class="refentrytitle">systemd-system.conf</span>(5)</span></a>, <a href="systemd-system.conf.html"><span class="citerefentry"><span class="refentrytitle">systemd-system.conf</span>(5)</span></a>,
<a href="locale.conf.html"><span class="citerefentry"><span class="refentrytitle">locale.conf</span>(5)</span></a>, <a href="locale.conf.html"><span class="citerefentry"><span class="refentrytitle">locale.conf</span>(5)</span></a>,
@ -664,7 +664,7 @@
<a href="kernel-command-line.html"><span class="citerefentry"><span class="refentrytitle">kernel-command-line</span>(7)</span></a>, <a href="kernel-command-line.html"><span class="citerefentry"><span class="refentrytitle">kernel-command-line</span>(7)</span></a>,
<a href="bootup.html"><span class="citerefentry"><span class="refentrytitle">bootup</span>(7)</span></a>, <a href="bootup.html"><span class="citerefentry"><span class="refentrytitle">bootup</span>(7)</span></a>,
<a href="systemd.directives.html"><span class="citerefentry"><span class="refentrytitle">systemd.directives</span>(7)</span></a> <a href="systemd.directives.html"><span class="citerefentry"><span class="refentrytitle">systemd.directives</span>(7)</span></a>
</p></div><div class="footnotes"><br><hr style="width:100; text-align:left;margin-left: 0"><div id="ftn.idm214182150864" class="footnote"><p><a href="#idm214182150864" class="para"><sup class="para">[1] </sup></a>If run inside a Linux </p></div><div class="footnotes"><br><hr style="width:100; text-align:left;margin-left: 0"><div id="ftn.idm214191259376" class="footnote"><p><a href="#idm214191259376" class="para"><sup class="para">[1] </sup></a>If run inside a Linux
container these arguments may be passed as command container these arguments may be passed as command
line arguments to systemd itself, next to any of the line arguments to systemd itself, next to any of the
command line options listed in the Options section command line options listed in the Options section

View File

@ -1,5 +1,5 @@
'\" t '\" t
.TH "JOURNALCTL" "1" "" "systemd 214" "journalctl" .TH "JOURNALCTL" "1" "" "systemd 215" "journalctl"
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * Define some portability stuff .\" * Define some portability stuff
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------

View File

@ -19,7 +19,7 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="journalctl"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>journalctl — Query the systemd journal</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">journalctl</code> [OPTIONS...] [MATCHES...]</p></div></div><div class="refsect1"><a name="idm214199609344"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><span class="command"><strong>journalctl</strong></span> may be used to <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="journalctl"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>journalctl — Query the systemd journal</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">journalctl</code> [OPTIONS...] [MATCHES...]</p></div></div><div class="refsect1"><a name="idm214192081472"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><span class="command"><strong>journalctl</strong></span> may be used to
query the contents of the query the contents of the
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a> <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>
journal as written by journal as written by
@ -67,7 +67,7 @@
according to priority: lines of level ERROR and higher according to priority: lines of level ERROR and higher
are colored red; lines of level NOTICE and higher are are colored red; lines of level NOTICE and higher are
highlighted; other lines are displayed normally. highlighted; other lines are displayed normally.
</p></div><div class="refsect1"><a name="idm214203547184"></a><h2 id="Options">Options<a class="headerlink" title="Permalink to this headline" href="#Options"></a></h2><p>The following options are understood:</p><div class="variablelist"><dl class="variablelist"><dt id="--no-full"><span class="term"><code class="option">--no-full</code>, </span><span class="term"><code class="option">--full</code>, </span><span class="term"><code class="option">-l</code></span><a class="headerlink" title="Permalink to this term" href="#--no-full"></a></dt><dd><p>Ellipsize fields when </p></div><div class="refsect1"><a name="idm214193028176"></a><h2 id="Options">Options<a class="headerlink" title="Permalink to this headline" href="#Options"></a></h2><p>The following options are understood:</p><div class="variablelist"><dl class="variablelist"><dt id="--no-full"><span class="term"><code class="option">--no-full</code>, </span><span class="term"><code class="option">--full</code>, </span><span class="term"><code class="option">-l</code></span><a class="headerlink" title="Permalink to this term" href="#--no-full"></a></dt><dd><p>Ellipsize fields when
they do not fit in available columns. they do not fit in available columns.
The default is to show full fields, The default is to show full fields,
allowing them to wrap or be truncated allowing them to wrap or be truncated
@ -457,8 +457,8 @@
verification key to use for the verification key to use for the
<code class="option">--verify</code> <code class="option">--verify</code>
operation.</p></dd><dt id="-h"><span class="term"><code class="option">-h</code>, </span><span class="term"><code class="option">--help</code></span><a class="headerlink" title="Permalink to this term" href="#-h"></a></dt><dd><p><a name="help-text"></a>Print a short help text and exit. operation.</p></dd><dt id="-h"><span class="term"><code class="option">-h</code>, </span><span class="term"><code class="option">--help</code></span><a class="headerlink" title="Permalink to this term" href="#-h"></a></dt><dd><p><a name="help-text"></a>Print a short help text and exit.
</p></dd><dt id="--version"><span class="term"><code class="option">--version</code></span><a class="headerlink" title="Permalink to this term" href="#--version"></a></dt><dd><p><a name="version-text"></a>Print a short version string and exit.</p></dd><dt id="--no-pager"><span class="term"><code class="option">--no-pager</code></span><a class="headerlink" title="Permalink to this term" href="#--no-pager"></a></dt><dd><p>Do not pipe output into a pager.</p></dd></dl></div></div><div class="refsect1"><a name="idm214198407696"></a><h2 id="Exit status">Exit status<a class="headerlink" title="Permalink to this headline" href="#Exit%20status"></a></h2><p>On success, 0 is returned; otherwise, a non-zero </p></dd><dt id="--version"><span class="term"><code class="option">--version</code></span><a class="headerlink" title="Permalink to this term" href="#--version"></a></dt><dd><p><a name="version-text"></a>Print a short version string and exit.</p></dd><dt id="--no-pager"><span class="term"><code class="option">--no-pager</code></span><a class="headerlink" title="Permalink to this term" href="#--no-pager"></a></dt><dd><p>Do not pipe output into a pager.</p></dd></dl></div></div><div class="refsect1"><a name="idm214193157888"></a><h2 id="Exit status">Exit status<a class="headerlink" title="Permalink to this headline" href="#Exit%20status"></a></h2><p>On success, 0 is returned; otherwise, a non-zero
failure code is returned.</p></div><div class="refsect1"><a name="idm214190017776"></a><h2 id="Environment">Environment<a class="headerlink" title="Permalink to this headline" href="#Environment"></a></h2><div class="variablelist"><dl class="variablelist"><dt id="$SYSTEMD_PAGER"><span class="term"><code class="varname">$SYSTEMD_PAGER</code></span><a class="headerlink" title="Permalink to this term" href="#%24SYSTEMD_PAGER"></a></dt><dd><p>Pager to use when failure code is returned.</p></div><div class="refsect1"><a name="idm214181682304"></a><h2 id="Environment">Environment<a class="headerlink" title="Permalink to this headline" href="#Environment"></a></h2><div class="variablelist"><dl class="variablelist"><dt id="$SYSTEMD_PAGER"><span class="term"><code class="varname">$SYSTEMD_PAGER</code></span><a class="headerlink" title="Permalink to this term" href="#%24SYSTEMD_PAGER"></a></dt><dd><p>Pager to use when
<code class="option">--no-pager</code> is not given; <code class="option">--no-pager</code> is not given;
overrides <code class="varname">$PAGER</code>. Setting overrides <code class="varname">$PAGER</code>. Setting
this to an empty string or the value this to an empty string or the value
@ -466,13 +466,13 @@
<code class="option">--no-pager</code>.</p></dd><dt id="$SYSTEMD_LESS"><span class="term"><code class="varname">$SYSTEMD_LESS</code></span><a class="headerlink" title="Permalink to this term" href="#%24SYSTEMD_LESS"></a></dt><dd><p>Override the default <code class="option">--no-pager</code>.</p></dd><dt id="$SYSTEMD_LESS"><span class="term"><code class="varname">$SYSTEMD_LESS</code></span><a class="headerlink" title="Permalink to this term" href="#%24SYSTEMD_LESS"></a></dt><dd><p>Override the default
options passed to options passed to
<span class="command"><strong>less</strong></span> <span class="command"><strong>less</strong></span>
("<code class="literal">FRSXMK</code>").</p></dd></dl></div></div><div class="refsect1"><a name="idm214198405936"></a><h2 id="Examples">Examples<a class="headerlink" title="Permalink to this headline" href="#Examples"></a></h2><p>Without arguments, all collected logs are shown ("<code class="literal">FRSXMK</code>").</p></dd></dl></div></div><div class="refsect1"><a name="idm214193156064"></a><h2 id="Examples">Examples<a class="headerlink" title="Permalink to this headline" href="#Examples"></a></h2><p>Without arguments, all collected logs are shown
unfiltered:</p><pre class="programlisting">journalctl</pre><p>With one match specified, all entries with a field matching the expression are shown:</p><pre class="programlisting">journalctl _SYSTEMD_UNIT=avahi-daemon.service</pre><p>If two different fields are matched, only entries matching both expressions at the same time are shown:</p><pre class="programlisting">journalctl _SYSTEMD_UNIT=avahi-daemon.service _PID=28097</pre><p>If two matches refer to the same field, all entries matching either expression are shown:</p><pre class="programlisting">journalctl _SYSTEMD_UNIT=avahi-daemon.service _SYSTEMD_UNIT=dbus.service</pre><p>If the separator "<code class="literal">+</code>" is used, unfiltered:</p><pre class="programlisting">journalctl</pre><p>With one match specified, all entries with a field matching the expression are shown:</p><pre class="programlisting">journalctl _SYSTEMD_UNIT=avahi-daemon.service</pre><p>If two different fields are matched, only entries matching both expressions at the same time are shown:</p><pre class="programlisting">journalctl _SYSTEMD_UNIT=avahi-daemon.service _PID=28097</pre><p>If two matches refer to the same field, all entries matching either expression are shown:</p><pre class="programlisting">journalctl _SYSTEMD_UNIT=avahi-daemon.service _SYSTEMD_UNIT=dbus.service</pre><p>If the separator "<code class="literal">+</code>" is used,
two expressions may be combined in a logical OR. The two expressions may be combined in a logical OR. The
following will show all messages from the Avahi following will show all messages from the Avahi
service process with the PID 28097 plus all messages service process with the PID 28097 plus all messages
from the D-Bus service (from any of its from the D-Bus service (from any of its
processes):</p><pre class="programlisting">journalctl _SYSTEMD_UNIT=avahi-daemon.service _PID=28097 + _SYSTEMD_UNIT=dbus.service</pre><p>Show all logs generated by the D-Bus executable:</p><pre class="programlisting">journalctl /usr/bin/dbus-daemon</pre><p>Show all logs of the kernel device node <code class="filename">/dev/sda</code>:</p><pre class="programlisting">journalctl /dev/sda</pre><p>Show all kernel logs from previous boot:</p><pre class="programlisting">journalctl -k -b -1</pre></div><div class="refsect1"><a name="idm214198394704"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> processes):</p><pre class="programlisting">journalctl _SYSTEMD_UNIT=avahi-daemon.service _PID=28097 + _SYSTEMD_UNIT=dbus.service</pre><p>Show all logs generated by the D-Bus executable:</p><pre class="programlisting">journalctl /usr/bin/dbus-daemon</pre><p>Show all logs of the kernel device node <code class="filename">/dev/sda</code>:</p><pre class="programlisting">journalctl /dev/sda</pre><p>Show all kernel logs from previous boot:</p><pre class="programlisting">journalctl -k -b -1</pre></div><div class="refsect1"><a name="idm214193144192"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="systemd-journald.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-journald.service</span>(8)</span></a>, <a href="systemd-journald.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-journald.service</span>(8)</span></a>,
<a href="systemctl.html"><span class="citerefentry"><span class="refentrytitle">systemctl</span>(1)</span></a>, <a href="systemctl.html"><span class="citerefentry"><span class="refentrytitle">systemctl</span>(1)</span></a>,

View File

@ -1,5 +1,5 @@
'\" t '\" t
.TH "JOURNALD\&.CONF" "5" "" "systemd 214" "journald.conf" .TH "JOURNALD\&.CONF" "5" "" "systemd 215" "journald.conf"
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * Define some portability stuff .\" * Define some portability stuff
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
@ -79,14 +79,14 @@ by G\&. A\&. Marson and B\&. Poettering (doi:10\&.1007/978\-3\-642\-40203\-6_7)
\fISplitMode=\fR \fISplitMode=\fR
.RS 4 .RS 4
Controls whether to split up journal files per user\&. One of Controls whether to split up journal files per user\&. One of
"login", "uid",
"uid" "login"
and and
"none"\&. If "none"\&. If
"login", each logged\-in user will get his own journal files, but systemd user IDs will log into the system journal\&. If "uid", all users will get each their own journal files regardless of whether they possess a login session or not, however system users will log into the system journal\&. If
"uid", any user ID will get his own journal files regardless of whether it belongs to a system service or refers to a real logged in user\&. If "login", actually logged\-in users will get each their own journal files, but users without login session and system users will log into the system journal\&. If
"none", journal files are not split up by user and all messages are instead stored in the single system journal\&. Note that splitting up journal files by user is only available for journals stored persistently\&. If journals are stored on volatile storage (see above), only a single journal file for all user IDs is kept\&. Defaults to "none", journal files are not split up by user and all messages are instead stored in the single system journal\&. Note that splitting up journal files by user is only available for journals stored persistently\&. If journals are stored on volatile storage (see above), only a single journal file for all user IDs is kept\&. Defaults to
"login"\&. "uid"\&.
.RE .RE
.PP .PP
\fIRateLimitInterval=\fR, \fIRateLimitBurst=\fR \fIRateLimitInterval=\fR, \fIRateLimitBurst=\fR

View File

@ -19,9 +19,9 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="journald.conf"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>journald.conf — Journal service configuration file</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><p><code class="filename">/etc/systemd/journald.conf</code></p></div><div class="refsect1"><a name="idm214187471616"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p>This file configures various parameters of the <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="journald.conf"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>journald.conf — Journal service configuration file</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><p><code class="filename">/etc/systemd/journald.conf</code></p></div><div class="refsect1"><a name="idm214198630544"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p>This file configures various parameters of the
systemd journal service, systemd journal service,
<a href="systemd-journald.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-journald.service</span>(8)</span></a>.</p></div><div class="refsect1"><a name="idm214187469440"></a><h2 id="Options">Options<a class="headerlink" title="Permalink to this headline" href="#Options"></a></h2><p>All options are configured in the <a href="systemd-journald.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-journald.service</span>(8)</span></a>.</p></div><div class="refsect1"><a name="idm214200500944"></a><h2 id="Options">Options<a class="headerlink" title="Permalink to this headline" href="#Options"></a></h2><p>All options are configured in the
"<code class="literal">[Journal]</code>" section:</p><div class="variablelist"><dl class="variablelist"><dt id="Storage="><span class="term"><code class="varname">Storage=</code></span><a class="headerlink" title="Permalink to this term" href="#Storage="></a></dt><dd><p>Controls where to "<code class="literal">[Journal]</code>" section:</p><div class="variablelist"><dl class="variablelist"><dt id="Storage="><span class="term"><code class="varname">Storage=</code></span><a class="headerlink" title="Permalink to this term" href="#Storage="></a></dt><dd><p>Controls where to
store journal data. One of store journal data. One of
"<code class="literal">volatile</code>", "<code class="literal">volatile</code>",
@ -78,29 +78,30 @@
and may be used to protect journal files and may be used to protect journal files
from unnoticed alteration.</p></dd><dt id="SplitMode="><span class="term"><code class="varname">SplitMode=</code></span><a class="headerlink" title="Permalink to this term" href="#SplitMode="></a></dt><dd><p>Controls whether to from unnoticed alteration.</p></dd><dt id="SplitMode="><span class="term"><code class="varname">SplitMode=</code></span><a class="headerlink" title="Permalink to this term" href="#SplitMode="></a></dt><dd><p>Controls whether to
split up journal files per user. One split up journal files per user. One
of "<code class="literal">login</code>", of "<code class="literal">uid</code>",
"<code class="literal">uid</code>" and "<code class="literal">login</code>" and
"<code class="literal">none</code>". If "<code class="literal">none</code>". If
"<code class="literal">login</code>", each logged-in "<code class="literal">uid</code>", all users will
user will get his own journal get each their own journal files
files, but systemd user IDs will log regardless of whether they possess a
into the system journal. If login session or not, however system
"<code class="literal">uid</code>", any user ID users will log into the system
will get his own journal files journal. If "<code class="literal">login</code>",
regardless of whether it belongs to a actually logged-in users will get each
system service or refers to a real their own journal files, but users
logged in user. If without login session and system users
will log into the system journal. If
"<code class="literal">none</code>", journal files "<code class="literal">none</code>", journal files
are not split up by user and all are not split up by user and all
messages are instead stored in the single messages are instead stored in the
system journal. Note that splitting single system journal. Note that
up journal files by user is only splitting up journal files by user is
available for journals stored only available for journals stored
persistently. If journals are stored persistently. If journals are stored
on volatile storage (see above), only a on volatile storage (see above), only
single journal file for all user IDs a single journal file for all user IDs
is kept. Defaults to is kept. Defaults to
"<code class="literal">login</code>".</p></dd><dt id="RateLimitInterval="><span class="term"><code class="varname">RateLimitInterval=</code>, </span><span class="term"><code class="varname">RateLimitBurst=</code></span><a class="headerlink" title="Permalink to this term" href="#RateLimitInterval="></a></dt><dd><p>Configures the rate "<code class="literal">uid</code>".</p></dd><dt id="RateLimitInterval="><span class="term"><code class="varname">RateLimitInterval=</code>, </span><span class="term"><code class="varname">RateLimitBurst=</code></span><a class="headerlink" title="Permalink to this term" href="#RateLimitInterval="></a></dt><dd><p>Configures the rate
limiting that is applied to all limiting that is applied to all
messages generated on the system. If, messages generated on the system. If,
in the time interval defined by in the time interval defined by
@ -320,7 +321,7 @@
to use if to use if
<code class="varname">ForwardToConsole=yes</code> <code class="varname">ForwardToConsole=yes</code>
is used. Defaults to is used. Defaults to
<code class="filename">/dev/console</code>.</p></dd></dl></div></div><div class="refsect1"><a name="idm214186341472"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> <code class="filename">/dev/console</code>.</p></dd></dl></div></div><div class="refsect1"><a name="idm214200261392"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="systemd-journald.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-journald.service</span>(8)</span></a>, <a href="systemd-journald.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-journald.service</span>(8)</span></a>,
<a href="journalctl.html"><span class="citerefentry"><span class="refentrytitle">journalctl</span>(1)</span></a>, <a href="journalctl.html"><span class="citerefentry"><span class="refentrytitle">journalctl</span>(1)</span></a>,

View File

@ -146,29 +146,30 @@
<listitem><para>Controls whether to <listitem><para>Controls whether to
split up journal files per user. One split up journal files per user. One
of <literal>login</literal>, of <literal>uid</literal>,
<literal>uid</literal> and <literal>login</literal> and
<literal>none</literal>. If <literal>none</literal>. If
<literal>login</literal>, each logged-in <literal>uid</literal>, all users will
user will get his own journal get each their own journal files
files, but systemd user IDs will log regardless of whether they possess a
into the system journal. If login session or not, however system
<literal>uid</literal>, any user ID users will log into the system
will get his own journal files journal. If <literal>login</literal>,
regardless of whether it belongs to a actually logged-in users will get each
system service or refers to a real their own journal files, but users
logged in user. If without login session and system users
will log into the system journal. If
<literal>none</literal>, journal files <literal>none</literal>, journal files
are not split up by user and all are not split up by user and all
messages are instead stored in the single messages are instead stored in the
system journal. Note that splitting single system journal. Note that
up journal files by user is only splitting up journal files by user is
available for journals stored only available for journals stored
persistently. If journals are stored persistently. If journals are stored
on volatile storage (see above), only a on volatile storage (see above), only
single journal file for all user IDs a single journal file for all user IDs
is kept. Defaults to is kept. Defaults to
<literal>login</literal>.</para></listitem> <literal>uid</literal>.</para></listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>

View File

@ -1,5 +1,5 @@
'\" t '\" t
.TH "KERNEL\-COMMAND\-LINE" "7" "" "systemd 214" "kernel-command-line" .TH "KERNEL\-COMMAND\-LINE" "7" "" "systemd 215" "kernel-command-line"
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * Define some portability stuff .\" * Define some portability stuff
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
@ -43,6 +43,12 @@ Parameters understood by the system and service manager to control system behavi
\fBsystemd\fR(1)\&. \fBsystemd\fR(1)\&.
.RE .RE
.PP .PP
\fIsystemd\&.mask=\fR, \fIsystemd\&.wants=\fR, \fIsystemd\&.debug\-shell\fR
.RS 4
Additional parameters understood by
\fBsystemd-debug-generator\fR(8), to mask or start specific units at boot, or invoke a debug shell on tty9\&.
.RE
.PP
\fIsystemd\&.restore_state=\fR \fIsystemd\&.restore_state=\fR
.RS 4 .RS 4
This parameter is understood by several system tools to control whether or not they should restore system state from the previous boot\&. For details, see This parameter is understood by several system tools to control whether or not they should restore system state from the previous boot\&. For details, see
@ -75,15 +81,9 @@ Parameters understood by the system and service manager to control locale and la
\fBsystemd\fR(1)\&. \fBsystemd\fR(1)\&.
.RE .RE
.PP .PP
\fIfsck\&.mode=\fR \fIfsck\&.mode=\fR, \fIfsck\&.repair=\fR
.RS 4 .RS 4
Parameter understood by the file system checker services\&. For details, see Parameters understood by the file system checker services\&. For details, see
\fBsystemd-fsck@.service\fR(8)\&.
.RE
.PP
\fIfsck\&.repair=\fR
.RS 4
Parameter understood by the file system checker services\&. For details, see
\fBsystemd-fsck@.service\fR(8)\&. \fBsystemd-fsck@.service\fR(8)\&.
.RE .RE
.PP .PP
@ -131,6 +131,18 @@ logic at boot\&. For details, see
\fBsystemd-fstab-generator\fR(8)\&. \fBsystemd-fstab-generator\fR(8)\&.
.RE .RE
.PP .PP
\fIroot=\fR, \fIrootfstype=\fR, \fIrootfsflags=\fR, \fIro\fR, \fIrw\fR
.RS 4
Configures the root file system and its file system type and mount options, as well as whether it shall be mounted read\-only or read\-writable initially\&. For details, see
\fBsystemd-fstab-generator\fR(8)\&.
.RE
.PP
\fIsystemd\&.gpt_auto=\fR, \fIrd\&.systemd\&.gpt_auto=\fR
.RS 4
Configures whether GPT based partition auto\-discovery shall be attempted\&. For details, see
\fBsystemd-gpt-auto-generator\fR(8)\&.
.RE
.PP
\fImodules\-load=\fR, \fIrd\&.modules\-load=\fR \fImodules\-load=\fR, \fIrd\&.modules\-load=\fR
.RS 4 .RS 4
Load a specific kernel module early at boot\&. For details, see Load a specific kernel module early at boot\&. For details, see
@ -141,6 +153,7 @@ Load a specific kernel module early at boot\&. For details, see
\fBsystemd\fR(1), \fBsystemd\fR(1),
\fBbootparam\fR(7), \fBbootparam\fR(7),
\fBdracut.cmdline\fR(7), \fBdracut.cmdline\fR(7),
\fBsystemd-debug-generator\fR(8),
\fBsystemd-fsck@.service\fR(8), \fBsystemd-fsck@.service\fR(8),
\fBsystemd-quotacheck.service\fR(8), \fBsystemd-quotacheck.service\fR(8),
\fBsystemd-journald.service\fR(8), \fBsystemd-journald.service\fR(8),
@ -149,7 +162,10 @@ Load a specific kernel module early at boot\&. For details, see
\fBplymouth\fR(8), \fBplymouth\fR(8),
\fBsystemd-cryptsetup-generator\fR(8), \fBsystemd-cryptsetup-generator\fR(8),
\fBsystemd-fstab-generator\fR(8), \fBsystemd-fstab-generator\fR(8),
\fBsystemd-modules-load.service\fR(8)\fBsystemd-backlight@.service\fR(8)\fBsystemd-rfkill@.service\fR(8) \fBsystemd-gpt-auto-generator\fR(8),
\fBsystemd-modules-load.service\fR(8),
\fBsystemd-backlight@.service\fR(8),
\fBsystemd-rfkill@.service\fR(8)
.SH "NOTES" .SH "NOTES"
.IP " 1." 4 .IP " 1." 4
kernel-parameters.txt kernel-parameters.txt

View File

@ -19,7 +19,7 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="kernel-command-line"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>kernel-command-line — Kernel command line parameters</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><p><code class="filename">/proc/cmdline</code></p></div><div class="refsect1"><a name="idm214191637456"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p>The kernel, the initial RAM disk (initrd) and <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="kernel-command-line"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>kernel-command-line — Kernel command line parameters</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><p><code class="filename">/proc/cmdline</code></p></div><div class="refsect1"><a name="idm214185265888"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p>The kernel, the initial RAM disk (initrd) and
basic userspace functionality may be configured at boot via basic userspace functionality may be configured at boot via
kernel command line arguments.</p><p>For command line parameters understood by the kernel command line arguments.</p><p>For command line parameters understood by the
kernel, please see <a class="ulink" href="https://www.kernel.org/doc/Documentation/kernel-parameters.txt" target="_top"><code class="filename">kernel-parameters.txt</code></a> kernel, please see <a class="ulink" href="https://www.kernel.org/doc/Documentation/kernel-parameters.txt" target="_top"><code class="filename">kernel-parameters.txt</code></a>
@ -28,10 +28,15 @@
initial RAM disk, please see initial RAM disk, please see
<a href="dracut.cmdline.html"><span class="citerefentry"><span class="refentrytitle">dracut.cmdline</span>(7)</span></a>, <a href="dracut.cmdline.html"><span class="citerefentry"><span class="refentrytitle">dracut.cmdline</span>(7)</span></a>,
or the documentation of the specific initrd or the documentation of the specific initrd
implementation of your installation.</p></div><div class="refsect1"><a name="idm214191632352"></a><h2 id="Core OS Command Line Arguments">Core OS Command Line Arguments<a class="headerlink" title="Permalink to this headline" href="#Core%20OS%20Command%20Line%20Arguments"></a></h2><div class="variablelist"><dl class="variablelist"><dt id="systemd.unit="><span class="term"><code class="varname">systemd.unit=</code>, </span><span class="term"><code class="varname">rd.systemd.unit=</code>, </span><span class="term"><code class="varname">systemd.dump_core=</code>, </span><span class="term"><code class="varname">systemd.crash_shell=</code>, </span><span class="term"><code class="varname">systemd.crash_chvt=</code>, </span><span class="term"><code class="varname">systemd.confirm_spawn=</code>, </span><span class="term"><code class="varname">systemd.show_status=</code>, </span><span class="term"><code class="varname">systemd.log_target=</code>, </span><span class="term"><code class="varname">systemd.log_level=</code>, </span><span class="term"><code class="varname">systemd.log_color=</code>, </span><span class="term"><code class="varname">systemd.log_location=</code>, </span><span class="term"><code class="varname">systemd.default_standard_output=</code>, </span><span class="term"><code class="varname">systemd.default_standard_error=</code>, </span><span class="term"><code class="varname">systemd.setenv=</code></span><a class="headerlink" title="Permalink to this term" href="#systemd.unit="></a></dt><dd><p>Parameters understood by implementation of your installation.</p></div><div class="refsect1"><a name="idm214183797568"></a><h2 id="Core OS Command Line Arguments">Core OS Command Line Arguments<a class="headerlink" title="Permalink to this headline" href="#Core%20OS%20Command%20Line%20Arguments"></a></h2><div class="variablelist"><dl class="variablelist"><dt id="systemd.unit="><span class="term"><code class="varname">systemd.unit=</code>, </span><span class="term"><code class="varname">rd.systemd.unit=</code>, </span><span class="term"><code class="varname">systemd.dump_core=</code>, </span><span class="term"><code class="varname">systemd.crash_shell=</code>, </span><span class="term"><code class="varname">systemd.crash_chvt=</code>, </span><span class="term"><code class="varname">systemd.confirm_spawn=</code>, </span><span class="term"><code class="varname">systemd.show_status=</code>, </span><span class="term"><code class="varname">systemd.log_target=</code>, </span><span class="term"><code class="varname">systemd.log_level=</code>, </span><span class="term"><code class="varname">systemd.log_color=</code>, </span><span class="term"><code class="varname">systemd.log_location=</code>, </span><span class="term"><code class="varname">systemd.default_standard_output=</code>, </span><span class="term"><code class="varname">systemd.default_standard_error=</code>, </span><span class="term"><code class="varname">systemd.setenv=</code></span><a class="headerlink" title="Permalink to this term" href="#systemd.unit="></a></dt><dd><p>Parameters understood by
the system and service manager the system and service manager
to control system behavior. For details, see to control system behavior. For details, see
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>.</p></dd><dt id="systemd.restore_state="><span class="term"><code class="varname">systemd.restore_state=</code></span><a class="headerlink" title="Permalink to this term" href="#systemd.restore_state="></a></dt><dd><p>This parameter is understood by <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>.</p></dd><dt id="systemd.mask="><span class="term"><code class="varname">systemd.mask=</code>, </span><span class="term"><code class="varname">systemd.wants=</code>, </span><span class="term"><code class="varname">systemd.debug-shell</code></span><a class="headerlink" title="Permalink to this term" href="#systemd.mask="></a></dt><dd><p>Additional parameters
understood by
<a href="systemd-debug-generator.html"><span class="citerefentry"><span class="refentrytitle">systemd-debug-generator</span>(8)</span></a>,
to mask or start specific
units at boot, or invoke a
debug shell on tty9.</p></dd><dt id="systemd.restore_state="><span class="term"><code class="varname">systemd.restore_state=</code></span><a class="headerlink" title="Permalink to this term" href="#systemd.restore_state="></a></dt><dd><p>This parameter is understood by
several system tools to control several system tools to control
whether or not they should restore whether or not they should restore
system state from the previous boot. system state from the previous boot.
@ -57,10 +62,7 @@
the system and service manager the system and service manager
to control locale and language to control locale and language
settings. For details, see settings. For details, see
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>.</p></dd><dt id="fsck.mode="><span class="term"><code class="varname">fsck.mode=</code></span><a class="headerlink" title="Permalink to this term" href="#fsck.mode="></a></dt><dd><p>Parameter understood by <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>.</p></dd><dt id="fsck.mode="><span class="term"><code class="varname">fsck.mode=</code>, </span><span class="term"><code class="varname">fsck.repair=</code></span><a class="headerlink" title="Permalink to this term" href="#fsck.mode="></a></dt><dd><p>Parameters understood by
the file system checker
services. For details, see
<a href="systemd-fsck@.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-fsck@.service</span>(8)</span></a>.</p></dd><dt id="fsck.repair="><span class="term"><code class="varname">fsck.repair=</code></span><a class="headerlink" title="Permalink to this term" href="#fsck.repair="></a></dt><dd><p>Parameter understood by
the file system checker the file system checker
services. For details, see services. For details, see
<a href="systemd-fsck@.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-fsck@.service</span>(8)</span></a>.</p></dd><dt id="quotacheck.mode="><span class="term"><code class="varname">quotacheck.mode=</code></span><a class="headerlink" title="Permalink to this term" href="#quotacheck.mode="></a></dt><dd><p>Parameter understood by <a href="systemd-fsck@.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-fsck@.service</span>(8)</span></a>.</p></dd><dt id="quotacheck.mode="><span class="term"><code class="varname">quotacheck.mode=</code></span><a class="headerlink" title="Permalink to this term" href="#quotacheck.mode="></a></dt><dd><p>Parameter understood by
@ -84,13 +86,25 @@
<a href="systemd-cryptsetup-generator.html"><span class="citerefentry"><span class="refentrytitle">systemd-cryptsetup-generator</span>(8)</span></a>.</p></dd><dt id="fstab="><span class="term"><code class="varname">fstab=</code>, </span><span class="term"><code class="varname">rd.fstab=</code></span><a class="headerlink" title="Permalink to this term" href="#fstab="></a></dt><dd><p>Configures the <a href="systemd-cryptsetup-generator.html"><span class="citerefentry"><span class="refentrytitle">systemd-cryptsetup-generator</span>(8)</span></a>.</p></dd><dt id="fstab="><span class="term"><code class="varname">fstab=</code>, </span><span class="term"><code class="varname">rd.fstab=</code></span><a class="headerlink" title="Permalink to this term" href="#fstab="></a></dt><dd><p>Configures the
<code class="filename">/etc/fstab</code> <code class="filename">/etc/fstab</code>
logic at boot. For details, see logic at boot. For details, see
<a href="systemd-fstab-generator.html"><span class="citerefentry"><span class="refentrytitle">systemd-fstab-generator</span>(8)</span></a>.</p></dd><dt id="modules-load="><span class="term"><code class="varname">modules-load=</code>, </span><span class="term"><code class="varname">rd.modules-load=</code></span><a class="headerlink" title="Permalink to this term" href="#modules-load="></a></dt><dd><p>Load a specific kernel <a href="systemd-fstab-generator.html"><span class="citerefentry"><span class="refentrytitle">systemd-fstab-generator</span>(8)</span></a>.</p></dd><dt id="root="><span class="term"><code class="varname">root=</code>, </span><span class="term"><code class="varname">rootfstype=</code>, </span><span class="term"><code class="varname">rootfsflags=</code>, </span><span class="term"><code class="varname">ro</code>, </span><span class="term"><code class="varname">rw</code></span><a class="headerlink" title="Permalink to this term" href="#root="></a></dt><dd><p>Configures the root file
system and its file system
type and mount options, as
well as whether it shall be
mounted read-only or
read-writable initially. For
details, see
<a href="systemd-fstab-generator.html"><span class="citerefentry"><span class="refentrytitle">systemd-fstab-generator</span>(8)</span></a>.</p></dd><dt id="systemd.gpt_auto="><span class="term"><code class="varname">systemd.gpt_auto=</code>, </span><span class="term"><code class="varname">rd.systemd.gpt_auto=</code></span><a class="headerlink" title="Permalink to this term" href="#systemd.gpt_auto="></a></dt><dd><p>Configures whether GPT
based partition auto-discovery
shall be attempted. For
details, see
<a href="systemd-gpt-auto-generator.html"><span class="citerefentry"><span class="refentrytitle">systemd-gpt-auto-generator</span>(8)</span></a>.</p></dd><dt id="modules-load="><span class="term"><code class="varname">modules-load=</code>, </span><span class="term"><code class="varname">rd.modules-load=</code></span><a class="headerlink" title="Permalink to this term" href="#modules-load="></a></dt><dd><p>Load a specific kernel
module early at boot. For module early at boot. For
details, see details, see
<a href="systemd-modules-load.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-modules-load.service</span>(8)</span></a>.</p></dd></dl></div></div><div class="refsect1"><a name="idm214190534208"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> <a href="systemd-modules-load.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-modules-load.service</span>(8)</span></a>.</p></dd></dl></div></div><div class="refsect1"><a name="idm214184989504"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="bootparam.html"><span class="citerefentry"><span class="refentrytitle">bootparam</span>(7)</span></a>, <a href="bootparam.html"><span class="citerefentry"><span class="refentrytitle">bootparam</span>(7)</span></a>,
<a href="dracut.cmdline.html"><span class="citerefentry"><span class="refentrytitle">dracut.cmdline</span>(7)</span></a>, <a href="dracut.cmdline.html"><span class="citerefentry"><span class="refentrytitle">dracut.cmdline</span>(7)</span></a>,
<a href="systemd-debug-generator.html"><span class="citerefentry"><span class="refentrytitle">systemd-debug-generator</span>(8)</span></a>,
<a href="systemd-fsck@.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-fsck@.service</span>(8)</span></a>, <a href="systemd-fsck@.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-fsck@.service</span>(8)</span></a>,
<a href="systemd-quotacheck.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-quotacheck.service</span>(8)</span></a>, <a href="systemd-quotacheck.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-quotacheck.service</span>(8)</span></a>,
<a href="systemd-journald.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-journald.service</span>(8)</span></a>, <a href="systemd-journald.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-journald.service</span>(8)</span></a>,
@ -99,7 +113,8 @@
<a href="plymouth.html"><span class="citerefentry"><span class="refentrytitle">plymouth</span>(8)</span></a>, <a href="plymouth.html"><span class="citerefentry"><span class="refentrytitle">plymouth</span>(8)</span></a>,
<a href="systemd-cryptsetup-generator.html"><span class="citerefentry"><span class="refentrytitle">systemd-cryptsetup-generator</span>(8)</span></a>, <a href="systemd-cryptsetup-generator.html"><span class="citerefentry"><span class="refentrytitle">systemd-cryptsetup-generator</span>(8)</span></a>,
<a href="systemd-fstab-generator.html"><span class="citerefentry"><span class="refentrytitle">systemd-fstab-generator</span>(8)</span></a>, <a href="systemd-fstab-generator.html"><span class="citerefentry"><span class="refentrytitle">systemd-fstab-generator</span>(8)</span></a>,
<a href="systemd-modules-load.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-modules-load.service</span>(8)</span></a> <a href="systemd-gpt-auto-generator.html"><span class="citerefentry"><span class="refentrytitle">systemd-gpt-auto-generator</span>(8)</span></a>,
<a href="systemd-backlight@.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-backlight@.service</span>(8)</span></a> <a href="systemd-modules-load.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-modules-load.service</span>(8)</span></a>,
<a href="systemd-backlight@.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-backlight@.service</span>(8)</span></a>,
<a href="systemd-rfkill@.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-rfkill@.service</span>(8)</span></a> <a href="systemd-rfkill@.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-rfkill@.service</span>(8)</span></a>
</p></div></div></body></html> </p></div></div></body></html>

View File

@ -98,6 +98,20 @@
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry>
<term><varname>systemd.mask=</varname></term>
<term><varname>systemd.wants=</varname></term>
<term><varname>systemd.debug-shell</varname></term>
<listitem>
<para>Additional parameters
understood by
<citerefentry><refentrytitle>systemd-debug-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
to mask or start specific
units at boot, or invoke a
debug shell on tty9.</para>
</listitem>
</varlistentry>
<varlistentry> <varlistentry>
<term><varname>systemd.restore_state=</varname></term> <term><varname>systemd.restore_state=</varname></term>
<listitem> <listitem>
@ -183,20 +197,10 @@
<varlistentry> <varlistentry>
<term><varname>fsck.mode=</varname></term> <term><varname>fsck.mode=</varname></term>
<listitem>
<para>Parameter understood by
the file system checker
services. For details, see
<citerefentry><refentrytitle>systemd-fsck@.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><varname>fsck.repair=</varname></term> <term><varname>fsck.repair=</varname></term>
<listitem> <listitem>
<para>Parameter understood by <para>Parameters understood by
the file system checker the file system checker
services. For details, see services. For details, see
<citerefentry><refentrytitle>systemd-fsck@.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para> <citerefentry><refentrytitle>systemd-fsck@.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
@ -303,6 +307,38 @@
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry>
<term><varname>root=</varname></term>
<term><varname>rootfstype=</varname></term>
<term><varname>rootfsflags=</varname></term>
<term><varname>ro</varname></term>
<term><varname>rw</varname></term>
<listitem>
<para>Configures the root file
system and its file system
type and mount options, as
well as whether it shall be
mounted read-only or
read-writable initially. For
details, see
<citerefentry><refentrytitle>systemd-fstab-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><varname>systemd.gpt_auto=</varname></term>
<term><varname>rd.systemd.gpt_auto=</varname></term>
<listitem>
<para>Configures whether GPT
based partition auto-discovery
shall be attempted. For
details, see
<citerefentry><refentrytitle>systemd-gpt-auto-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
</listitem>
</varlistentry>
<varlistentry> <varlistentry>
<term><varname>modules-load=</varname></term> <term><varname>modules-load=</varname></term>
<term><varname>rd.modules-load=</varname></term> <term><varname>rd.modules-load=</varname></term>
@ -325,6 +361,7 @@
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>, <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
<citerefentry><refentrytitle>bootparam</refentrytitle><manvolnum>7</manvolnum></citerefentry>, <citerefentry><refentrytitle>bootparam</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
<citerefentry><refentrytitle>dracut.cmdline</refentrytitle><manvolnum>7</manvolnum></citerefentry>, <citerefentry><refentrytitle>dracut.cmdline</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
<citerefentry><refentrytitle>systemd-debug-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
<citerefentry><refentrytitle>systemd-fsck@.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>, <citerefentry><refentrytitle>systemd-fsck@.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
<citerefentry><refentrytitle>systemd-quotacheck.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>, <citerefentry><refentrytitle>systemd-quotacheck.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
<citerefentry><refentrytitle>systemd-journald.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>, <citerefentry><refentrytitle>systemd-journald.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
@ -333,8 +370,9 @@
<citerefentry><refentrytitle>plymouth</refentrytitle><manvolnum>8</manvolnum></citerefentry>, <citerefentry><refentrytitle>plymouth</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
<citerefentry><refentrytitle>systemd-cryptsetup-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry>, <citerefentry><refentrytitle>systemd-cryptsetup-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
<citerefentry><refentrytitle>systemd-fstab-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry>, <citerefentry><refentrytitle>systemd-fstab-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
<citerefentry><refentrytitle>systemd-modules-load.service</refentrytitle><manvolnum>8</manvolnum></citerefentry> <citerefentry><refentrytitle>systemd-gpt-auto-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
<citerefentry><refentrytitle>systemd-backlight@.service</refentrytitle><manvolnum>8</manvolnum></citerefentry> <citerefentry><refentrytitle>systemd-modules-load.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
<citerefentry><refentrytitle>systemd-backlight@.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
<citerefentry><refentrytitle>systemd-rfkill@.service</refentrytitle><manvolnum>8</manvolnum></citerefentry> <citerefentry><refentrytitle>systemd-rfkill@.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
</para> </para>
</refsect1> </refsect1>

View File

@ -1,5 +1,5 @@
'\" t '\" t
.TH "KERNEL\-INSTALL" "8" "" "systemd 214" "kernel-install" .TH "KERNEL\-INSTALL" "8" "" "systemd 215" "kernel-install"
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * Define some portability stuff .\" * Define some portability stuff
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
@ -81,7 +81,10 @@ to
/boot/loader/entries/\fIMACHINE\-ID\fR\-\fIKERNEL\-VERSION\fR\&.conf\&. The title of the entry is the /boot/loader/entries/\fIMACHINE\-ID\fR\-\fIKERNEL\-VERSION\fR\&.conf\&. The title of the entry is the
\fIPRETTY_NAME\fR \fIPRETTY_NAME\fR
parameter specified in parameter specified in
/etc/os\-release, or "Linux /etc/os\-release
or
/usr/lib/os\-release
(if the former is missing), or "Linux
\fIKERNEL\-VERSION\fR", if unset\&. If the file \fIKERNEL\-VERSION\fR", if unset\&. If the file
initrd initrd
is found next to the is found next to the
@ -142,7 +145,7 @@ The content of the file specifies the machine identification
\fIMACHINE\-ID\fR\&. \fIMACHINE\-ID\fR\&.
.RE .RE
.PP .PP
/etc/os\-release /etc/os\-release /usr/lib/os\-release
.RS 4 .RS 4
The content of the file specifies the operating system title The content of the file specifies the operating system title
\fIPRETTY_NAME\fR\&. \fIPRETTY_NAME\fR\&.

View File

@ -19,7 +19,7 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="kernel-install"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>kernel-install — Add and remove kernel and initramfs images to and from /boot</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">kernel-install</code> COMMAND <em class="replaceable"><code>KERNEL-VERSION</code></em> [<em class="replaceable"><code>KERNEL-IMAGE</code></em>]</p></div></div><div class="refsect1"><a name="idm214197470224"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p> <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="kernel-install"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>kernel-install — Add and remove kernel and initramfs images to and from /boot</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">kernel-install</code> COMMAND <em class="replaceable"><code>KERNEL-VERSION</code></em> [<em class="replaceable"><code>KERNEL-IMAGE</code></em>]</p></div></div><div class="refsect1"><a name="idm214177157904"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p>
<span class="command"><strong>kernel-install</strong></span> is used to install and remove kernel and <span class="command"><strong>kernel-install</strong></span> is used to install and remove kernel and
initramfs images to and from <code class="filename">/boot</code>. initramfs images to and from <code class="filename">/boot</code>.
</p><p><span class="command"><strong>kernel-install</strong></span> will execute the files </p><p><span class="command"><strong>kernel-install</strong></span> will execute the files
@ -32,28 +32,34 @@
executables with a local file if needed; a symbolic link in <code class="filename">/etc/kernel/install.d/</code> executables with a local file if needed; a symbolic link in <code class="filename">/etc/kernel/install.d/</code>
with the same name as an executable in <code class="filename">/usr/lib/kernel/install.d/</code>, with the same name as an executable in <code class="filename">/usr/lib/kernel/install.d/</code>,
pointing to /dev/null, disables the executable entirely. Executables must have the pointing to /dev/null, disables the executable entirely. Executables must have the
extension "<code class="literal">.install</code>"; other extensions are ignored.</p></div><div class="refsect1"><a name="idm214197461328"></a><h2 id="Commands">Commands<a class="headerlink" title="Permalink to this headline" href="#Commands"></a></h2><p>The following commands are understood:</p><div class="variablelist"><dl class="variablelist"><dt id="add KERNEL-VERSION KERNEL-IMAGE"><span class="term"><span class="command"><strong>add <em class="replaceable"><code>KERNEL-VERSION</code></em> <em class="replaceable"><code>KERNEL-IMAGE</code></em></strong></span></span><a class="headerlink" title="Permalink to this term" href="#add%20KERNEL-VERSION%20KERNEL-IMAGE"></a></dt><dd><p><span class="command"><strong>kernel-install</strong></span> creates the directory extension "<code class="literal">.install</code>"; other extensions are ignored.</p></div><div class="refsect1"><a name="idm214178545168"></a><h2 id="Commands">Commands<a class="headerlink" title="Permalink to this headline" href="#Commands"></a></h2><p>The following commands are understood:</p><div class="variablelist"><dl class="variablelist"><dt id="add KERNEL-VERSION KERNEL-IMAGE"><span class="term"><span class="command"><strong>add <em class="replaceable"><code>KERNEL-VERSION</code></em> <em class="replaceable"><code>KERNEL-IMAGE</code></em></strong></span></span><a class="headerlink" title="Permalink to this term" href="#add%20KERNEL-VERSION%20KERNEL-IMAGE"></a></dt><dd><p><span class="command"><strong>kernel-install</strong></span> creates the directory
<code class="filename">/boot/<em class="replaceable"><code>MACHINE-ID</code></em>/<em class="replaceable"><code>KERNEL-VERSION</code></em>/</code> <code class="filename">/boot/<em class="replaceable"><code>MACHINE-ID</code></em>/<em class="replaceable"><code>KERNEL-VERSION</code></em>/</code>
and calls every executable and calls every executable
<code class="filename">/usr/lib/kernel/install.d/*.install</code> and <code class="filename">/usr/lib/kernel/install.d/*.install</code> and
<code class="filename">/etc/kernel/install.d/*.install</code> with <code class="filename">/etc/kernel/install.d/*.install</code> with
the arguments the arguments
</p><pre class="programlisting">add <em class="replaceable"><code>KERNEL-VERSION</code></em> <code class="filename">/boot/<em class="replaceable"><code>MACHINE-ID</code></em>/<em class="replaceable"><code>KERNEL-VERSION</code></em>/</code></pre><p> </p><pre class="programlisting">add <em class="replaceable"><code>KERNEL-VERSION</code></em> <code class="filename">/boot/<em class="replaceable"><code>MACHINE-ID</code></em>/<em class="replaceable"><code>KERNEL-VERSION</code></em>/</code></pre><p>
</p><p>The kernel-install plugin <code class="filename">50-depmod.install</code> runs depmod for the <em class="replaceable"><code>KERNEL-VERSION</code></em>.</p><p>The kernel-install plugin <code class="filename">90-loaderentry.install</code> copies </p><p>The kernel-install plugin <code class="filename">50-depmod.install</code> runs depmod for the <em class="replaceable"><code>KERNEL-VERSION</code></em>.</p><p>The kernel-install plugin
<code class="filename">90-loaderentry.install</code> copies
<em class="replaceable"><code>KERNEL-IMAGE</code></em> to <em class="replaceable"><code>KERNEL-IMAGE</code></em> to
<code class="filename">/boot/<em class="replaceable"><code>MACHINE-ID</code></em>/<em class="replaceable"><code>KERNEL-VERSION</code></em>/linux</code>. <code class="filename">/boot/<em class="replaceable"><code>MACHINE-ID</code></em>/<em class="replaceable"><code>KERNEL-VERSION</code></em>/linux</code>.
It also creates a boot loader entry according to the boot loader specification in It also creates a boot loader entry according to the boot
loader specification in
<code class="filename">/boot/loader/entries/<em class="replaceable"><code>MACHINE-ID</code></em>-<em class="replaceable"><code>KERNEL-VERSION</code></em>.conf</code>. <code class="filename">/boot/loader/entries/<em class="replaceable"><code>MACHINE-ID</code></em>-<em class="replaceable"><code>KERNEL-VERSION</code></em>.conf</code>.
The title of the entry is the <em class="replaceable"><code>PRETTY_NAME</code></em> parameter specified in <code class="filename">/etc/os-release</code>, The title of the entry is the
or "Linux <em class="replaceable"><code>KERNEL-VERSION</code></em>", if unset. <em class="replaceable"><code>PRETTY_NAME</code></em> parameter specified
If the file <code class="filename">initrd</code> is found next to the in <code class="filename">/etc/os-release</code> or
<code class="filename">/usr/lib/os-release</code> (if the former is
missing), or "Linux
<em class="replaceable"><code>KERNEL-VERSION</code></em>", if unset. If
the file <code class="filename">initrd</code> is found next to the
<code class="filename">linux</code> file, the initrd will be added to <code class="filename">linux</code> file, the initrd will be added to
the configuration.</p></dd><dt id="remove KERNEL-VERSION"><span class="term"><span class="command"><strong>remove <em class="replaceable"><code>KERNEL-VERSION</code></em></strong></span></span><a class="headerlink" title="Permalink to this term" href="#remove%20KERNEL-VERSION"></a></dt><dd><p>Calls every executable <code class="filename">/usr/lib/kernel/install.d/*.install</code> the configuration.</p></dd><dt id="remove KERNEL-VERSION"><span class="term"><span class="command"><strong>remove <em class="replaceable"><code>KERNEL-VERSION</code></em></strong></span></span><a class="headerlink" title="Permalink to this term" href="#remove%20KERNEL-VERSION"></a></dt><dd><p>Calls every executable <code class="filename">/usr/lib/kernel/install.d/*.install</code>
and <code class="filename">/etc/kernel/install.d/*.install</code> with the arguments and <code class="filename">/etc/kernel/install.d/*.install</code> with the arguments
</p><pre class="programlisting">remove <em class="replaceable"><code>KERNEL-VERSION</code></em> <code class="filename">/boot/<em class="replaceable"><code>MACHINE-ID</code></em>/<em class="replaceable"><code>KERNEL-VERSION</code></em>/</code></pre><p> </p><pre class="programlisting">remove <em class="replaceable"><code>KERNEL-VERSION</code></em> <code class="filename">/boot/<em class="replaceable"><code>MACHINE-ID</code></em>/<em class="replaceable"><code>KERNEL-VERSION</code></em>/</code></pre><p>
</p><p><span class="command"><strong>kernel-install</strong></span> removes the entire directory </p><p><span class="command"><strong>kernel-install</strong></span> removes the entire directory
<code class="filename">/boot/<em class="replaceable"><code>MACHINE-ID</code></em>/<em class="replaceable"><code>KERNEL-VERSION</code></em>/</code> afterwards.</p><p>The kernel-install plugin <code class="filename">90-loaderentry.install</code> removes the file <code class="filename">/boot/<em class="replaceable"><code>MACHINE-ID</code></em>/<em class="replaceable"><code>KERNEL-VERSION</code></em>/</code> afterwards.</p><p>The kernel-install plugin <code class="filename">90-loaderentry.install</code> removes the file
<code class="filename">/boot/loader/entries/<em class="replaceable"><code>MACHINE-ID</code></em>-<em class="replaceable"><code>KERNEL-VERSION</code></em>.conf</code>.</p></dd></dl></div></div><div class="refsect1"><a name="idm214201375872"></a><h2 id="Exit status">Exit status<a class="headerlink" title="Permalink to this headline" href="#Exit%20status"></a></h2><p>If every executable returns with 0, 0 is returned, a non-zero failure code otherwise.</p></div><div class="refsect1"><a name="idm214201374688"></a><h2 id="Files">Files<a class="headerlink" title="Permalink to this headline" href="#Files"></a></h2><div class="variablelist"><dl class="variablelist"><dt id=" <code class="filename">/boot/loader/entries/<em class="replaceable"><code>MACHINE-ID</code></em>-<em class="replaceable"><code>KERNEL-VERSION</code></em>.conf</code>.</p></dd></dl></div></div><div class="refsect1"><a name="idm214176177616"></a><h2 id="Exit status">Exit status<a class="headerlink" title="Permalink to this headline" href="#Exit%20status"></a></h2><p>If every executable returns with 0, 0 is returned, a non-zero failure code otherwise.</p></div><div class="refsect1"><a name="idm214178783696"></a><h2 id="Files">Files<a class="headerlink" title="Permalink to this headline" href="#Files"></a></h2><div class="variablelist"><dl class="variablelist"><dt id="
/usr/lib/kernel/install.d/*.install /usr/lib/kernel/install.d/*.install
/etc/kernel/install.d/*.install /etc/kernel/install.d/*.install
"><span class="term"> "><span class="term">
@ -72,9 +78,11 @@
<code class="filename">/etc/machine-id</code> <code class="filename">/etc/machine-id</code>
</span><a class="headerlink" title="Permalink to this term" href="#%0A%20%20%20%20%20%20%20%20%20%20/etc/machine-id%0A%20%20%20%20%20%20%20%20"></a></dt><dd><p>The content of the file specifies the machine identification <em class="replaceable"><code>MACHINE-ID</code></em>.</p></dd><dt id=" </span><a class="headerlink" title="Permalink to this term" href="#%0A%20%20%20%20%20%20%20%20%20%20/etc/machine-id%0A%20%20%20%20%20%20%20%20"></a></dt><dd><p>The content of the file specifies the machine identification <em class="replaceable"><code>MACHINE-ID</code></em>.</p></dd><dt id="
/etc/os-release /etc/os-release
/usr/lib/os-release
"><span class="term"> "><span class="term">
<code class="filename">/etc/os-release</code> <code class="filename">/etc/os-release</code>
</span><a class="headerlink" title="Permalink to this term" href="#%0A%20%20%20%20%20%20%20%20%20%20/etc/os-release%0A%20%20%20%20%20%20%20%20"></a></dt><dd><p>The content of the file specifies the operating system title <em class="replaceable"><code>PRETTY_NAME</code></em>.</p></dd></dl></div></div><div class="refsect1"><a name="idm214196394944"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> <code class="filename">/usr/lib/os-release</code>
</span><a class="headerlink" title="Permalink to this term" href="#%0A%20%20%20%20%20%20%20%20%20%20/etc/os-release%0A%20%20%20%20%20%20%20%20%20%20/usr/lib/os-release%0A%20%20%20%20%20%20%20%20"></a></dt><dd><p>The content of the file specifies the operating system title <em class="replaceable"><code>PRETTY_NAME</code></em>.</p></dd></dl></div></div><div class="refsect1"><a name="idm214176828720"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="machine-id.html"><span class="citerefentry"><span class="refentrytitle">machine-id</span>(5)</span></a>, <a href="machine-id.html"><span class="citerefentry"><span class="refentrytitle">machine-id</span>(5)</span></a>,
<a href="os-release.html"><span class="citerefentry"><span class="refentrytitle">os-release</span>(5)</span></a>, <a href="os-release.html"><span class="citerefentry"><span class="refentrytitle">os-release</span>(5)</span></a>,
<a class="ulink" href="http://www.freedesktop.org/wiki/Specifications/BootLoaderSpec" target="_top">Boot loader specification</a> <a class="ulink" href="http://www.freedesktop.org/wiki/Specifications/BootLoaderSpec" target="_top">Boot loader specification</a>

View File

@ -95,14 +95,20 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>.
<para>The kernel-install plugin <filename>50-depmod.install</filename> runs depmod for the <replaceable>KERNEL-VERSION</replaceable>.</para> <para>The kernel-install plugin <filename>50-depmod.install</filename> runs depmod for the <replaceable>KERNEL-VERSION</replaceable>.</para>
<para>The kernel-install plugin <filename>90-loaderentry.install</filename> copies <para>The kernel-install plugin
<filename>90-loaderentry.install</filename> copies
<replaceable>KERNEL-IMAGE</replaceable> to <replaceable>KERNEL-IMAGE</replaceable> to
<filename>/boot/<replaceable>MACHINE-ID</replaceable>/<replaceable>KERNEL-VERSION</replaceable>/linux</filename>. <filename>/boot/<replaceable>MACHINE-ID</replaceable>/<replaceable>KERNEL-VERSION</replaceable>/linux</filename>.
It also creates a boot loader entry according to the boot loader specification in It also creates a boot loader entry according to the boot
loader specification in
<filename>/boot/loader/entries/<replaceable>MACHINE-ID</replaceable>-<replaceable>KERNEL-VERSION</replaceable>.conf</filename>. <filename>/boot/loader/entries/<replaceable>MACHINE-ID</replaceable>-<replaceable>KERNEL-VERSION</replaceable>.conf</filename>.
The title of the entry is the <replaceable>PRETTY_NAME</replaceable> parameter specified in <filename>/etc/os-release</filename>, The title of the entry is the
or "Linux <replaceable>KERNEL-VERSION</replaceable>", if unset. <replaceable>PRETTY_NAME</replaceable> parameter specified
If the file <filename>initrd</filename> is found next to the in <filename>/etc/os-release</filename> or
<filename>/usr/lib/os-release</filename> (if the former is
missing), or "Linux
<replaceable>KERNEL-VERSION</replaceable>", if unset. If
the file <filename>initrd</filename> is found next to the
<filename>linux</filename> file, the initrd will be added to <filename>linux</filename> file, the initrd will be added to
the configuration.</para> the configuration.</para>
</listitem> </listitem>
@ -165,6 +171,7 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>.
<varlistentry> <varlistentry>
<term> <term>
<filename>/etc/os-release</filename> <filename>/etc/os-release</filename>
<filename>/usr/lib/os-release</filename>
</term> </term>
<listitem> <listitem>
<para>The content of the file specifies the operating system title <replaceable>PRETTY_NAME</replaceable>.</para> <para>The content of the file specifies the operating system title <replaceable>PRETTY_NAME</replaceable>.</para>

View File

@ -1,5 +1,5 @@
'\" t '\" t
.TH "LOCALE\&.CONF" "5" "" "systemd 214" "locale.conf" .TH "LOCALE\&.CONF" "5" "" "systemd 215" "locale.conf"
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * Define some portability stuff .\" * Define some portability stuff
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------

View File

@ -19,7 +19,7 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="locale.conf"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>locale.conf — Configuration file for locale settings</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><p><code class="filename">/etc/locale.conf</code></p></div><div class="refsect1"><a name="idm214185472736"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p>The <code class="filename">/etc/locale.conf</code> file <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="locale.conf"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>locale.conf — Configuration file for locale settings</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><p><code class="filename">/etc/locale.conf</code></p></div><div class="refsect1"><a name="idm214178491184"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p>The <code class="filename">/etc/locale.conf</code> file
configures system-wide locale settings. It is read at configures system-wide locale settings. It is read at
early-boot by early-boot by
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>.</p><p>The basic file format of <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>.</p><p>The basic file format of
@ -52,7 +52,7 @@
individual users.</p><p>Depending on the operating system, other individual users.</p><p>Depending on the operating system, other
configuration files might be checked for locale configuration files might be checked for locale
configuration as well, however only as configuration as well, however only as
fallback.</p></div><div class="refsect1"><a name="idm214185459872"></a><h2 id="Options">Options<a class="headerlink" title="Permalink to this headline" href="#Options"></a></h2><p>The following locale settings may be set using fallback.</p></div><div class="refsect1"><a name="idm214179144976"></a><h2 id="Options">Options<a class="headerlink" title="Permalink to this headline" href="#Options"></a></h2><p>The following locale settings may be set using
<code class="filename">/etc/locale.conf</code>: <code class="filename">/etc/locale.conf</code>:
<code class="varname">LANG=</code>, <code class="varname">LANG=</code>,
<code class="varname">LANGUAGE=</code>, <code class="varname">LANGUAGE=</code>,
@ -71,8 +71,8 @@
<code class="varname">LC_ALL</code> may not be configured in <code class="varname">LC_ALL</code> may not be configured in
this file. For details about the meaning and semantics this file. For details about the meaning and semantics
of these settings, refer to of these settings, refer to
<a href="locale.html"><span class="citerefentry"><span class="refentrytitle">locale</span>(7)</span></a>.</p></div><div class="refsect1"><a name="idm214189403152"></a><h2 id="Example">Example<a class="headerlink" title="Permalink to this headline" href="#Example"></a></h2><div class="example"><a name="idm214189402480"></a><p class="title"><b>Example 1. German locale with English messages</b></p><div class="example-contents"><p><code class="filename">/etc/locale.conf</code>:</p><pre class="programlisting">LANG=de_DE.UTF-8 <a href="locale.html"><span class="citerefentry"><span class="refentrytitle">locale</span>(7)</span></a>.</p></div><div class="refsect1"><a name="idm214181208976"></a><h2 id="Example">Example<a class="headerlink" title="Permalink to this headline" href="#Example"></a></h2><div class="example"><a name="idm214179536720"></a><p class="title"><b>Example 1. German locale with English messages</b></p><div class="example-contents"><p><code class="filename">/etc/locale.conf</code>:</p><pre class="programlisting">LANG=de_DE.UTF-8
LC_MESSAGES=en_US.UTF-8</pre></div></div><br class="example-break"></div><div class="refsect1"><a name="idm214189399888"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> LC_MESSAGES=en_US.UTF-8</pre></div></div><br class="example-break"></div><div class="refsect1"><a name="idm214180959888"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="locale.html"><span class="citerefentry"><span class="refentrytitle">locale</span>(7)</span></a>, <a href="locale.html"><span class="citerefentry"><span class="refentrytitle">locale</span>(7)</span></a>,
<a href="systemd-localed.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-localed.service</span>(8)</span></a> <a href="systemd-localed.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-localed.service</span>(8)</span></a>

View File

@ -1,5 +1,5 @@
'\" t '\" t
.TH "LOCALECTL" "1" "" "systemd 214" "localectl" .TH "LOCALECTL" "1" "" "systemd 215" "localectl"
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * Define some portability stuff .\" * Define some portability stuff
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
@ -57,8 +57,10 @@ is invoked and this option is passed, then the keymap will not be converted from
.PP .PP
\fB\-H\fR, \fB\-\-host=\fR \fB\-H\fR, \fB\-\-host=\fR
.RS 4 .RS 4
Execute the operation remotely\&. Specify a hostname, or username and hostname separated by Execute the operation remotely\&. Specify a hostname, or a username and hostname separated by
"@", to connect to\&. This will use SSH to talk to the remote machine manager instance\&. "@", to connect to\&. The hostname may optionally be suffixed by a container name, separated by
":", which connects directly to a specific container on the specified host\&. This will use SSH to talk to the remote machine manager instance\&. Container names may be enumerated with
\fBmachinectl \-H \fR\fB\fIHOST\fR\fR\&.
.RE .RE
.PP .PP
\fB\-h\fR, \fB\-\-help\fR \fB\-h\fR, \fB\-\-help\fR

View File

@ -19,7 +19,7 @@
<a href="systemd.directives.html">Directives </a>· <a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>· <a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>· <a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 214</span><hr><div class="refentry"><a name="localectl"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>localectl — Control the system locale and keyboard layout settings</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">localectl</code> [OPTIONS...] {COMMAND}</p></div></div><div class="refsect1"><a name="idm214170531264"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><span class="command"><strong>localectl</strong></span> may be used to <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="localectl"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>localectl — Control the system locale and keyboard layout settings</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">localectl</code> [OPTIONS...] {COMMAND}</p></div></div><div class="refsect1"><a name="idm214196021920"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><span class="command"><strong>localectl</strong></span> may be used to
query and change the system locale and keyboard layout query and change the system locale and keyboard layout
settings.</p><p>The system locale controls the language settings settings.</p><p>The system locale controls the language settings
of system services and of the UI before the user logs of system services and of the UI before the user logs
@ -28,7 +28,7 @@
layout used on the text console and of the graphical layout used on the text console and of the graphical
UI before the user logs in, such as the display UI before the user logs in, such as the display
manager, as well as the default for users after manager, as well as the default for users after
login.</p></div><div class="refsect1"><a name="idm214170528112"></a><h2 id="Options">Options<a class="headerlink" title="Permalink to this headline" href="#Options"></a></h2><p>The following options are understood:</p><div class="variablelist"><dl class="variablelist"><dt id="--no-ask-password"><span class="term"><code class="option">--no-ask-password</code></span><a class="headerlink" title="Permalink to this term" href="#--no-ask-password"></a></dt><dd><p>Do not query the user login.</p></div><div class="refsect1"><a name="idm214196018768"></a><h2 id="Options">Options<a class="headerlink" title="Permalink to this headline" href="#Options"></a></h2><p>The following options are understood:</p><div class="variablelist"><dl class="variablelist"><dt id="--no-ask-password"><span class="term"><code class="option">--no-ask-password</code></span><a class="headerlink" title="Permalink to this term" href="#--no-ask-password"></a></dt><dd><p>Do not query the user
for authentication for privileged for authentication for privileged
operations.</p></dd><dt id="-P"><span class="term"><code class="option">-P</code>, </span><span class="term"><code class="option">--privileged</code></span><a class="headerlink" title="Permalink to this term" href="#-P"></a></dt><dd><p>Acquire privileges via PolicyKit operations.</p></dd><dt id="-P"><span class="term"><code class="option">-P</code>, </span><span class="term"><code class="option">--privileged</code></span><a class="headerlink" title="Permalink to this term" href="#-P"></a></dt><dd><p>Acquire privileges via PolicyKit
before executing the operation.</p></dd><dt id="--no-convert"><span class="term"><code class="option">--no-convert</code></span><a class="headerlink" title="Permalink to this term" href="#--no-convert"></a></dt><dd><p>If before executing the operation.</p></dd><dt id="--no-convert"><span class="term"><code class="option">--no-convert</code></span><a class="headerlink" title="Permalink to this term" href="#--no-convert"></a></dt><dd><p>If
@ -37,10 +37,15 @@
invoked and this option is passed, then invoked and this option is passed, then
the keymap will not be converted from the keymap will not be converted from
the console to X11, or X11 to console, the console to X11, or X11 to console,
respectively.</p></dd><dt id="-H"><span class="term"><code class="option">-H</code>, </span><span class="term"><code class="option">--host=</code></span><a class="headerlink" title="Permalink to this term" href="#-H"></a></dt><dd><p><a name="host-text"></a>Execute the operation remotely. Specify a hostname, or respectively.</p></dd><dt id="-H"><span class="term"><code class="option">-H</code>, </span><span class="term"><code class="option">--host=</code></span><a class="headerlink" title="Permalink to this term" href="#-H"></a></dt><dd><p><a name="host-text"></a>Execute the operation remotely. Specify a hostname, or a
username and hostname separated by "<code class="literal">@</code>", to username and hostname separated by "<code class="literal">@</code>", to
connect to. This will use SSH to talk to the remote machine connect to. The hostname may optionally be suffixed by a
manager instance.</p></dd><dt id="-h"><span class="term"><code class="option">-h</code>, </span><span class="term"><code class="option">--help</code></span><a class="headerlink" title="Permalink to this term" href="#-h"></a></dt><dd><p><a name="help-text"></a>Print a short help text and exit. container name, separated by "<code class="literal">:</code>", which
connects directly to a specific container on the specified
host. This will use SSH to talk to the remote machine manager
instance. Container names may be enumerated with
<span class="command"><strong>machinectl -H
<em class="replaceable"><code>HOST</code></em></strong></span>.</p></dd><dt id="-h"><span class="term"><code class="option">-h</code>, </span><span class="term"><code class="option">--help</code></span><a class="headerlink" title="Permalink to this term" href="#-h"></a></dt><dd><p><a name="help-text"></a>Print a short help text and exit.
</p></dd><dt id="--version"><span class="term"><code class="option">--version</code></span><a class="headerlink" title="Permalink to this term" href="#--version"></a></dt><dd><p><a name="version-text"></a>Print a short version string and exit.</p></dd><dt id="--no-pager"><span class="term"><code class="option">--no-pager</code></span><a class="headerlink" title="Permalink to this term" href="#--no-pager"></a></dt><dd><p>Do not pipe output into a pager.</p></dd></dl></div><p>The following commands are understood:</p><div class="variablelist"><dl class="variablelist"><dt id="status"><span class="term"><span class="command"><strong>status</strong></span></span><a class="headerlink" title="Permalink to this term" href="#status"></a></dt><dd><p>Show current settings </p></dd><dt id="--version"><span class="term"><code class="option">--version</code></span><a class="headerlink" title="Permalink to this term" href="#--version"></a></dt><dd><p><a name="version-text"></a>Print a short version string and exit.</p></dd><dt id="--no-pager"><span class="term"><code class="option">--no-pager</code></span><a class="headerlink" title="Permalink to this term" href="#--no-pager"></a></dt><dd><p>Do not pipe output into a pager.</p></dd></dl></div><p>The following commands are understood:</p><div class="variablelist"><dl class="variablelist"><dt id="status"><span class="term"><span class="command"><strong>status</strong></span></span><a class="headerlink" title="Permalink to this term" href="#status"></a></dt><dd><p>Show current settings
of the system locale and keyboard of the system locale and keyboard
mapping.</p></dd><dt id="set-locale LOCALE..."><span class="term"><span class="command"><strong>set-locale LOCALE...</strong></span></span><a class="headerlink" title="Permalink to this term" href="#set-locale%20LOCALE..."></a></dt><dd><p>Set the system mapping.</p></dd><dt id="set-locale LOCALE..."><span class="term"><span class="command"><strong>set-locale LOCALE...</strong></span></span><a class="headerlink" title="Permalink to this term" href="#set-locale%20LOCALE..."></a></dt><dd><p>Set the system
@ -93,8 +98,8 @@
optionally takes a layout parameter to optionally takes a layout parameter to
limit the output to the variants limit the output to the variants
suitable for the specific suitable for the specific
layout.</p></dd></dl></div></div><div class="refsect1"><a name="idm214174436688"></a><h2 id="Exit status">Exit status<a class="headerlink" title="Permalink to this headline" href="#Exit%20status"></a></h2><p>On success, 0 is returned, a non-zero failure layout.</p></dd></dl></div></div><div class="refsect1"><a name="idm214199874560"></a><h2 id="Exit status">Exit status<a class="headerlink" title="Permalink to this headline" href="#Exit%20status"></a></h2><p>On success, 0 is returned, a non-zero failure
code otherwise.</p></div><div class="refsect1"><a name="idm214159534976"></a><h2 id="Environment">Environment<a class="headerlink" title="Permalink to this headline" href="#Environment"></a></h2><div class="variablelist"><dl class="variablelist"><dt id="$SYSTEMD_PAGER"><span class="term"><code class="varname">$SYSTEMD_PAGER</code></span><a class="headerlink" title="Permalink to this term" href="#%24SYSTEMD_PAGER"></a></dt><dd><p>Pager to use when code otherwise.</p></div><div class="refsect1"><a name="idm214186560208"></a><h2 id="Environment">Environment<a class="headerlink" title="Permalink to this headline" href="#Environment"></a></h2><div class="variablelist"><dl class="variablelist"><dt id="$SYSTEMD_PAGER"><span class="term"><code class="varname">$SYSTEMD_PAGER</code></span><a class="headerlink" title="Permalink to this term" href="#%24SYSTEMD_PAGER"></a></dt><dd><p>Pager to use when
<code class="option">--no-pager</code> is not given; <code class="option">--no-pager</code> is not given;
overrides <code class="varname">$PAGER</code>. Setting overrides <code class="varname">$PAGER</code>. Setting
this to an empty string or the value this to an empty string or the value
@ -102,7 +107,7 @@
<code class="option">--no-pager</code>.</p></dd><dt id="$SYSTEMD_LESS"><span class="term"><code class="varname">$SYSTEMD_LESS</code></span><a class="headerlink" title="Permalink to this term" href="#%24SYSTEMD_LESS"></a></dt><dd><p>Override the default <code class="option">--no-pager</code>.</p></dd><dt id="$SYSTEMD_LESS"><span class="term"><code class="varname">$SYSTEMD_LESS</code></span><a class="headerlink" title="Permalink to this term" href="#%24SYSTEMD_LESS"></a></dt><dd><p>Override the default
options passed to options passed to
<span class="command"><strong>less</strong></span> <span class="command"><strong>less</strong></span>
("<code class="literal">FRSXMK</code>").</p></dd></dl></div></div><div class="refsect1"><a name="idm214174434976"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p> ("<code class="literal">FRSXMK</code>").</p></dd></dl></div></div><div class="refsect1"><a name="idm214199872848"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="locale.html"><span class="citerefentry"><span class="refentrytitle">locale</span>(7)</span></a>, <a href="locale.html"><span class="citerefentry"><span class="refentrytitle">locale</span>(7)</span></a>,
<a href="locale.conf.html"><span class="citerefentry"><span class="refentrytitle">locale.conf</span>(5)</span></a>, <a href="locale.conf.html"><span class="citerefentry"><span class="refentrytitle">locale.conf</span>(5)</span></a>,

Some files were not shown because too many files have changed in this diff Show More