├── docs ├── Makefile ├── libudev │ ├── libudev.types │ ├── version.xml.in │ └── .gitignore ├── sysvinit │ ├── .gitignore │ └── Makefile ├── var-log │ ├── .gitignore │ └── Makefile ├── gudev │ ├── version.xml.in │ ├── gudev.types │ └── .gitignore └── .gitignore ├── man ├── Makefile └── .gitignore ├── src ├── boot │ ├── Makefile │ └── boot-loader.h ├── cgls │ └── Makefile ├── core │ ├── Makefile │ ├── .gitignore │ ├── org.freedesktop.systemd1.service │ ├── user.conf │ ├── kmod-setup.h │ ├── sync.h │ ├── hostname-setup.h │ ├── locale-setup.h │ ├── loopback-setup.h │ ├── machine-id-setup.h │ ├── audit-fd.h │ ├── selinux-setup.h │ ├── sysfs-show.h │ ├── tcpwrap.h │ ├── killall.h │ ├── smack-setup.h │ ├── switch-root.h │ ├── dbus-manager.h │ ├── ima-setup.h │ ├── load-dropin.h │ ├── umount.h │ └── unit-printf.h ├── fsck │ └── Makefile ├── test │ ├── Makefile │ └── test-cgroup-util.c ├── udev │ ├── Makefile │ ├── .gitignore │ ├── scsi_id │ │ ├── .gitignore │ │ └── README │ ├── udev.conf │ ├── udev.pc.in │ ├── keymap │ │ ├── .gitignore │ │ └── keyboard-force-release.sh.in │ └── .vimrc ├── ac-power │ └── Makefile ├── analyze │ ├── Makefile │ └── .gitignore ├── binfmt │ └── Makefile ├── bootchart │ ├── Makefile │ ├── bootchart.conf │ └── svg.h ├── cgtop │ └── Makefile ├── delta │ └── Makefile ├── gudev │ ├── Makefile │ ├── gudevmarshal.list │ ├── .gitignore │ ├── gudev-1.0.pc.in │ └── gudevenumtypes.h.template ├── hostname │ ├── Makefile │ ├── .gitignore │ ├── org.freedesktop.hostname1.service │ └── org.freedesktop.hostname1.conf ├── initctl │ └── Makefile ├── journal │ ├── Makefile │ ├── .gitignore │ ├── libsystemd-journal.pc.in │ ├── lookup3.h │ ├── journald.conf │ ├── microhttpd-util.h │ ├── journald-console.h │ ├── journal-vacuum.h │ └── journal-verify.h ├── libudev │ ├── Makefile │ ├── .gitignore │ └── libudev.pc.in ├── locale │ ├── Makefile │ ├── .gitignore │ ├── org.freedesktop.locale1.service │ ├── generate-kbd-model-map │ └── org.freedesktop.locale1.conf ├── login │ ├── Makefile │ ├── .gitignore │ ├── org.freedesktop.login1.service │ ├── 70-power-switch.rules │ ├── libsystemd-login.pc.in │ ├── 73-seat-late.rules.in │ └── logind.conf ├── notify │ └── Makefile ├── nspawn │ └── Makefile ├── readahead │ └── Makefile ├── shared │ ├── Makefile │ ├── linux │ │ └── Makefile │ ├── dev-setup.h │ ├── selinux-util.h │ ├── spawn-ask-password-agent.h │ ├── install-printf.h │ ├── dbus-loop.h │ ├── replace-var.h │ ├── pager.h │ ├── watchdog.h │ ├── spawn-polkit-agent.h │ └── acl-util.h ├── shutdownd │ └── Makefile ├── sleep │ └── Makefile ├── sysctl │ └── Makefile ├── systemctl │ └── Makefile ├── systemd │ └── Makefile ├── timedate │ ├── Makefile │ ├── .gitignore │ ├── org.freedesktop.timedate1.service │ └── org.freedesktop.timedate1.conf ├── timestamp │ └── Makefile ├── tmpfiles │ └── Makefile ├── vconsole │ └── Makefile ├── ask-password │ └── Makefile ├── cgroups-agent │ └── Makefile ├── cryptsetup │ └── Makefile ├── detect-virt │ └── Makefile ├── libsystemd-bus │ ├── Makefile │ └── bus-control.h ├── modules-load │ └── Makefile ├── python-systemd │ ├── Makefile │ ├── docs │ │ ├── .gitignore │ │ ├── daemon.rst │ │ ├── layout.html │ │ └── index.rst │ ├── .gitignore │ └── __init__.py ├── quotacheck │ └── Makefile ├── random-seed │ └── Makefile ├── remount-fs │ └── Makefile ├── reply-password │ └── Makefile ├── stdio-bridge │ └── Makefile ├── update-utmp │ └── Makefile ├── efi-boot-generator │ └── Makefile ├── fstab-generator │ └── Makefile ├── getty-generator │ └── Makefile ├── libsystemd-daemon │ ├── Makefile │ ├── .gitignore │ ├── libsystemd-daemon.pc.in │ └── libsystemd-daemon.sym ├── libsystemd-id128 │ ├── Makefile │ ├── .gitignore │ ├── libsystemd-id128.pc.in │ └── libsystemd-id128.sym ├── machine-id-setup │ └── Makefile ├── rc-local-generator │ └── Makefile ├── system-update-generator │ └── Makefile ├── tty-ask-password-agent │ └── Makefile ├── .gitignore └── Makefile ├── catalog └── Makefile ├── sysctl.d ├── Makefile ├── .gitignore ├── 50-coredump.conf.in └── 50-default.conf ├── units ├── Makefile ├── user │ ├── Makefile │ ├── .gitignore │ ├── default.target │ ├── exit.target │ └── systemd-exit.service.in ├── paths.target ├── swap.target ├── sockets.target ├── timers.target ├── sigpwr.target ├── cryptsetup.target ├── printer.target ├── bluetooth.target ├── smartcard.target ├── sound.target ├── local-fs-pre.target ├── remote-fs-pre.target ├── shutdown.target ├── umount.target ├── sleep.target ├── network.target ├── emergency.target ├── http-daemon.target ├── systemd-journal-gatewayd.socket ├── final.target ├── local-fs.target ├── network-online.target ├── remote-fs.target ├── suspend.target ├── systemd-tmpfiles-clean.timer ├── getty.target ├── hibernate.target ├── initrd-root-fs.target ├── hybrid-sleep.target ├── nss-user-lookup.target ├── initrd-fs.target ├── mail-transfer-agent.target ├── rescue.target ├── halt.target ├── rpcbind.target ├── systemd-initctl.service.in ├── systemd-shutdownd.service.in ├── reboot.target ├── systemd-initctl.socket ├── time-sync.target ├── basic.target ├── kexec.target ├── nss-lookup.target ├── poweroff.target ├── systemd-suspend.service.in ├── systemd-hibernate.service.in ├── multi-user.target ├── sysinit.target ├── graphical.target ├── systemd-hybrid-sleep.service.in ├── systemd-shutdownd.socket ├── systemd-halt.service.in ├── systemd-reboot.service.in ├── systemd-kexec.service.in ├── systemd-poweroff.service.in ├── systemd-user-sessions.service.in ├── systemd-readahead-drop.service ├── systemd-ask-password-wall.path ├── dev-mqueue.mount ├── systemd-localed.service.in ├── systemd-timedated.service.in ├── systemd-udevd-control.socket ├── systemd-udevd-kernel.socket ├── tmp.mount ├── halt-local.service.in ├── initrd-cleanup.service.in ├── systemd-journal-gatewayd.service.in ├── proc-sys-fs-binfmt_misc.mount ├── systemd-readahead-done.timer ├── initrd-switch-root.service.in ├── quotaon.service.in ├── systemd-random-seed-save.service.in ├── sys-kernel-debug.mount ├── systemd-readahead-done.service.in ├── dev-hugepages.mount ├── systemd-hostnamed.service.in ├── initrd.target ├── system-update.target ├── systemd-ask-password-console.path ├── systemd-fsck@.service.in ├── systemd-ask-password-console.service.in ├── systemd-random-seed-load.service.in ├── initrd-switch-root.target ├── initrd-udevadm-cleanup-db.service.in ├── systemd-ask-password-wall.service.in ├── sys-fs-fuse-connections.mount ├── sys-kernel-config.mount ├── systemd-quotacheck.service.in ├── proc-sys-fs-binfmt_misc.automount ├── rc-local.service.in ├── systemd-update-utmp-shutdown.service.in ├── systemd-vconsole-setup.service.in ├── systemd-journal-flush.service.in ├── user@.service.in ├── systemd-udev-trigger.service.in ├── systemd-update-utmp-runlevel.service.in ├── initrd-parse-etc.service.in ├── systemd-readahead-replay.service.in ├── systemd-udevd.service.in ├── syslog.target ├── systemd-fsck-root.service.in ├── systemd-remount-fs.service.in ├── systemd-tmpfiles-clean.service.in ├── systemd-udev-settle.service.in ├── systemd-journald.socket ├── systemd-tmpfiles-setup.service.in ├── systemd-logind.service.in ├── systemd-readahead-collect.service.in ├── console-getty.service.m4.in ├── console-shell.service.m4.in ├── systemd-sysctl.service.in └── systemd-journald.service.in ├── rules ├── .gitignore ├── 50-firmware.rules ├── 95-udev-late.rules ├── 61-accelerometer.rules ├── 75-probe_mtd.rules ├── 75-tty-description.rules ├── 64-btrfs.rules ├── 75-net-description.rules ├── 80-net-name-slot.rules ├── 80-drivers.rules ├── 60-persistent-alsa.rules ├── 60-cdrom_id.rules ├── 60-persistent-v4l.rules └── 60-persistent-serial.rules ├── tmpfiles.d ├── Makefile ├── x11.conf ├── tmp.conf └── systemd.conf ├── keymaps-force-release ├── dell-xps ├── dell-touchpad ├── common-volume-keys ├── hp-other ├── samsung-series-9 └── samsung-other ├── test ├── TEST-03-JOBS │ └── Makefile ├── TEST-02-CRYPTSETUP │ └── Makefile ├── .gitignore ├── f.service ├── sys.tar.xz ├── b.service ├── h.service ├── c.service ├── g.service ├── hello.service ├── sleep.service ├── a.service ├── sched_rr_ok.service ├── sched_idle_ok.service ├── sched_idle_bad.service ├── d.service ├── e.service ├── end.service ├── testsuite.target ├── hello-after-sleep.target ├── unstoppable.service ├── sched_rr_bad.service ├── sched_rr_change.service ├── TEST-01-BASIC │ └── Makefile ├── Makefile └── rules-test.sh ├── keymaps ├── module-sony-old ├── inventec-symphony_6.0_7.0 ├── toshiba-satellite_a100 ├── asus ├── fujitsu-amilo_pa_2548 ├── fujitsu-esprimo_mobile_v6 ├── hewlett-packard-presario-2100 ├── compaq-e_evo ├── hewlett-packard-2510p_2530p ├── medion-fid2060 ├── hewlett-packard-compaq_elitebook ├── hewlett-packard-hdx9494nr ├── samsung-sx20s ├── oqo-model2 ├── samsung-sq1us ├── hewlett-packard_elitebook-8440p ├── acer-aspire_5920g ├── fujitsu-amilo_pro_v3205 ├── fujitsu-esprimo_mobile_v5 ├── hewlett-packard-pavilion ├── acer-aspire_6920 ├── fujitsu-amilo_si_1520 ├── hewlett-packard-tablet ├── hewlett-packard-tx2 ├── medionnb-a555 ├── acer-travelmate_c300 ├── dell-latitude-xt2 ├── fujitsu-amilo_pro_edition_v3505 ├── toshiba-satellite_m30x ├── everex-xt5000 ├── hewlett-packard_elitebook-8460p ├── lenovo-3000 ├── fujitsu-amilo_li_2732 ├── module-sony-vpc ├── lenovo-thinkpad_x200_tablet ├── acer-aspire_8930 ├── ibm-thinkpad-usb-keyboard-trackpoint ├── module-sony-vgn ├── maxdata-pro_7000 ├── acer-aspire_5720 ├── module-sony ├── toshiba-satellite_a110 ├── module-asus-w3j ├── lenovo-thinkpad_x6_tablet ├── logitech-wave-pro-cordless ├── samsung-series-9 ├── hewlett-packard ├── lg-x110 ├── onkyo ├── micro-star ├── logitech-wave-cordless ├── lenovo-ideapad ├── module-ibm ├── samsung-other ├── zepto-znote ├── lenovo-thinkpad-usb-keyboard-trackpoint ├── logitech-wave ├── module-lenovo ├── acer └── genius-slimstar-320 ├── hwdb └── .gitignore ├── po ├── .gitignore ├── POTFILES.in └── POTFILES.skip ├── m4 ├── .gitignore └── acx_libwrap.m4 ├── .vimrc ├── .dir-locals.el ├── introspect.awk └── LICENSE.MIT /docs/Makefile: -------------------------------------------------------------------------------- 1 | ../src/Makefile -------------------------------------------------------------------------------- /docs/libudev/libudev.types: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /man/Makefile: -------------------------------------------------------------------------------- 1 | ../src/Makefile -------------------------------------------------------------------------------- /src/boot/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/cgls/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/core/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/fsck/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/test/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/udev/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /catalog/Makefile: -------------------------------------------------------------------------------- 1 | ../src/Makefile -------------------------------------------------------------------------------- /src/ac-power/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/analyze/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/binfmt/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/bootchart/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/cgtop/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/delta/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/gudev/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/hostname/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/initctl/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/journal/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/libudev/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/locale/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/login/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/notify/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/nspawn/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/readahead/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/shared/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/shutdownd/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/sleep/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/sysctl/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/systemctl/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/systemd/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/timedate/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/timestamp/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/tmpfiles/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/udev/.gitignore: -------------------------------------------------------------------------------- 1 | /udev.pc 2 | -------------------------------------------------------------------------------- /src/vconsole/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /sysctl.d/Makefile: -------------------------------------------------------------------------------- 1 | ../src/Makefile -------------------------------------------------------------------------------- /units/Makefile: -------------------------------------------------------------------------------- 1 | ../src/Makefile -------------------------------------------------------------------------------- /docs/sysvinit/.gitignore: -------------------------------------------------------------------------------- 1 | /README 2 | -------------------------------------------------------------------------------- /docs/var-log/.gitignore: -------------------------------------------------------------------------------- 1 | /README 2 | -------------------------------------------------------------------------------- /rules/.gitignore: -------------------------------------------------------------------------------- 1 | /99-systemd.rules 2 | -------------------------------------------------------------------------------- /src/ask-password/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/cgroups-agent/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/cryptsetup/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/detect-virt/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/libsystemd-bus/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/libudev/.gitignore: -------------------------------------------------------------------------------- 1 | /libudev.pc 2 | -------------------------------------------------------------------------------- /src/modules-load/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/python-systemd/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/quotacheck/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/random-seed/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/remount-fs/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/reply-password/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/shared/linux/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/stdio-bridge/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/update-utmp/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /tmpfiles.d/Makefile: -------------------------------------------------------------------------------- 1 | ../src/Makefile -------------------------------------------------------------------------------- /units/user/Makefile: -------------------------------------------------------------------------------- 1 | ../../src/Makefile -------------------------------------------------------------------------------- /docs/gudev/version.xml.in: -------------------------------------------------------------------------------- 1 | @VERSION@ 2 | -------------------------------------------------------------------------------- /docs/libudev/version.xml.in: -------------------------------------------------------------------------------- 1 | @VERSION@ 2 | -------------------------------------------------------------------------------- /docs/sysvinit/Makefile: -------------------------------------------------------------------------------- 1 | ../../src/Makefile -------------------------------------------------------------------------------- /docs/var-log/Makefile: -------------------------------------------------------------------------------- 1 | ../../src/Makefile -------------------------------------------------------------------------------- /keymaps-force-release/dell-xps: -------------------------------------------------------------------------------- 1 | 0x8C 2 | -------------------------------------------------------------------------------- /src/analyze/.gitignore: -------------------------------------------------------------------------------- 1 | /systemd-analyze 2 | -------------------------------------------------------------------------------- /src/efi-boot-generator/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/fstab-generator/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/getty-generator/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/libsystemd-daemon/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/libsystemd-id128/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/machine-id-setup/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/rc-local-generator/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /sysctl.d/.gitignore: -------------------------------------------------------------------------------- 1 | /50-coredump.conf 2 | -------------------------------------------------------------------------------- /docs/.gitignore: -------------------------------------------------------------------------------- 1 | /gtk-doc.make 2 | /html/ 3 | -------------------------------------------------------------------------------- /keymaps-force-release/dell-touchpad: -------------------------------------------------------------------------------- 1 | 0x9E 2 | -------------------------------------------------------------------------------- /src/system-update-generator/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /src/tty-ask-password-agent/Makefile: -------------------------------------------------------------------------------- 1 | ../Makefile -------------------------------------------------------------------------------- /units/user/.gitignore: -------------------------------------------------------------------------------- 1 | /systemd-exit.service 2 | -------------------------------------------------------------------------------- /src/gudev/gudevmarshal.list: -------------------------------------------------------------------------------- 1 | VOID:STRING,OBJECT 2 | -------------------------------------------------------------------------------- /src/python-systemd/docs/.gitignore: -------------------------------------------------------------------------------- 1 | !layout.html 2 | -------------------------------------------------------------------------------- /src/udev/scsi_id/.gitignore: -------------------------------------------------------------------------------- 1 | scsi_id_version.h 2 | -------------------------------------------------------------------------------- /test/TEST-03-JOBS/Makefile: -------------------------------------------------------------------------------- 1 | ../TEST-01-BASIC/Makefile -------------------------------------------------------------------------------- /keymaps/module-sony-old: -------------------------------------------------------------------------------- 1 | 0x06 battery 2 | 0x07 mute 3 | -------------------------------------------------------------------------------- /src/libsystemd-daemon/.gitignore: -------------------------------------------------------------------------------- 1 | /libsystemd-daemon.pc 2 | -------------------------------------------------------------------------------- /src/libsystemd-id128/.gitignore: -------------------------------------------------------------------------------- 1 | /libsystemd-id128.pc 2 | -------------------------------------------------------------------------------- /src/locale/.gitignore: -------------------------------------------------------------------------------- 1 | org.freedesktop.locale1.policy 2 | -------------------------------------------------------------------------------- /test/TEST-02-CRYPTSETUP/Makefile: -------------------------------------------------------------------------------- 1 | ../TEST-01-BASIC/Makefile -------------------------------------------------------------------------------- /keymaps/inventec-symphony_6.0_7.0: -------------------------------------------------------------------------------- 1 | 0xF3 prog2 2 | 0xF4 prog1 3 | -------------------------------------------------------------------------------- /keymaps/toshiba-satellite_a100: -------------------------------------------------------------------------------- 1 | 0xA4 stopcd 2 | 0xB2 www 3 | -------------------------------------------------------------------------------- /src/hostname/.gitignore: -------------------------------------------------------------------------------- 1 | org.freedesktop.hostname1.policy 2 | -------------------------------------------------------------------------------- /src/timedate/.gitignore: -------------------------------------------------------------------------------- 1 | org.freedesktop.timedate1.policy 2 | -------------------------------------------------------------------------------- /hwdb/.gitignore: -------------------------------------------------------------------------------- 1 | /pci.ids 2 | /usb.ids 3 | /oui.txt 4 | /iab.txt 5 | -------------------------------------------------------------------------------- /keymaps/asus: -------------------------------------------------------------------------------- 1 | 0xED volumeup 2 | 0xEE volumedown 3 | 0xEF mute 4 | -------------------------------------------------------------------------------- /src/python-systemd/.gitignore: -------------------------------------------------------------------------------- 1 | /id128-constants.h 2 | *.py[oc] 3 | -------------------------------------------------------------------------------- /test/.gitignore: -------------------------------------------------------------------------------- 1 | .testdir 2 | test.log 3 | /dev 4 | /run 5 | /sys 6 | -------------------------------------------------------------------------------- /src/journal/.gitignore: -------------------------------------------------------------------------------- 1 | /journald-gperf.c 2 | /libsystemd-journal.pc 3 | -------------------------------------------------------------------------------- /src/udev/udev.conf: -------------------------------------------------------------------------------- 1 | # see udev(7) for details 2 | 3 | #udev_log="info" 4 | -------------------------------------------------------------------------------- /keymaps/fujitsu-amilo_pa_2548: -------------------------------------------------------------------------------- 1 | 0xE0 volumedown 2 | 0xE1 volumeup 3 | 0xE5 prog1 4 | -------------------------------------------------------------------------------- /keymaps/fujitsu-esprimo_mobile_v6: -------------------------------------------------------------------------------- 1 | 0xCE brightnessup 2 | 0xEF brightnessdown 3 | -------------------------------------------------------------------------------- /keymaps/hewlett-packard-presario-2100: -------------------------------------------------------------------------------- 1 | 0xF0 help 2 | 0xF1 screenlock 3 | 0xF3 search 4 | -------------------------------------------------------------------------------- /test/f.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=F 3 | 4 | [Service] 5 | ExecStart=/bin/true 6 | -------------------------------------------------------------------------------- /keymaps/compaq-e_evo: -------------------------------------------------------------------------------- 1 | 0xA3 www # I key 2 | 0x9A search 3 | 0x9E email 4 | 0x9F homepage 5 | -------------------------------------------------------------------------------- /keymaps/hewlett-packard-2510p_2530p: -------------------------------------------------------------------------------- 1 | 0xD8 f23 # touchpad off 2 | 0xD9 f22 # touchpad on 3 | -------------------------------------------------------------------------------- /keymaps/medion-fid2060: -------------------------------------------------------------------------------- 1 | 0x6B channeldown # Thottle Down 2 | 0x6D channelup # Thottle Up 3 | -------------------------------------------------------------------------------- /keymaps-force-release/common-volume-keys: -------------------------------------------------------------------------------- 1 | 0xa0 #mute 2 | 0xae #volume down 3 | 0xb0 #volume up 4 | -------------------------------------------------------------------------------- /test/sys.tar.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clearlinux/systemd-stable/v201-stable/test/sys.tar.xz -------------------------------------------------------------------------------- /po/.gitignore: -------------------------------------------------------------------------------- 1 | POTFILES 2 | Makefile.in.in 3 | .intltool-merge-cache 4 | Makefile 5 | systemd.pot 6 | -------------------------------------------------------------------------------- /keymaps/hewlett-packard-compaq_elitebook: -------------------------------------------------------------------------------- 1 | 0x88 presentation 2 | 0xD9 help # I key (high keycode: "info") 3 | -------------------------------------------------------------------------------- /keymaps/hewlett-packard-hdx9494nr: -------------------------------------------------------------------------------- 1 | 0xB2 www # FnF3 2 | 0xD8 f23 # touchpad off 3 | 0xD9 f22 # touchpad on 4 | -------------------------------------------------------------------------------- /keymaps/samsung-sx20s: -------------------------------------------------------------------------------- 1 | 0x74 mute 2 | 0x75 mute 3 | 0x77 f22 # Touchpad on 4 | 0x79 f23 # Touchpad off 5 | -------------------------------------------------------------------------------- /man/.gitignore: -------------------------------------------------------------------------------- 1 | /systemd.directives.xml 2 | /systemd.index.xml 3 | /*.[13578] 4 | /custom-entities.ent 5 | -------------------------------------------------------------------------------- /test/b.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=B 3 | Wants=f.service 4 | 5 | [Service] 6 | ExecStart=/bin/true 7 | -------------------------------------------------------------------------------- /test/h.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=H 3 | Wants=g.service 4 | 5 | [Service] 6 | ExecStart=/bin/true 7 | -------------------------------------------------------------------------------- /keymaps/oqo-model2: -------------------------------------------------------------------------------- 1 | 0x8E wlan 2 | 0xF0 switchvideomode 3 | 0xF1 mute 4 | 0xF2 volumedown 5 | 0xF3 volumeup 6 | -------------------------------------------------------------------------------- /keymaps/samsung-sq1us: -------------------------------------------------------------------------------- 1 | 0xD4 menu 2 | 0xD8 f1 3 | 0xD9 f10 4 | 0xD6 f3 5 | 0xD7 f9 6 | 0xE4 f5 7 | 0xEE f11 8 | -------------------------------------------------------------------------------- /src/udev/udev.pc.in: -------------------------------------------------------------------------------- 1 | Name: udev 2 | Description: udev 3 | Version: @VERSION@ 4 | 5 | udevdir=@udevlibexecdir@ 6 | -------------------------------------------------------------------------------- /test/c.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=C 3 | Requires=a.service 4 | 5 | [Service] 6 | ExecStart=/bin/true 7 | -------------------------------------------------------------------------------- /test/g.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=G 3 | Conflicts=e.service 4 | 5 | [Service] 6 | ExecStart=/bin/true 7 | -------------------------------------------------------------------------------- /keymaps/hewlett-packard_elitebook-8440p: -------------------------------------------------------------------------------- 1 | 0x88 www 2 | 0xA0 mute 3 | 0xAE volumedown 4 | 0xB0 volumeup 5 | 0xEC mail 6 | -------------------------------------------------------------------------------- /test/hello.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Hello World 3 | 4 | [Service] 5 | ExecStart=/bin/echo "Hello World" 6 | -------------------------------------------------------------------------------- /keymaps/acer-aspire_5920g: -------------------------------------------------------------------------------- 1 | 0x8A media 2 | 0x92 media 3 | 0xA6 setup 4 | 0xB2 www 5 | 0xD9 bluetooth # (toggle) on-to-off 6 | -------------------------------------------------------------------------------- /keymaps/fujitsu-amilo_pro_v3205: -------------------------------------------------------------------------------- 1 | 0xF4 f21 # FIXME: silent-mode decrease CPU/GPU clock 2 | 0xF7 switchvideomode # Fn+F3 3 | -------------------------------------------------------------------------------- /keymaps/fujitsu-esprimo_mobile_v5: -------------------------------------------------------------------------------- 1 | 0xA9 switchvideomode 2 | 0xD9 brightnessdown 3 | 0xDF sleep 4 | 0xEF brightnessup 5 | -------------------------------------------------------------------------------- /keymaps/hewlett-packard-pavilion: -------------------------------------------------------------------------------- 1 | 0x88 media # FIXME: quick play 2 | 0xD8 f23 # touchpad off 3 | 0xD9 f22 # touchpad on 4 | -------------------------------------------------------------------------------- /m4/.gitignore: -------------------------------------------------------------------------------- 1 | intltool.m4 2 | libtool.m4 3 | ltoptions.m4 4 | ltsugar.m4 5 | ltversion.m4 6 | lt~obsolete.m4 7 | gtk-doc.m4 8 | -------------------------------------------------------------------------------- /test/sleep.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Sleep for 1 minute 3 | 4 | [Service] 5 | Type=oneshot 6 | ExecStart=/bin/sleep 60 7 | -------------------------------------------------------------------------------- /keymaps/acer-aspire_6920: -------------------------------------------------------------------------------- 1 | 0xD9 bluetooth # (toggle) on-to-off 2 | 0x92 media 3 | 0x9E back 4 | 0x83 rewind 5 | 0x89 fastforward 6 | -------------------------------------------------------------------------------- /test/a.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=A 3 | Requires=b.service 4 | Before=b.service 5 | 6 | [Service] 7 | ExecStart=/bin/true 8 | -------------------------------------------------------------------------------- /.vimrc: -------------------------------------------------------------------------------- 1 | " 'set exrc' in ~/.vimrc will read .vimrc from the current directory 2 | set tabstop=8 3 | set shiftwidth=8 4 | set expandtab 5 | -------------------------------------------------------------------------------- /keymaps-force-release/hp-other: -------------------------------------------------------------------------------- 1 | # list of scancodes (hex or decimal), optional comment 2 | 0xd8 # Touchpad off 3 | 0xd9 # Touchpad on 4 | -------------------------------------------------------------------------------- /keymaps/fujitsu-amilo_si_1520: -------------------------------------------------------------------------------- 1 | 0xE1 wlan 2 | 0xF3 wlan 3 | 0xEE brightnessdown 4 | 0xE0 brightnessup 5 | 0xE2 bluetooth 6 | 0xF7 video 7 | -------------------------------------------------------------------------------- /keymaps/hewlett-packard-tablet: -------------------------------------------------------------------------------- 1 | 0x82 prog2 # Funny Key 2 | 0x83 prog1 # Q 3 | 0x84 tab 4 | 0x85 esc 5 | 0x86 pageup 6 | 0x87 pagedown 7 | -------------------------------------------------------------------------------- /src/udev/keymap/.gitignore: -------------------------------------------------------------------------------- 1 | keyboard-force-release.sh 2 | keys-from-name.gperf 3 | keys-from-name.h 4 | keys-to-name.h 5 | keys.txt 6 | -------------------------------------------------------------------------------- /docs/gudev/gudev.types: -------------------------------------------------------------------------------- 1 | g_udev_device_type_get_type 2 | g_udev_device_get_type 3 | g_udev_client_get_type 4 | g_udev_enumerator_get_type 5 | -------------------------------------------------------------------------------- /keymaps/hewlett-packard-tx2: -------------------------------------------------------------------------------- 1 | 0xC2 media 2 | 0xD8 f23 # Toggle touchpad button on tx2 (OFF) 3 | 0xD9 f22 # Toggle touchpad button on tx2 (ON) 4 | -------------------------------------------------------------------------------- /keymaps/medionnb-a555: -------------------------------------------------------------------------------- 1 | 0x63 www # N button 2 | 0x66 prog1 # link 1 button 3 | 0x67 email # envelope button 4 | 0x69 prog2 # link 2 button 5 | -------------------------------------------------------------------------------- /src/login/.gitignore: -------------------------------------------------------------------------------- 1 | /libsystemd-login.pc 2 | /logind-gperf.c 3 | /org.freedesktop.login1.policy 4 | /71-seat.rules 5 | /73-seat-late.rules 6 | -------------------------------------------------------------------------------- /test/sched_rr_ok.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Default prio for RR 3 | 4 | [Service] 5 | ExecStart=/bin/true 6 | CPUSchedulingPolicy=rr 7 | -------------------------------------------------------------------------------- /src/udev/.vimrc: -------------------------------------------------------------------------------- 1 | " 'set exrc' in ~/.vimrc will read .vimrc from the current directory 2 | set tabstop=8 3 | set shiftwidth=8 4 | set expandtab 5 | -------------------------------------------------------------------------------- /test/sched_idle_ok.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Sched idle with prio 0 3 | 4 | [Service] 5 | ExecStart=/bin/true 6 | CPUSchedulingPriority=0 7 | -------------------------------------------------------------------------------- /test/sched_idle_bad.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Bad sched priority for Idle 3 | 4 | [Service] 5 | ExecStart=/bin/true 6 | CPUSchedulingPriority=1 7 | -------------------------------------------------------------------------------- /keymaps/acer-travelmate_c300: -------------------------------------------------------------------------------- 1 | 0x67 f24 # FIXME: rotate screen 2 | 0x68 up 3 | 0x69 down 4 | 0x6B fn 5 | 0x6C screenlock # FIXME: lock tablet device/buttons 6 | -------------------------------------------------------------------------------- /keymaps/dell-latitude-xt2: -------------------------------------------------------------------------------- 1 | 0x9B up # tablet rocker up 2 | 0x9E enter # tablet rocker press 3 | 0x9F back # tablet back 4 | 0xA3 down # tablet rocker down 5 | -------------------------------------------------------------------------------- /keymaps/fujitsu-amilo_pro_edition_v3505: -------------------------------------------------------------------------------- 1 | 0xA5 help # Fn-F1 2 | 0xA9 switchvideomode # Fn-F3 3 | 0xD9 brightnessdown # Fn-F8 4 | 0xE0 brightnessup # Fn-F9 5 | -------------------------------------------------------------------------------- /rules/50-firmware.rules: -------------------------------------------------------------------------------- 1 | # do not edit this file, it will be overwritten on update 2 | 3 | SUBSYSTEM=="firmware", ACTION=="add", RUN{builtin}="firmware" 4 | -------------------------------------------------------------------------------- /src/core/.gitignore: -------------------------------------------------------------------------------- 1 | /syscall-from-name.gperf 2 | /syscall-from-name.h 3 | /syscall-list.txt 4 | /syscall-to-name.h 5 | /macros.systemd 6 | /systemd.pc 7 | -------------------------------------------------------------------------------- /src/gudev/.gitignore: -------------------------------------------------------------------------------- 1 | gudev-1.0.pc 2 | gudevenumtypes.c 3 | gudevenumtypes.h 4 | gudevmarshal.c 5 | gudevmarshal.h 6 | GUdev-1.0.gir 7 | GUdev-1.0.typelib 8 | -------------------------------------------------------------------------------- /test/d.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=D:Cyclic 3 | After=b.service 4 | Before=a.service 5 | Requires=a.service 6 | 7 | [Service] 8 | ExecStart=/bin/true 9 | -------------------------------------------------------------------------------- /test/e.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=E:Cyclic 3 | After=b.service 4 | Before=a.service 5 | Wants=a.service 6 | 7 | [Service] 8 | ExecStart=/bin/true 9 | -------------------------------------------------------------------------------- /test/end.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=End the test 3 | After=testsuite.service 4 | 5 | [Service] 6 | ExecStart=/usr/bin/systemctl poweroff --no-block 7 | -------------------------------------------------------------------------------- /keymaps/toshiba-satellite_m30x: -------------------------------------------------------------------------------- 1 | 0xef brightnessdown 2 | 0xd9 brightnessup 3 | 0xee screenlock 4 | 0x93 media 5 | 0x9e f22 #touchpad_enable 6 | 0x9f f23 #touchpad_disable 7 | -------------------------------------------------------------------------------- /test/testsuite.target: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Testsuite target 3 | Requires=multi-user.target 4 | After=multi-user.target 5 | Conflicts=rescue.target 6 | AllowIsolate=yes 7 | -------------------------------------------------------------------------------- /test/hello-after-sleep.target: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Sleep for a minute, then say hello. 3 | Wants=sleep.service hello.service 4 | After=sleep.service 5 | Before=hello.service 6 | -------------------------------------------------------------------------------- /keymaps/everex-xt5000: -------------------------------------------------------------------------------- 1 | 0x5C media 2 | 0x65 f21 # Fn+F5 Touchpad toggle 3 | 0x67 prog3 # Fan Speed Control button 4 | 0x6F brightnessup 5 | 0x7F brightnessdown 6 | 0xB2 www 7 | 0xEC mail 8 | -------------------------------------------------------------------------------- /keymaps/hewlett-packard_elitebook-8460p: -------------------------------------------------------------------------------- 1 | 0xF8 wlan # Wireless HW switch button 2 | 0xB3 prog1 # Fn+F11 - Ambient Light Sensor button 3 | 0xB1 prog2 # Fn+ESC - System information button 4 | -------------------------------------------------------------------------------- /keymaps/lenovo-3000: -------------------------------------------------------------------------------- 1 | 0x8B switchvideomode # Fn+F7 video 2 | 0x96 wlan # Fn+F5 wireless 3 | 0x97 sleep # Fn+F4 suspend 4 | 0x98 suspend # Fn+F12 hibernate 5 | 0xB4 prog1 # Lenovo Care 6 | -------------------------------------------------------------------------------- /test/unstoppable.service: -------------------------------------------------------------------------------- 1 | [Service] 2 | Type=oneshot 3 | RemainAfterExit=yes 4 | ExecStart=/bin/echo 'I'm unstoppable!' 5 | ExecStop=/bin/systemctl start --no-block unstoppable.service 6 | -------------------------------------------------------------------------------- /keymaps/fujitsu-amilo_li_2732: -------------------------------------------------------------------------------- 1 | 0xD9 brightnessdown # Fn+F8 brightness down 2 | 0xEF brightnessup # Fn+F9 brightness up 3 | 0xA9 switchvideomode # Fn+F10 Cycle between available video outputs 4 | -------------------------------------------------------------------------------- /keymaps/module-sony-vpc: -------------------------------------------------------------------------------- 1 | # 0x05 touchpad_toggle # fn_f1 -> KEY_TOUCHPAD_TOGGLE 2 | 0x05 f21 # fn_f1 -> KEY_F21 (The actual touchpad toggle) 3 | 0x0d zoomout # fn_f9 4 | 0x0e zoomin # fn_f10 5 | -------------------------------------------------------------------------------- /keymaps/lenovo-thinkpad_x200_tablet: -------------------------------------------------------------------------------- 1 | 0x5D menu 2 | 0x63 fn 3 | 0x66 screenlock 4 | 0x67 cyclewindows # bezel circular arrow 5 | 0x68 setup # bezel setup / menu 6 | 0x6c direction # rotate screen 7 | -------------------------------------------------------------------------------- /rules/95-udev-late.rules: -------------------------------------------------------------------------------- 1 | # do not edit this file, it will be overwritten on update 2 | 3 | # run a command on remove events 4 | ACTION=="remove", ENV{REMOVE_CMD}!="", RUN+="$env{REMOVE_CMD}" 5 | -------------------------------------------------------------------------------- /keymaps/acer-aspire_8930: -------------------------------------------------------------------------------- 1 | 0xCA prog3 # key 'HOLD' on cine dash media console 2 | 0x83 rewind 3 | 0x89 fastforward 4 | 0x92 media # key 'ARCADE' on cine dash media console 5 | 0x9E back 6 | -------------------------------------------------------------------------------- /keymaps/ibm-thinkpad-usb-keyboard-trackpoint: -------------------------------------------------------------------------------- 1 | 0x900f0 screenlock 2 | 0x900f1 wlan 3 | 0x900f2 switchvideomode 4 | 0x900f3 suspend 5 | 0x900f4 brightnessup 6 | 0x900f5 brightnessdown 7 | 0x900f8 zoom 8 | -------------------------------------------------------------------------------- /src/.gitignore: -------------------------------------------------------------------------------- 1 | load-fragment-gperf-nulstr.c 2 | load-fragment-gperf.c 3 | load-fragment-gperf.gperf 4 | org.freedesktop.systemd1.policy.in 5 | org.freedesktop.systemd1.policy 6 | 99-systemd.rules 7 | -------------------------------------------------------------------------------- /keymaps/module-sony-vgn: -------------------------------------------------------------------------------- 1 | 0x00 brightnessdown # Fn+F5 2 | 0x10 brightnessup # Fn+F6 3 | 0x11 switchvideomode # Fn+F7 4 | 0x12 zoomout 5 | 0x14 zoomin 6 | 0x15 suspend # Fn+F12 7 | 0x17 prog1 8 | 0x20 media 9 | -------------------------------------------------------------------------------- /rules/61-accelerometer.rules: -------------------------------------------------------------------------------- 1 | # do not edit this file, it will be overwritten on update 2 | 3 | SUBSYSTEM=="input", ACTION!="remove", ENV{ID_INPUT_ACCELEROMETER}=="1", IMPORT{program}="accelerometer %p" 4 | -------------------------------------------------------------------------------- /test/sched_rr_bad.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Bad sched priority for RR 3 | 4 | [Service] 5 | ExecStart=/bin/true 6 | CPUSchedulingPolicy=rr 7 | CPUSchedulingPriority=0 8 | CPUSchedulingPriority=100 9 | -------------------------------------------------------------------------------- /keymaps/maxdata-pro_7000: -------------------------------------------------------------------------------- 1 | 0x97 prog2 2 | 0x9F prog1 3 | 0xA0 mute # Fn-F5 4 | 0x82 www 5 | 0xEC email 6 | 0xAE volumedown # Fn-Down 7 | 0xB0 volumeup # Fn-Up 8 | 0xDF suspend # Fn+F2 9 | 0xF5 help 10 | -------------------------------------------------------------------------------- /src/udev/scsi_id/README: -------------------------------------------------------------------------------- 1 | scsi_id - generate a SCSI unique identifier for a given SCSI device 2 | 3 | Please send questions, comments or patches to or 4 | . 5 | -------------------------------------------------------------------------------- /rules/75-probe_mtd.rules: -------------------------------------------------------------------------------- 1 | # do not edit this file, it will be overwritten on update 2 | 3 | ACTION!="add", GOTO="mtd_probe_end" 4 | 5 | KERNEL=="mtd*ro", IMPORT{program}="mtd_probe $devnode" 6 | 7 | LABEL="mtd_probe_end" 8 | -------------------------------------------------------------------------------- /keymaps/acer-aspire_5720: -------------------------------------------------------------------------------- 1 | 0x84 bluetooth # sent when bluetooth module missing, and key pressed 2 | 0x92 media # acer arcade 3 | 0xD4 bluetooth # bluetooth on 4 | 0xD9 bluetooth # bluetooth off 5 | 0xF4 prog3 # e-key 6 | -------------------------------------------------------------------------------- /test/sched_rr_change.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Change prio 3 | 4 | [Service] 5 | ExecStart=/bin/true 6 | CPUSchedulingPolicy=rr 7 | CPUSchedulingPriority=1 8 | CPUSchedulingPriority=2 9 | CPUSchedulingPriority=99 10 | -------------------------------------------------------------------------------- /keymaps/module-sony: -------------------------------------------------------------------------------- 1 | 0x06 mute # Fn+F2 2 | 0x07 volumedown # Fn+F3 3 | 0x08 volumeup # Fn+F4 4 | 0x09 brightnessdown # Fn+F5 5 | 0x0A brightnessup # Fn+F6 6 | 0x0B switchvideomode # Fn+F7 7 | 0x0E zoom # Fn+F10 8 | 0x10 suspend # Fn+F12 9 | -------------------------------------------------------------------------------- /keymaps/toshiba-satellite_a110: -------------------------------------------------------------------------------- 1 | 0x92 stop 2 | 0x93 www 3 | 0x94 media 4 | 0x9E f22 # Touchpad on 5 | 0x9F f23 # Touchpad off 6 | 0xB9 nextsong 7 | 0xD9 brightnessup 8 | 0xEE screenlock 9 | 0xF4 previoussong 10 | 0xF7 playpause 11 | -------------------------------------------------------------------------------- /.dir-locals.el: -------------------------------------------------------------------------------- 1 | ; Sets emacs variables based on mode. 2 | ; A list of (major-mode . ((var1 . value1) (var2 . value2))) 3 | ; Mode can be nil, which gives default values. 4 | 5 | ((nil . ((indent-tabs-mode . nil) 6 | (tab-width . 8))) 7 | ) 8 | -------------------------------------------------------------------------------- /keymaps/module-asus-w3j: -------------------------------------------------------------------------------- 1 | 0x41 nextsong 2 | 0x45 playpause 3 | 0x43 stopcd 4 | 0x40 previoussong 5 | 0x4C ejectclosecd 6 | 0x32 mute 7 | 0x31 volumedown 8 | 0x30 volumeup 9 | 0x5D wlan 10 | 0x7E bluetooth 11 | 0x8A media # high keycode: "tv" 12 | -------------------------------------------------------------------------------- /keymaps/lenovo-thinkpad_x6_tablet: -------------------------------------------------------------------------------- 1 | 0x6C f21 # rotate 2 | 0x68 screenlock # screenlock 3 | 0x6B esc # escape 4 | 0x6D right # right on d-pad 5 | 0x6E left # left on d-pad 6 | 0x71 up # up on d-pad 7 | 0x6F down # down on d-pad 8 | 0x69 enter # enter on d-pad 9 | -------------------------------------------------------------------------------- /po/POTFILES.in: -------------------------------------------------------------------------------- 1 | src/hostname/org.freedesktop.hostname1.policy.in 2 | src/locale/org.freedesktop.locale1.policy.in 3 | src/login/org.freedesktop.login1.policy.in 4 | src/timedate/org.freedesktop.timedate1.policy.in 5 | src/core/org.freedesktop.systemd1.policy.in.in 6 | -------------------------------------------------------------------------------- /introspect.awk: -------------------------------------------------------------------------------- 1 | BEGIN { 2 | print "" 4 | print "" 5 | } 6 | 7 | // { 8 | print 9 | } 10 | 11 | END { 12 | print "" 13 | } 14 | -------------------------------------------------------------------------------- /keymaps-force-release/samsung-series-9: -------------------------------------------------------------------------------- 1 | # list of scancodes (hex or decimal), optional comment 2 | 0xCE # Fn+F8 keyboard backlit up 3 | 0x8D # Fn+F7 keyboard backlit down 4 | 0x97 # Fn+F12 wifi on/off 5 | 0x96 # Fn+F1 performance mode (?) 6 | 0xD5 # Fn+F6 battery life extender 7 | -------------------------------------------------------------------------------- /keymaps/logitech-wave-pro-cordless: -------------------------------------------------------------------------------- 1 | 0xC01B6 camera 2 | 0xC0183 media 3 | 0xC0184 wordprocessor 4 | 0xC0186 spreadsheet 5 | 0xC018E calendar 6 | 0xC0223 homepage 7 | 0xC01BC messenger 8 | 0xC018A mail 9 | 0xC0221 search 10 | 0xC00B8 ejectcd 11 | 0xC022D zoomin 12 | 0xC022E zoomout 13 | -------------------------------------------------------------------------------- /keymaps/samsung-series-9: -------------------------------------------------------------------------------- 1 | 0x96 kbdillumup # Fn+F8 keyboard backlit up 2 | 0x97 kbdillumdown # Fn+F7 keyboard backlit down 3 | 0xD5 wlan # Fn+F12 wifi on/off 4 | 0xCE prog1 # Fn+F1 performance mode 5 | 0x8D prog2 # Fn+F6 battery life extender 6 | -------------------------------------------------------------------------------- /src/gudev/gudev-1.0.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: gudev-1.0 7 | Description: GObject bindings for libudev 8 | Version: @VERSION@ 9 | Requires: glib-2.0, gobject-2.0 10 | Libs: -L${libdir} -lgudev-1.0 11 | Cflags: -I${includedir}/gudev-1.0 12 | -------------------------------------------------------------------------------- /keymaps/hewlett-packard: -------------------------------------------------------------------------------- 1 | 0x81 fn_esc 2 | 0x89 battery # FnF8 3 | 0x8A screenlock # FnF6 4 | 0x8B camera 5 | 0x8C media # music 6 | 0x8E dvd 7 | 0xB1 help 8 | 0xB3 f23 # FIXME: Auto brightness 9 | 0xD7 wlan 10 | 0x92 brightnessdown # FnF7 (FnF9 on 6730b) 11 | 0x97 brightnessup # FnF8 (FnF10 on 6730b) 12 | 0xEE switchvideomode # FnF4 13 | -------------------------------------------------------------------------------- /test/TEST-01-BASIC/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | @make -s --no-print-directory -C ../.. all 3 | @basedir=../.. TEST_BASE_DIR=../ ./test.sh --all 4 | setup: 5 | @make --no-print-directory -C ../.. all 6 | @basedir=../.. TEST_BASE_DIR=../ ./test.sh --setup 7 | clean: 8 | @basedir=../.. TEST_BASE_DIR=../ ./test.sh --clean 9 | run: 10 | @basedir=../.. TEST_BASE_DIR=../ ./test.sh --run 11 | -------------------------------------------------------------------------------- /docs/gudev/.gitignore: -------------------------------------------------------------------------------- 1 | /*.bak 2 | /gtk-doc.make 3 | /version.xml 4 | /Makefile 5 | /gudev-overrides.txt 6 | /gudev-decl-list.txt 7 | /gudev-decl.txt 8 | /gudev-undeclared.txt 9 | /gudev-undocumented.txt 10 | /gudev-unused.txt 11 | /gudev.args 12 | /gudev.hierarchy 13 | /gudev.interfaces 14 | /gudev.prerequisites 15 | /gudev.signals 16 | /html/ 17 | /xml/ 18 | /*.stamp 19 | /tmpl/ 20 | -------------------------------------------------------------------------------- /keymaps-force-release/samsung-other: -------------------------------------------------------------------------------- 1 | # list of scancodes (hex or decimal), optional comment 2 | 0x82 # Fn+F4 CRT/LCD 3 | 0x83 # Fn+F2 battery 4 | 0x84 # Fn+F5 backlight on/off 5 | 0x86 # Fn+F9 WLAN 6 | 0x88 # Fn-Up brightness up 7 | 0x89 # Fn-Down brightness down 8 | 0xB3 # Fn+F8 switch power mode (battery/dynamic/performance) 9 | 0xF7 # Fn+F10 Touchpad on 10 | 0xF9 # Fn+F10 Touchpad off 11 | -------------------------------------------------------------------------------- /keymaps/lg-x110: -------------------------------------------------------------------------------- 1 | 0xA0 mute # Fn-F9 2 | 0xAE volumedown # Fn-Left 3 | 0xAF search # Fn-F3 4 | 0xB0 volumeup # Fn-Right 5 | 0xB1 battery # Fn-F10 Info 6 | 0xB3 suspend # Fn-F12 7 | 0xDF sleep # Fn-F4 8 | # 0xE2 bluetooth # satellite dish2 9 | 0xE4 f21 # Fn-F5 Touchpad disable 10 | 0xF6 wlan # Fn-F6 11 | 0xF7 reserved # brightnessdown # Fn-Down 12 | 0xF8 reserved # brightnessup # Fn-Up 13 | -------------------------------------------------------------------------------- /keymaps/onkyo: -------------------------------------------------------------------------------- 1 | 0xA0 mute # Fn+D 2 | 0xAE volumedown # Fn+F 3 | 0xB0 volumeup # Fn+G 4 | 0xDF sleep # Fn+W 5 | 0xE0 bluetooth # Fn+H 6 | 0xE2 cyclewindows # Fn+Esc 7 | 0xEE battery # Fn+Q 8 | 0xF0 media # Fn+R 9 | 0xF5 switchvideomode # Fn+E 10 | 0xF6 camera # Fn+T 11 | 0xF7 f21 # Fn+Y (touchpad toggle) 12 | 0xF8 brightnessup # Fn+S 13 | 0xF9 brightnessdown # Fn+A 14 | 0xFB wlan # Fn+J 15 | -------------------------------------------------------------------------------- /keymaps/micro-star: -------------------------------------------------------------------------------- 1 | 0xA0 mute # Fn-F9 2 | 0xAE volumedown # Fn-F7 3 | 0xB0 volumeup # Fn-F8 4 | 0xB2 www # e button 5 | 0xDF sleep # Fn-F12 6 | 0xE2 bluetooth # satellite dish2 7 | 0xE4 f21 # Fn-F3 Touchpad disable 8 | 0xEC email # envelope button 9 | 0xEE camera # Fn-F6 camera disable 10 | 0xF6 wlan # satellite dish1 11 | 0xF7 brightnessdown # Fn-F4 12 | 0xF8 brightnessup # Fn-F5 13 | 0xF9 search 14 | -------------------------------------------------------------------------------- /docs/libudev/.gitignore: -------------------------------------------------------------------------------- 1 | /gtk-doc.make 2 | /version.xml 3 | /Makefile 4 | /libudev-overrides.txt 5 | /libudev-decl-list.txt 6 | /libudev-decl.txt 7 | /libudev-undeclared.txt 8 | /libudev-undocumented.txt 9 | /libudev-unused.txt 10 | /libudev.args 11 | /libudev.hierarchy 12 | /libudev.interfaces 13 | /libudev.prerequisites 14 | /libudev.signals 15 | /html/ 16 | /xml/ 17 | /*.stamp 18 | /*.bak 19 | /tmpl/ 20 | -------------------------------------------------------------------------------- /keymaps/logitech-wave-cordless: -------------------------------------------------------------------------------- 1 | 0xD4 zoomin 2 | 0xCC zoomout 3 | 0xC0183 media 4 | 0xC1005 camera 5 | 0xC101F zoomout 6 | 0xC1020 zoomin 7 | 0xC1041 wordprocessor 8 | 0xC1042 spreadsheet 9 | 0xC1043 calendar 10 | 0xC1044 prog2 #fn+f4 (program a) 11 | 0xC1045 prog3 #fn+f5 (program b) 12 | 0xC1046 prog4 #fn+f6 (program c) 13 | 0xC1048 messenger 14 | 0xC104A find #fn+f10 (search www) 15 | 0xC104C ejectclosecd 16 | -------------------------------------------------------------------------------- /units/paths.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Paths 10 | Documentation=man:systemd.special(7) 11 | -------------------------------------------------------------------------------- /units/swap.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Swap 10 | Documentation=man:systemd.special(7) 11 | -------------------------------------------------------------------------------- /units/sockets.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Sockets 10 | Documentation=man:systemd.special(7) 11 | -------------------------------------------------------------------------------- /units/timers.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Timers 10 | Documentation=man:systemd.special(7) 11 | -------------------------------------------------------------------------------- /units/sigpwr.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Power Failure 10 | Documentation=man:systemd.special(7) 11 | -------------------------------------------------------------------------------- /units/cryptsetup.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Encrypted Volumes 10 | Documentation=man:systemd.special(7) 11 | -------------------------------------------------------------------------------- /keymaps/lenovo-ideapad: -------------------------------------------------------------------------------- 1 | # Key codes observed on S10-3, assumed valid on other IdeaPad models 2 | 0x81 rfkill # does nothing in BIOS 3 | 0x83 display_off # BIOS toggles screen state 4 | 0xB9 brightnessup # does nothing in BIOS 5 | 0xBA brightnessdown # does nothing in BIOS 6 | 0xF1 camera # BIOS toggles camera power 7 | 0xf2 f21 # touchpad toggle (key alternately emits f2 and f3) 8 | 0xf3 f21 9 | -------------------------------------------------------------------------------- /units/printer.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Printer 10 | Documentation=man:systemd.special(7) 11 | StopWhenUnneeded=yes 12 | -------------------------------------------------------------------------------- /units/bluetooth.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Bluetooth 10 | Documentation=man:systemd.special(7) 11 | StopWhenUnneeded=yes 12 | -------------------------------------------------------------------------------- /units/smartcard.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Smart Card 10 | Documentation=man:systemd.special(7) 11 | StopWhenUnneeded=yes 12 | -------------------------------------------------------------------------------- /units/sound.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Sound Card 10 | Documentation=man:systemd.special(7) 11 | StopWhenUnneeded=yes 12 | -------------------------------------------------------------------------------- /units/user/default.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Default 10 | Documentation=man:systemd.special(7) 11 | AllowIsolate=yes 12 | -------------------------------------------------------------------------------- /src/core/org.freedesktop.systemd1.service: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [D-BUS Service] 9 | Name=org.freedesktop.systemd1 10 | Exec=/bin/false 11 | User=root 12 | -------------------------------------------------------------------------------- /units/local-fs-pre.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Local File Systems (Pre) 10 | Documentation=man:systemd.special(7) 11 | RefuseManualStart=yes 12 | -------------------------------------------------------------------------------- /units/remote-fs-pre.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Remote File Systems (Pre) 10 | Documentation=man:systemd.special(7) 11 | RefuseManualStart=yes 12 | -------------------------------------------------------------------------------- /rules/75-tty-description.rules: -------------------------------------------------------------------------------- 1 | # do not edit this file, it will be overwritten on update 2 | 3 | ACTION=="remove", GOTO="tty_end" 4 | SUBSYSTEM!="tty", GOTO="tty_end" 5 | 6 | SUBSYSTEMS=="usb", IMPORT{builtin}="usb_id", IMPORT{builtin}="hwdb --subsystem=usb" 7 | SUBSYSTEMS=="usb", GOTO="tty_end" 8 | 9 | SUBSYSTEMS=="pci", ENV{ID_BUS}="pci", ENV{ID_VENDOR_ID}="$attr{vendor}", ENV{ID_MODEL_ID}="$attr{device}" 10 | 11 | IMPORT{builtin}="hwdb" 12 | 13 | LABEL="tty_end" 14 | -------------------------------------------------------------------------------- /units/shutdown.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Shutdown 10 | Documentation=man:systemd.special(7) 11 | DefaultDependencies=no 12 | RefuseManualStart=yes 13 | -------------------------------------------------------------------------------- /sysctl.d/50-coredump.conf.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | # See sysctl.d(5) and core(5) for for details. 9 | 10 | kernel.core_pattern=|@rootlibexecdir@/systemd-coredump %p %u %g %s %t %e 11 | -------------------------------------------------------------------------------- /units/umount.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Unmount All Filesystems 10 | Documentation=man:systemd.special(7) 11 | DefaultDependencies=no 12 | RefuseManualStart=yes 13 | -------------------------------------------------------------------------------- /src/python-systemd/docs/daemon.rst: -------------------------------------------------------------------------------- 1 | `systemd.daemon` module 2 | ======================= 3 | 4 | .. automodule:: systemd.daemon 5 | :members: 6 | :undoc-members: 7 | :inherited-members: 8 | 9 | .. autoattribute:: systemd.daemon.LISTEN_FDS_START 10 | 11 | .. autofunction:: _listen_fds 12 | .. autofunction:: _is_fifo 13 | .. autofunction:: _is_socket 14 | .. autofunction:: _is_socket_unix 15 | .. autofunction:: _is_socket_inet 16 | .. autofunction:: _is_mq 17 | -------------------------------------------------------------------------------- /rules/64-btrfs.rules: -------------------------------------------------------------------------------- 1 | # do not edit this file, it will be overwritten on update 2 | 3 | SUBSYSTEM!="block", GOTO="btrfs_end" 4 | ACTION=="remove", GOTO="btrfs_end" 5 | ENV{ID_FS_TYPE}!="btrfs", GOTO="btrfs_end" 6 | 7 | # let the kernel know about this btrfs filesystem, and check if it is complete 8 | IMPORT{builtin}="btrfs ready $devnode" 9 | 10 | # mark the device as not ready to be used by the system 11 | ENV{ID_BTRFS_READY}=="0", ENV{SYSTEMD_READY}="0" 12 | 13 | LABEL="btrfs_end" 14 | -------------------------------------------------------------------------------- /units/sleep.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Sleep 10 | Documentation=man:systemd.special(7) 11 | DefaultDependencies=no 12 | RefuseManualStart=yes 13 | StopWhenUnneeded=yes 14 | -------------------------------------------------------------------------------- /test/Makefile: -------------------------------------------------------------------------------- 1 | # Just a little hook script to easy building when in this directory 2 | .PHONY: all check clean 3 | 4 | all: 5 | $(MAKE) -C .. 6 | 7 | clean: 8 | @for i in TEST-[0-9]*; do \ 9 | [ -d $$i ] || continue ; \ 10 | [ -f $$i/Makefile ] || continue ; \ 11 | make -C $$i clean ; \ 12 | done 13 | 14 | check: 15 | $(MAKE) -C .. all 16 | @for i in TEST-[0-9]*; do \ 17 | [ -d $$i ] || continue ; \ 18 | [ -f $$i/Makefile ] || continue ; \ 19 | make -C $$i all ; \ 20 | done 21 | -------------------------------------------------------------------------------- /test/rules-test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Call the udev rule syntax checker on all rules that we ship 3 | # 4 | # (C) 2010 Canonical Ltd. 5 | # Author: Martin Pitt 6 | 7 | [ -n "$srcdir" ] || srcdir=`dirname $0`/.. 8 | 9 | # skip if we don't have python 10 | type python >/dev/null 2>&1 || { 11 | echo "$0: No python installed, skipping udev rule syntax check" 12 | exit 0 13 | } 14 | 15 | $srcdir/test/rule-syntax-check.py `find $srcdir/rules -name '*.rules'` 16 | -------------------------------------------------------------------------------- /units/network.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Network 10 | Documentation=man:systemd.special(7) 11 | Documentation=http://www.freedesktop.org/wiki/Software/systemd/NetworkTarget 12 | -------------------------------------------------------------------------------- /keymaps/module-ibm: -------------------------------------------------------------------------------- 1 | 0x01 battery # Fn+F2 2 | 0x02 screenlock # Fn+F3 3 | 0x03 sleep # Fn+F4 4 | 0x04 wlan # Fn+F5 5 | 0x06 switchvideomode # Fn+F7 6 | 0x07 zoom # Fn+F8 screen expand 7 | 0x08 f24 # Fn+F9 undock 8 | 0x0B suspend # Fn+F12 9 | 0x0F brightnessup # Fn+Home 10 | 0x10 brightnessdown # Fn+End 11 | 0x11 kbdillumtoggle # Fn+PgUp - ThinkLight 12 | 0x13 zoom # Fn+Space 13 | 0x14 volumeup 14 | 0x15 volumedown 15 | 0x16 mute 16 | 0x17 prog1 # ThinkPad/ThinkVantage button (high keycode: "vendor") 17 | -------------------------------------------------------------------------------- /rules/75-net-description.rules: -------------------------------------------------------------------------------- 1 | # do not edit this file, it will be overwritten on update 2 | 3 | ACTION=="remove", GOTO="net_end" 4 | SUBSYSTEM!="net", GOTO="net_end" 5 | 6 | IMPORT{builtin}="net_id" 7 | SUBSYSTEMS=="usb", IMPORT{builtin}="usb_id", IMPORT{builtin}="hwdb --subsystem=usb" 8 | SUBSYSTEMS=="usb", GOTO="net_end" 9 | 10 | SUBSYSTEMS=="pci", ENV{ID_BUS}="pci", ENV{ID_VENDOR_ID}="$attr{vendor}", ENV{ID_MODEL_ID}="$attr{device}" 11 | 12 | IMPORT{builtin}="hwdb" 13 | 14 | LABEL="net_end" 15 | -------------------------------------------------------------------------------- /src/locale/org.freedesktop.locale1.service: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [D-BUS Service] 9 | Name=org.freedesktop.locale1 10 | Exec=/bin/false 11 | User=root 12 | SystemdService=dbus-org.freedesktop.locale1.service 13 | -------------------------------------------------------------------------------- /src/login/org.freedesktop.login1.service: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [D-BUS Service] 9 | Name=org.freedesktop.login1 10 | Exec=/bin/false 11 | User=root 12 | SystemdService=dbus-org.freedesktop.login1.service 13 | -------------------------------------------------------------------------------- /units/emergency.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Emergency Mode 10 | Documentation=man:systemd.special(7) 11 | Requires=emergency.service 12 | After=emergency.service 13 | AllowIsolate=yes 14 | -------------------------------------------------------------------------------- /units/http-daemon.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | # This exists mostly for compatibility with SysV/LSB units, and 9 | # implementations lacking socket/bus activation. 10 | 11 | [Unit] 12 | Description=Web Server 13 | -------------------------------------------------------------------------------- /units/systemd-journal-gatewayd.socket: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Journal Gateway Service Socket 10 | 11 | [Socket] 12 | ListenStream=19531 13 | 14 | [Install] 15 | WantedBy=sockets.target 16 | -------------------------------------------------------------------------------- /src/hostname/org.freedesktop.hostname1.service: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [D-BUS Service] 9 | Name=org.freedesktop.hostname1 10 | Exec=/bin/false 11 | User=root 12 | SystemdService=dbus-org.freedesktop.hostname1.service 13 | -------------------------------------------------------------------------------- /src/timedate/org.freedesktop.timedate1.service: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [D-BUS Service] 9 | Name=org.freedesktop.timedate1 10 | Exec=/bin/false 11 | User=root 12 | SystemdService=dbus-org.freedesktop.timedate1.service 13 | -------------------------------------------------------------------------------- /units/final.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Final Step 10 | Documentation=man:systemd.special(7) 11 | DefaultDependencies=no 12 | RefuseManualStart=yes 13 | After=shutdown.target umount.target 14 | -------------------------------------------------------------------------------- /units/local-fs.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Local File Systems 10 | Documentation=man:systemd.special(7) 11 | After=local-fs-pre.target 12 | OnFailure=emergency.target 13 | OnFailureIsolate=no 14 | -------------------------------------------------------------------------------- /units/network-online.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Network is Online 10 | Documentation=man:systemd.special(7) 11 | Documentation=http://www.freedesktop.org/wiki/Software/systemd/NetworkTarget 12 | -------------------------------------------------------------------------------- /units/remote-fs.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Remote File Systems 10 | Documentation=man:systemd.special(7) 11 | After=remote-fs-pre.target 12 | 13 | [Install] 14 | WantedBy=multi-user.target 15 | -------------------------------------------------------------------------------- /units/suspend.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Suspend 10 | Documentation=man:systemd.special(7) 11 | DefaultDependencies=no 12 | BindsTo=systemd-suspend.service 13 | After=systemd-suspend.service 14 | -------------------------------------------------------------------------------- /units/systemd-tmpfiles-clean.timer: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Daily Cleanup of Temporary Directories 10 | Documentation=man:tmpfiles.d(5) 11 | 12 | [Timer] 13 | OnBootSec=15min 14 | OnUnitActiveSec=1d 15 | -------------------------------------------------------------------------------- /units/getty.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Login Prompts 10 | Documentation=man:systemd.special(7) man:systemd-getty-generator(8) 11 | Documentation=http://0pointer.de/blog/projects/serial-console.html 12 | -------------------------------------------------------------------------------- /units/hibernate.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Hibernate 10 | Documentation=man:systemd.special(7) 11 | DefaultDependencies=no 12 | BindsTo=systemd-hibernate.service 13 | After=systemd-hibernate.service 14 | -------------------------------------------------------------------------------- /units/initrd-root-fs.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Initrd Root File System 10 | Documentation=man:systemd.special(7) 11 | ConditionPathExists=/etc/initrd-release 12 | OnFailure=emergency.target 13 | OnFailureIsolate=yes 14 | -------------------------------------------------------------------------------- /units/hybrid-sleep.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Hybrid Suspend+Hibernate 10 | Documentation=man:systemd.special(7) 11 | DefaultDependencies=no 12 | BindsTo=systemd-hybrid-sleep.service 13 | After=systemd-hybrid-sleep.service 14 | -------------------------------------------------------------------------------- /keymaps/samsung-other: -------------------------------------------------------------------------------- 1 | 0x74 prog1 # User key 2 | 0x75 www 3 | 0x78 mail 4 | 0x82 switchvideomode # Fn+F4 CRT/LCD (high keycode: "displaytoggle") 5 | 0x83 battery # Fn+F2 6 | 0x84 prog1 # Fn+F5 backlight on/off 7 | 0x86 wlan # Fn+F9 8 | 0x88 brightnessup # Fn-Up 9 | 0x89 brightnessdown # Fn-Down 10 | 0xB1 prog2 # Fn+F7 run Samsung Magic Doctor (keypressed event is generated twice) 11 | 0xB3 prog3 # Fn+F8 switch power mode (battery/dynamic/performance) 12 | 0xB4 wlan # Fn+F9 (X60P) 13 | 0xF7 f22 # Fn+F10 Touchpad on 14 | 0xF9 f23 # Fn+F10 Touchpad off 15 | -------------------------------------------------------------------------------- /keymaps/zepto-znote: -------------------------------------------------------------------------------- 1 | 0x93 switchvideomode # Fn+F3 Toggle Video Output 2 | 0x95 brightnessdown # Fn+F4 Brightness Down 3 | 0x91 brightnessup # Fn+F5 Brightness Up 4 | 0xA5 f23 # Fn+F6 Disable Touchpad 5 | 0xA6 f22 # Fn+F6 Enable Touchpad 6 | 0xA7 bluetooth # Fn+F10 Enable Bluetooth 7 | 0XA9 bluetooth # Fn+F10 Disable Bluetooth 8 | 0xF1 wlan # RF Switch Off 9 | 0xF2 wlan # RF Switch On 10 | 0xF4 prog1 # P1 Button 11 | 0xF3 prog2 # P2 Button 12 | -------------------------------------------------------------------------------- /m4/acx_libwrap.m4: -------------------------------------------------------------------------------- 1 | AC_DEFUN([ACX_LIBWRAP], [ 2 | LIBWRAP_LIBS= 3 | saved_LIBS="$LIBS" 4 | LIBS="$LIBS -lwrap" 5 | AC_MSG_CHECKING([for tcpwrap library and headers]) 6 | AC_LINK_IFELSE( 7 | [AC_LANG_PROGRAM( 8 | [#include 9 | #include 10 | int allow_severity = LOG_INFO; 11 | int deny_severity = LOG_WARNING;], 12 | [struct request_info *req; 13 | return hosts_access (req);])], 14 | [AC_DEFINE(HAVE_LIBWRAP, [], [Have tcpwrap?]) 15 | LIBWRAP_LIBS="-lwrap" 16 | AC_MSG_RESULT(yes)], 17 | [AC_MSG_RESULT(no)]) 18 | LIBS="$saved_LIBS" 19 | ]) 20 | -------------------------------------------------------------------------------- /units/nss-user-lookup.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | # This exists mostly for implementations lacking socket/bus 9 | # activation. 10 | 11 | [Unit] 12 | Description=User and Group Name Lookups 13 | Documentation=man:systemd.special(7) 14 | RefuseManualStart=yes 15 | -------------------------------------------------------------------------------- /units/initrd-fs.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Initrd File Systems 10 | Documentation=man:systemd.special(7) 11 | OnFailure=emergency.target 12 | OnFailureIsolate=yes 13 | ConditionPathExists=/etc/initrd-release 14 | After=initrd-parse-etc.service 15 | -------------------------------------------------------------------------------- /units/mail-transfer-agent.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | # This exists mostly for compatibility with SysV/LSB units, and 9 | # implementations lacking socket/bus activation. 10 | 11 | [Unit] 12 | Description=Mail Transfer Agent 13 | Documentation=man:systemd.special(7) 14 | -------------------------------------------------------------------------------- /units/rescue.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Rescue Mode 10 | Documentation=man:systemd.special(7) 11 | Requires=sysinit.target rescue.service 12 | After=sysinit.target rescue.service 13 | AllowIsolate=yes 14 | 15 | [Install] 16 | Alias=kbrequest.target 17 | -------------------------------------------------------------------------------- /keymaps/lenovo-thinkpad-usb-keyboard-trackpoint: -------------------------------------------------------------------------------- 1 | 0x90012 screenlock # Fn+F2 2 | 0x90013 battery # Fn+F3 3 | 0x90014 wlan # Fn+F5 4 | 0x90016 switchvideomode # Fn+F7 5 | 0x90017 f21 # Fn+F8 touchpadtoggle 6 | 0x90019 suspend # Fn+F12 7 | 0x9001A brightnessup # Fn+Home 8 | 0x9001B brightnessdown # Fn+End 9 | 0x9001D zoom # Fn+Space 10 | 0x90011 prog1 # Thinkvantage button 11 | 12 | 0x90015 camera # Fn+F6 headset/camera VoIP key ?? 13 | 0x90010 f20 # Microphone mute button; should be micmute, but see https://mail.gnome.org/archives/commits-list/2013-January/msg05822.html 14 | -------------------------------------------------------------------------------- /rules/80-net-name-slot.rules: -------------------------------------------------------------------------------- 1 | # do not edit this file, it will be overwritten on update 2 | 3 | ACTION!="add", GOTO="net_name_slot_end" 4 | SUBSYSTEM!="net", GOTO="net_name_slot_end" 5 | NAME!="", GOTO="net_name_slot_end" 6 | 7 | IMPORT{cmdline}="net.ifnames" 8 | ENV{net.ifnames}!="1", GOTO="net_name_slot_end" 9 | 10 | NAME=="", ENV{ID_NET_NAME_ONBOARD}!="", NAME="$env{ID_NET_NAME_ONBOARD}" 11 | NAME=="", ENV{ID_NET_NAME_SLOT}!="", NAME="$env{ID_NET_NAME_SLOT}" 12 | NAME=="", ENV{ID_NET_NAME_PATH}!="", NAME="$env{ID_NET_NAME_PATH}" 13 | 14 | LABEL="net_name_slot_end" 15 | -------------------------------------------------------------------------------- /units/halt.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Halt 10 | Documentation=man:systemd.special(7) 11 | DefaultDependencies=no 12 | Requires=systemd-halt.service 13 | After=systemd-halt.service 14 | AllowIsolate=yes 15 | 16 | [Install] 17 | Alias=ctrl-alt-del.target 18 | -------------------------------------------------------------------------------- /units/rpcbind.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | # This exists mostly for compatibility with SysV/LSB units, and 9 | # implementations lacking socket/bus activation. 10 | 11 | [Unit] 12 | Description=RPC Port Mapper 13 | Documentation=man:systemd.special(7) 14 | RefuseManualStart=yes 15 | -------------------------------------------------------------------------------- /units/systemd-initctl.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=/dev/initctl Compatibility Daemon 10 | Documentation=man:systemd-initctl.service(8) 11 | DefaultDependencies=no 12 | 13 | [Service] 14 | ExecStart=@rootlibexecdir@/systemd-initctl 15 | NotifyAccess=all 16 | -------------------------------------------------------------------------------- /units/systemd-shutdownd.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Delayed Shutdown Service 10 | Documentation=man:systemd-shutdownd.service(8) 11 | DefaultDependencies=no 12 | 13 | [Service] 14 | ExecStart=@rootlibexecdir@/systemd-shutdownd 15 | NotifyAccess=all 16 | -------------------------------------------------------------------------------- /keymaps/logitech-wave: -------------------------------------------------------------------------------- 1 | 0x9001C scale #expo 2 | 0x9001F zoomout #zoom out 3 | 0x90020 zoomin #zoom in 4 | 0x9003D prog1 #gadget 5 | 0x90005 camera #camera 6 | 0x90018 media #media center 7 | 0x90041 wordprocessor #fn+f1 (word) 8 | 0x90042 spreadsheet #fn+f2 (excel) 9 | 0x90043 calendar #fn+f3 (calendar) 10 | 0x90044 prog2 #fn+f4 (program a) 11 | 0x90045 prog3 #fn+f5 (program b) 12 | 0x90046 prog4 #fn+f6 (program c) 13 | 0x90048 messenger #fn+f8 (msn messenger) 14 | 0x9002D find #fn+f10 (search www) 15 | 0x9004B search #fn+f11 (search pc) 16 | 0x9004C ejectclosecd #fn+f12 (eject) 17 | -------------------------------------------------------------------------------- /src/core/user.conf: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | # 8 | # See systemd-user.conf(5) for details 9 | 10 | [Manager] 11 | #LogLevel=info 12 | #LogTarget=console 13 | #LogColor=yes 14 | #LogLocation=no 15 | #DefaultControllers=cpu 16 | #DefaultStandardOutput=inherit 17 | #DefaultStandardError=inherit 18 | -------------------------------------------------------------------------------- /units/reboot.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Reboot 10 | Documentation=man:systemd.special(7) 11 | DefaultDependencies=no 12 | Requires=systemd-reboot.service 13 | After=systemd-reboot.service 14 | AllowIsolate=yes 15 | 16 | [Install] 17 | Alias=ctrl-alt-del.target 18 | -------------------------------------------------------------------------------- /units/systemd-initctl.socket: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=/dev/initctl Compatibility Named Pipe 10 | Documentation=man:systemd-initctl.service(8) 11 | DefaultDependencies=no 12 | Before=sockets.target 13 | 14 | [Socket] 15 | ListenFIFO=/dev/initctl 16 | SocketMode=0600 17 | -------------------------------------------------------------------------------- /units/time-sync.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | # This exists mostly for compatibility with SysV/LSB units, and 9 | # implementations lacking socket/bus activation. 10 | 11 | [Unit] 12 | Description=System Time Synchronized 13 | Documentation=man:systemd.special(7) 14 | RefuseManualStart=yes 15 | -------------------------------------------------------------------------------- /units/basic.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Basic System 10 | Documentation=man:systemd.special(7) 11 | Requires=sysinit.target 12 | Wants=sockets.target timers.target paths.target 13 | After=sysinit.target sockets.target timers.target paths.target 14 | RefuseManualStart=yes 15 | -------------------------------------------------------------------------------- /units/kexec.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Reboot via kexec 10 | Documentation=man:systemd.special(7) 11 | DefaultDependencies=no 12 | Requires=systemd-kexec.service 13 | After=systemd-kexec.service 14 | AllowIsolate=yes 15 | 16 | [Install] 17 | Alias=ctrl-alt-del.target 18 | -------------------------------------------------------------------------------- /units/nss-lookup.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | # This exists mostly for compatibility with SysV/LSB units, and 9 | # implementations lacking socket/bus activation. 10 | 11 | [Unit] 12 | Description=Host and Network Name Lookups 13 | Documentation=man:systemd.special(7) 14 | RefuseManualStart=yes 15 | -------------------------------------------------------------------------------- /units/poweroff.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Power-Off 10 | Documentation=man:systemd.special(7) 11 | DefaultDependencies=no 12 | Requires=systemd-poweroff.service 13 | After=systemd-poweroff.service 14 | AllowIsolate=yes 15 | 16 | [Install] 17 | Alias=ctrl-alt-del.target 18 | -------------------------------------------------------------------------------- /units/user/exit.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Exit the Session 10 | Documentation=man:systemd.special(7) 11 | DefaultDependencies=no 12 | Requires=systemd-exit.service 13 | After=systemd-exit.service 14 | AllowIsolate=yes 15 | 16 | [Install] 17 | Alias=ctrl-alt-del.target 18 | -------------------------------------------------------------------------------- /src/python-systemd/docs/layout.html: -------------------------------------------------------------------------------- 1 | {% extends "!layout.html" %} 2 | 3 | {% block relbar1 %} 4 | Index · 5 | Directives · 6 | Python · 7 | libudev · 8 | gudev 9 | systemd {{release}} 10 |
11 | {% endblock %} 12 | 13 | {# remove the lower relbar #} 14 | {% block relbar2 %} {% endblock %} 15 | 16 | {# remove the footer #} 17 | {% block footer %} {% endblock %} 18 | -------------------------------------------------------------------------------- /units/user/systemd-exit.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Exit the Session 10 | Documentation=man:systemd.special(7) 11 | DefaultDependencies=no 12 | Requires=shutdown.target 13 | After=shutdown.target 14 | 15 | [Service] 16 | Type=oneshot 17 | ExecStart=@KILL@ -s 58 $MANAGERPID 18 | -------------------------------------------------------------------------------- /po/POTFILES.skip: -------------------------------------------------------------------------------- 1 | src/core/dbus-automount.c 2 | src/core/dbus-device.c 3 | src/core/dbus-job.c 4 | src/core/dbus-manager.c 5 | src/core/dbus-mount.c 6 | src/core/dbus-path.c 7 | src/core/dbus-service.c 8 | src/core/dbus-snapshot.c 9 | src/core/dbus-socket.c 10 | src/core/dbus-swap.c 11 | src/core/dbus-target.c 12 | src/core/dbus-timer.c 13 | src/core/dbus-unit.c 14 | src/hostname/hostnamed.c 15 | src/locale/localed.c 16 | src/core/org.freedesktop.systemd1.policy.in 17 | src/timedate/timedated.c 18 | units/systemd-readahead-done.service.in 19 | units/user@.service.in 20 | units/debug-shell.service.in 21 | -------------------------------------------------------------------------------- /src/login/70-power-switch.rules: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | ACTION=="remove", GOTO="power_switch_end" 9 | 10 | SUBSYSTEM=="input", KERNEL=="event*", SUBSYSTEMS=="acpi", TAG+="power-switch" 11 | SUBSYSTEM=="input", KERNEL=="event*", KERNELS=="thinkpad_acpi", TAG+="power-switch" 12 | 13 | LABEL="power_switch_end" 14 | -------------------------------------------------------------------------------- /units/systemd-suspend.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Suspend 10 | Documentation=man:systemd-suspend.service(8) 11 | DefaultDependencies=no 12 | Requires=sleep.target 13 | After=sleep.target 14 | 15 | [Service] 16 | Type=oneshot 17 | ExecStart=@rootlibexecdir@/systemd-sleep suspend 18 | -------------------------------------------------------------------------------- /src/python-systemd/docs/index.rst: -------------------------------------------------------------------------------- 1 | .. python-systemd documentation master file, created by 2 | sphinx-quickstart on Sat Feb 9 13:49:42 2013. 3 | You can adapt this file completely to your liking, but it should at least 4 | contain the root `toctree` directive. 5 | 6 | Welcome to python-systemd's documentation! 7 | ========================================== 8 | 9 | Contents: 10 | 11 | .. toctree:: 12 | :maxdepth: 2 13 | 14 | journal 15 | id128 16 | daemon 17 | 18 | Indices and tables 19 | ================== 20 | 21 | * :ref:`genindex` 22 | * :ref:`modindex` 23 | * :ref:`search` 24 | -------------------------------------------------------------------------------- /units/systemd-hibernate.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Hibernate 10 | Documentation=man:systemd-suspend.service(8) 11 | DefaultDependencies=no 12 | Requires=sleep.target 13 | After=sleep.target 14 | 15 | [Service] 16 | Type=oneshot 17 | ExecStart=@rootlibexecdir@/systemd-sleep hibernate 18 | -------------------------------------------------------------------------------- /units/multi-user.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Multi-User System 10 | Documentation=man:systemd.special(7) 11 | Requires=basic.target 12 | Conflicts=rescue.service rescue.target 13 | After=basic.target rescue.service rescue.target 14 | AllowIsolate=yes 15 | 16 | [Install] 17 | Alias=default.target 18 | -------------------------------------------------------------------------------- /units/sysinit.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=System Initialization 10 | Documentation=man:systemd.special(7) 11 | Conflicts=emergency.service emergency.target 12 | Wants=local-fs.target swap.target 13 | After=local-fs.target swap.target emergency.service emergency.target 14 | RefuseManualStart=yes 15 | -------------------------------------------------------------------------------- /units/graphical.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Graphical Interface 10 | Documentation=man:systemd.special(7) 11 | Requires=multi-user.target 12 | After=multi-user.target 13 | Conflicts=rescue.target 14 | Wants=display-manager.service 15 | AllowIsolate=yes 16 | 17 | [Install] 18 | Alias=default.target 19 | -------------------------------------------------------------------------------- /src/libudev/libudev.pc.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | prefix=@prefix@ 9 | exec_prefix=@exec_prefix@ 10 | libdir=@libdir@ 11 | includedir=@includedir@ 12 | 13 | Name: libudev 14 | Description: Library to access udev device information 15 | Version: @VERSION@ 16 | Libs: -L${libdir} -ludev -lrt 17 | Libs.private: 18 | Cflags: -I${includedir} 19 | -------------------------------------------------------------------------------- /units/systemd-hybrid-sleep.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Hybrid Suspend+Hibernate 10 | Documentation=man:systemd-suspend.service(8) 11 | DefaultDependencies=no 12 | Requires=sleep.target 13 | After=sleep.target 14 | 15 | [Service] 16 | Type=oneshot 17 | ExecStart=@rootlibexecdir@/systemd-sleep hybrid-sleep 18 | -------------------------------------------------------------------------------- /keymaps/module-lenovo: -------------------------------------------------------------------------------- 1 | 0x1 screenlock # Fn+F2 2 | 0x2 battery # Fn+F3 3 | 0x3 sleep # Fn+F4 4 | 0x4 wlan # Fn+F5 5 | 0x6 switchvideomode # Fn+F7 6 | 0x7 f21 # Fn+F8 touchpadtoggle 7 | 0x8 f24 # Fn+F9 undock 8 | 0xB suspend # Fn+F12 9 | 0xF brightnessup # Fn+Home 10 | 0x10 brightnessdown # Fn+End 11 | 0x11 kbdillumtoggle # Fn+PgUp - ThinkLight 12 | 0x13 zoom # Fn+Space 13 | 0x14 volumeup 14 | 0x15 volumedown 15 | 0x16 mute 16 | 0x17 prog1 # ThinkPad/ThinkVantage button (high keycode: "vendor") 17 | 0x1A f20 # Microphone mute button; should be micmute, but see https://mail.gnome.org/archives/commits-list/2013-January/msg05822.html 18 | -------------------------------------------------------------------------------- /units/systemd-shutdownd.socket: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Delayed Shutdown Socket 10 | Documentation=man:systemd-shutdownd.service(8) 11 | DefaultDependencies=no 12 | Before=sockets.target 13 | 14 | [Socket] 15 | ListenDatagram=/run/systemd/shutdownd 16 | SocketMode=0600 17 | PassCredentials=yes 18 | PassSecurity=yes 19 | -------------------------------------------------------------------------------- /src/bootchart/bootchart.conf: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | # 8 | # See bootchart.conf(5) for details 9 | 10 | [Bootchart] 11 | #Samples=500 12 | #Frequency=25 13 | #Relative=no 14 | #Filter=yes 15 | #Output= 16 | #Init=/path/to/init-binary 17 | #PlotMemoryUsage=no 18 | #PlotEntropyGraph=no 19 | #ScaleX=100 20 | #ScaleY=20 21 | -------------------------------------------------------------------------------- /units/systemd-halt.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Halt 10 | Documentation=man:systemd-halt.service(8) 11 | DefaultDependencies=no 12 | Requires=shutdown.target umount.target final.target 13 | After=shutdown.target umount.target final.target 14 | 15 | [Service] 16 | Type=oneshot 17 | ExecStart=@SYSTEMCTL@ --force halt 18 | -------------------------------------------------------------------------------- /src/login/libsystemd-login.pc.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | prefix=@prefix@ 9 | exec_prefix=@exec_prefix@ 10 | libdir=@libdir@ 11 | includedir=@includedir@ 12 | 13 | Name: systemd 14 | Description: systemd Login Utility Library 15 | URL: @PACKAGE_URL@ 16 | Version: @PACKAGE_VERSION@ 17 | Libs: -L${libdir} -lsystemd-login 18 | Cflags: -I${includedir} 19 | -------------------------------------------------------------------------------- /units/systemd-reboot.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Reboot 10 | Documentation=man:systemd-halt.service(8) 11 | DefaultDependencies=no 12 | Requires=shutdown.target umount.target final.target 13 | After=shutdown.target umount.target final.target 14 | 15 | [Service] 16 | Type=oneshot 17 | ExecStart=@SYSTEMCTL@ --force reboot 18 | -------------------------------------------------------------------------------- /units/systemd-kexec.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Reboot via kexec 10 | Documentation=man:systemd-halt.service(8) 11 | DefaultDependencies=no 12 | Requires=shutdown.target umount.target final.target 13 | After=shutdown.target umount.target final.target 14 | 15 | [Service] 16 | Type=oneshot 17 | ExecStart=@SYSTEMCTL@ --force kexec 18 | -------------------------------------------------------------------------------- /units/systemd-poweroff.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Power-Off 10 | Documentation=man:systemd-halt.service(8) 11 | DefaultDependencies=no 12 | Requires=shutdown.target umount.target final.target 13 | After=shutdown.target umount.target final.target 14 | 15 | [Service] 16 | Type=oneshot 17 | ExecStart=@SYSTEMCTL@ --force poweroff 18 | -------------------------------------------------------------------------------- /src/libsystemd-id128/libsystemd-id128.pc.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | prefix=@prefix@ 9 | exec_prefix=@exec_prefix@ 10 | libdir=@libdir@ 11 | includedir=@includedir@ 12 | 13 | Name: systemd 14 | Description: systemd 128 Bit ID Utility Library 15 | URL: @PACKAGE_URL@ 16 | Version: @PACKAGE_VERSION@ 17 | Libs: -L${libdir} -lsystemd-id128 18 | Cflags: -I${includedir} 19 | -------------------------------------------------------------------------------- /src/libsystemd-id128/libsystemd-id128.sym: -------------------------------------------------------------------------------- 1 | /*** 2 | This file is part of systemd. 3 | 4 | systemd is free software; you can redistribute it and/or modify it 5 | under the terms of the GNU Lesser General Public License as published by 6 | the Free Software Foundation; either version 2.1 of the License, or 7 | (at your option) any later version. 8 | ***/ 9 | 10 | /* Original symbols from systemd v38 */ 11 | 12 | LIBSYSTEMD_ID128_38 { 13 | global: 14 | sd_id128_to_string; 15 | sd_id128_from_string; 16 | sd_id128_randomize; 17 | sd_id128_get_machine; 18 | sd_id128_get_boot; 19 | local: 20 | *; 21 | }; 22 | -------------------------------------------------------------------------------- /src/gudev/gudevenumtypes.h.template: -------------------------------------------------------------------------------- 1 | /*** BEGIN file-header ***/ 2 | #ifndef __GUDEV_ENUM_TYPES_H__ 3 | #define __GUDEV_ENUM_TYPES_H__ 4 | 5 | #include 6 | 7 | G_BEGIN_DECLS 8 | /*** END file-header ***/ 9 | 10 | /*** BEGIN file-production ***/ 11 | 12 | /* enumerations from "@filename@" */ 13 | /*** END file-production ***/ 14 | 15 | /*** BEGIN value-header ***/ 16 | GType @enum_name@_get_type (void) G_GNUC_CONST; 17 | #define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (@enum_name@_get_type ()) 18 | /*** END value-header ***/ 19 | 20 | /*** BEGIN file-tail ***/ 21 | G_END_DECLS 22 | 23 | #endif /* __GUDEV_ENUM_TYPES_H__ */ 24 | /*** END file-tail ***/ 25 | -------------------------------------------------------------------------------- /units/systemd-user-sessions.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Permit User Sessions 10 | Documentation=man:systemd-user-sessions.service(8) 11 | After=remote-fs.target 12 | 13 | [Service] 14 | Type=oneshot 15 | RemainAfterExit=yes 16 | ExecStart=@rootlibexecdir@/systemd-user-sessions start 17 | ExecStop=@rootlibexecdir@/systemd-user-sessions stop 18 | -------------------------------------------------------------------------------- /units/systemd-readahead-drop.service: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Drop Read-Ahead Data 10 | Documentation=man:systemd-readahead-replay.service(8) 11 | ConditionPathExists=/.readahead 12 | 13 | [Service] 14 | Type=oneshot 15 | ExecStart=/bin/rm -f /.readahead 16 | 17 | [Install] 18 | WantedBy=system-update.target 19 | Also=systemd-readahead-collect.service 20 | -------------------------------------------------------------------------------- /units/systemd-ask-password-wall.path: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Forward Password Requests to Wall Directory Watch 10 | Documentation=man:systemd-ask-password-console.service(8) 11 | DefaultDependencies=no 12 | Conflicts=shutdown.target 13 | Before=paths.target shutdown.target 14 | 15 | [Path] 16 | DirectoryNotEmpty=/run/systemd/ask-password 17 | MakeDirectory=yes 18 | -------------------------------------------------------------------------------- /rules/80-drivers.rules: -------------------------------------------------------------------------------- 1 | # do not edit this file, it will be overwritten on update 2 | 3 | ACTION=="remove", GOTO="drivers_end" 4 | 5 | ENV{MODALIAS}=="?*", RUN{builtin}="kmod load $env{MODALIAS}" 6 | SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}=="SD", RUN{builtin}="kmod load tifm_sd" 7 | SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}=="MS", RUN{builtin}="kmod load tifm_ms" 8 | SUBSYSTEM=="memstick", RUN{builtin}="kmod load ms_block mspro_block" 9 | SUBSYSTEM=="i2o", RUN{builtin}="kmod load i2o_block" 10 | SUBSYSTEM=="module", KERNEL=="parport_pc", RUN{builtin}="kmod load ppdev" 11 | KERNEL=="mtd*ro", ENV{MTD_FTL}=="smartmedia", RUN{builtin}="kmod load sm_ftl" 12 | 13 | LABEL="drivers_end" 14 | -------------------------------------------------------------------------------- /units/dev-mqueue.mount: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=POSIX Message Queue File System 10 | Documentation=man:mq_overview(7) 11 | Documentation=http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems 12 | DefaultDependencies=no 13 | Before=sysinit.target 14 | ConditionPathExists=/proc/sys/fs/mqueue 15 | 16 | [Mount] 17 | What=mqueue 18 | Where=/dev/mqueue 19 | Type=mqueue 20 | -------------------------------------------------------------------------------- /units/systemd-localed.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Locale Service 10 | Documentation=man:systemd-localed.service(8) man:locale.conf(5) man:vconsole.conf(5) 11 | Documentation=http://www.freedesktop.org/wiki/Software/systemd/localed 12 | 13 | [Service] 14 | ExecStart=@rootlibexecdir@/systemd-localed 15 | BusName=org.freedesktop.locale1 16 | CapabilityBoundingSet= 17 | -------------------------------------------------------------------------------- /units/systemd-timedated.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Time & Date Service 10 | Documentation=man:systemd-timedated.service(8) man:localtime(5) 11 | Documentation=http://www.freedesktop.org/wiki/Software/systemd/timedated 12 | 13 | [Service] 14 | ExecStart=@rootlibexecdir@/systemd-timedated 15 | BusName=org.freedesktop.timedate1 16 | CapabilityBoundingSet=CAP_SYS_TIME 17 | -------------------------------------------------------------------------------- /units/systemd-udevd-control.socket: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=udev Control Socket 10 | Documentation=man:systemd-udevd.service(8) man:udev(7) 11 | DefaultDependencies=no 12 | Before=sockets.target 13 | ConditionCapability=CAP_MKNOD 14 | 15 | [Socket] 16 | Service=systemd-udevd.service 17 | ListenSequentialPacket=/run/udev/control 18 | SocketMode=0600 19 | PassCredentials=yes 20 | -------------------------------------------------------------------------------- /units/systemd-udevd-kernel.socket: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=udev Kernel Socket 10 | Documentation=man:systemd-udevd.service(8) man:udev(7) 11 | DefaultDependencies=no 12 | Before=sockets.target 13 | ConditionCapability=CAP_MKNOD 14 | 15 | [Socket] 16 | Service=systemd-udevd.service 17 | ReceiveBuffer=134217728 18 | ListenNetlink=kobject-uevent 1 19 | PassCredentials=yes 20 | -------------------------------------------------------------------------------- /units/tmp.mount: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Temporary Directory 10 | Documentation=man:hier(7) 11 | Documentation=http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems 12 | DefaultDependencies=no 13 | Conflicts=umount.target 14 | Before=local-fs.target umount.target 15 | 16 | [Mount] 17 | What=tmpfs 18 | Where=/tmp 19 | Type=tmpfs 20 | Options=mode=1777,strictatime 21 | -------------------------------------------------------------------------------- /src/login/73-seat-late.rules.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | ACTION=="remove", GOTO="seat_late_end" 9 | 10 | ENV{ID_SEAT}=="", ENV{ID_AUTOSEAT}=="1", ENV{ID_FOR_SEAT}!="", ENV{ID_SEAT}="seat-$env{ID_FOR_SEAT}" 11 | ENV{ID_SEAT}=="", IMPORT{parent}="ID_SEAT" 12 | 13 | ENV{ID_SEAT}!="", TAG+="$env{ID_SEAT}" 14 | 15 | TAG=="uaccess", ENV{MAJOR}!="", RUN{builtin}+="uaccess" 16 | 17 | LABEL="seat_late_end" 18 | -------------------------------------------------------------------------------- /rules/60-persistent-alsa.rules: -------------------------------------------------------------------------------- 1 | # do not edit this file, it will be overwritten on update 2 | 3 | ACTION=="remove", GOTO="persistent_alsa_end" 4 | SUBSYSTEM!="sound", GOTO="persistent_alsa_end" 5 | KERNEL!="controlC[0-9]*", GOTO="persistent_alsa_end" 6 | 7 | SUBSYSTEMS=="usb", ENV{ID_MODEL}=="", IMPORT{builtin}="usb_id" 8 | ENV{ID_SERIAL}=="?*", ENV{ID_USB_INTERFACE_NUM}=="?*", SYMLINK+="snd/by-id/$env{ID_BUS}-$env{ID_SERIAL}-$env{ID_USB_INTERFACE_NUM}" 9 | ENV{ID_SERIAL}=="?*", ENV{ID_USB_INTERFACE_NUM}=="", SYMLINK+="snd/by-id/$env{ID_BUS}-$env{ID_SERIAL}" 10 | 11 | IMPORT{builtin}="path_id" 12 | ENV{ID_PATH}=="?*", SYMLINK+="snd/by-path/$env{ID_PATH}" 13 | 14 | LABEL="persistent_alsa_end" 15 | -------------------------------------------------------------------------------- /units/halt-local.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=@RC_LOCAL_SCRIPT_PATH_STOP@ Compatibility 10 | ConditionFileIsExecutable=@RC_LOCAL_SCRIPT_PATH_STOP@ 11 | DefaultDependencies=no 12 | After=shutdown.target 13 | Before=final.target 14 | 15 | [Service] 16 | Type=oneshot 17 | ExecStart=@RC_LOCAL_SCRIPT_PATH_STOP@ 18 | TimeoutSec=0 19 | StandardOutput=tty 20 | RemainAfterExit=yes 21 | -------------------------------------------------------------------------------- /units/initrd-cleanup.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Cleaning Up and Shutting Down Daemons 10 | DefaultDependencies=no 11 | ConditionPathExists=/etc/initrd-release 12 | OnFailure=emergency.target 13 | After=initrd-root-fs.target initrd-fs.target initrd.target 14 | 15 | [Service] 16 | Type=oneshot 17 | ExecStart=@rootbindir@/systemctl --no-block isolate initrd-switch-root.target 18 | -------------------------------------------------------------------------------- /src/journal/libsystemd-journal.pc.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | prefix=@prefix@ 9 | exec_prefix=@exec_prefix@ 10 | libdir=@libdir@ 11 | includedir=@includedir@ 12 | 13 | Name: systemd 14 | Description: systemd Journal Utility Library 15 | URL: @PACKAGE_URL@ 16 | Version: @PACKAGE_VERSION@ 17 | Requires: libsystemd-id128 = @PACKAGE_VERSION@ 18 | Libs: -L${libdir} -lsystemd-journal 19 | Cflags: -I${includedir} 20 | -------------------------------------------------------------------------------- /units/systemd-journal-gatewayd.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Journal Gateway Service 10 | Requires=systemd-journal-gatewayd.socket 11 | 12 | [Service] 13 | ExecStart=@rootlibexecdir@/systemd-journal-gatewayd 14 | User=systemd-journal-gateway 15 | Group=systemd-journal-gateway 16 | SupplementaryGroups=systemd-journal 17 | 18 | [Install] 19 | Also=systemd-journal-gatewayd.socket 20 | -------------------------------------------------------------------------------- /units/proc-sys-fs-binfmt_misc.mount: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Arbitrary Executable File Formats File System 10 | Documentation=https://www.kernel.org/doc/Documentation/binfmt_misc.txt 11 | Documentation=http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems 12 | DefaultDependencies=no 13 | 14 | [Mount] 15 | What=binfmt_misc 16 | Where=/proc/sys/fs/binfmt_misc 17 | Type=binfmt_misc 18 | -------------------------------------------------------------------------------- /units/systemd-readahead-done.timer: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Stop Read-Ahead Data Collection 10s After Completed Startup 10 | Documentation=man:systemd-readahead-replay.service(8) 11 | DefaultDependencies=no 12 | Conflicts=shutdown.target 13 | After=default.target 14 | Before=shutdown.target 15 | 16 | [Timer] 17 | OnActiveSec=10s 18 | 19 | [Install] 20 | Also=systemd-readahead-collect.service 21 | -------------------------------------------------------------------------------- /tmpfiles.d/x11.conf: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | # See tmpfiles.d(5) for details 9 | 10 | # Make sure these are created by default so that nobody else can 11 | d /tmp/.X11-unix 1777 root root 10d 12 | d /tmp/.ICE-unix 1777 root root 10d 13 | d /tmp/.XIM-unix 1777 root root 10d 14 | d /tmp/.font-unix 1777 root root 10d 15 | d /tmp/.Test-unix 1777 root root 10d 16 | 17 | # Unlink the X11 lock files 18 | r /tmp/.X[0-9]*-lock 19 | -------------------------------------------------------------------------------- /tmpfiles.d/tmp.conf: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | # See tmpfiles.d(5) for details 9 | 10 | # Clear tmp directories separately, to make them easier to override 11 | d /tmp 1777 root root 10d 12 | d /var/tmp 1777 root root 30d 13 | 14 | # Exclude namespace mountpoints created with PrivateTmp=yes 15 | x /tmp/systemd-private-* 16 | x /var/tmp/systemd-private-* 17 | X /tmp/systemd-private-*/tmp 18 | X /var/tmp/systemd-private-*/tmp 19 | -------------------------------------------------------------------------------- /units/initrd-switch-root.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Switch Root 10 | DefaultDependencies=no 11 | ConditionPathExists=/etc/initrd-release 12 | OnFailure=emergency.target 13 | AllowIsolate=yes 14 | 15 | [Service] 16 | Type=oneshot 17 | # we have to use "--force" here, otherwise systemd would umount /run 18 | ExecStart=@rootbindir@/systemctl --no-block --force switch-root /sysroot 19 | KillMode=none 20 | -------------------------------------------------------------------------------- /units/quotaon.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Enable File System Quotas 10 | Documentation=man:quotaon(8) 11 | DefaultDependencies=no 12 | After=systemd-readahead-collect.service systemd-readahead-replay.service systemd-quotacheck.service 13 | Before=local-fs.target shutdown.target 14 | ConditionPathExists=@QUOTAON@ 15 | 16 | [Service] 17 | Type=oneshot 18 | RemainAfterExit=yes 19 | ExecStart=@QUOTAON@ -aug 20 | -------------------------------------------------------------------------------- /units/systemd-random-seed-save.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Save Random Seed 10 | Documentation=man:systemd-random-seed-load.service(8) man:random(4) 11 | DefaultDependencies=no 12 | RequiresMountsFor=@RANDOM_SEED@ 13 | After=systemd-remount-fs.service systemd-random-seed-load.service 14 | Before=final.target 15 | 16 | [Service] 17 | Type=oneshot 18 | ExecStart=@rootlibexecdir@/systemd-random-seed save 19 | -------------------------------------------------------------------------------- /units/sys-kernel-debug.mount: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Debug File System 10 | Documentation=https://www.kernel.org/doc/Documentation/filesystems/debugfs.txt 11 | Documentation=http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems 12 | DefaultDependencies=no 13 | ConditionPathExists=/sys/kernel/debug 14 | Before=sysinit.target 15 | 16 | [Mount] 17 | What=debugfs 18 | Where=/sys/kernel/debug 19 | Type=debugfs 20 | -------------------------------------------------------------------------------- /units/systemd-readahead-done.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Stop Read-Ahead Data Collection 10 | Documentation=man:systemd-readahead-replay.service(8) 11 | DefaultDependencies=no 12 | Conflicts=shutdown.target 13 | After=default.target 14 | Before=shutdown.target 15 | 16 | [Service] 17 | Type=oneshot 18 | ExecStart=@SYSTEMD_NOTIFY@ --readahead=done 19 | 20 | [Install] 21 | Also=systemd-readahead-collect.service 22 | -------------------------------------------------------------------------------- /units/dev-hugepages.mount: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Huge Pages File System 10 | Documentation=https://www.kernel.org/doc/Documentation/vm/hugetlbpage.txt 11 | Documentation=http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems 12 | DefaultDependencies=no 13 | Before=sysinit.target 14 | ConditionPathExists=/sys/kernel/mm/hugepages 15 | 16 | [Mount] 17 | What=hugetlbfs 18 | Where=/dev/hugepages 19 | Type=hugetlbfs 20 | -------------------------------------------------------------------------------- /units/systemd-hostnamed.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Hostname Service 10 | Documentation=man:systemd-hostnamed.service(8) man:hostname(5) man:machine-info(5) 11 | Documentation=http://www.freedesktop.org/wiki/Software/systemd/hostnamed 12 | 13 | [Service] 14 | ExecStart=@rootlibexecdir@/systemd-hostnamed 15 | BusName=org.freedesktop.hostname1 16 | CapabilityBoundingSet=CAP_SYS_ADMIN CAP_DAC_OVERRIDE CAP_SYS_PTRACE 17 | -------------------------------------------------------------------------------- /units/initrd.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Initrd Default Target 10 | Documentation=man:systemd.special(7) 11 | OnFailure=emergency.target 12 | OnFailureIsolate=yes 13 | ConditionPathExists=/etc/initrd-release 14 | Requires=basic.target 15 | Wants=initrd-root-fs.target initrd-fs.target initrd-parse-etc.service 16 | After=initrd-root-fs.target initrd-fs.target basic.target rescue.service rescue.target 17 | AllowIsolate=yes 18 | -------------------------------------------------------------------------------- /units/system-update.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=System Update 10 | Documentation=http://freedesktop.org/wiki/Software/systemd/SystemUpdates 11 | Documentation=man:systemd.special(7) man:systemd-system-update-generator(8) 12 | Requires=sysinit.target 13 | Conflicts=shutdown.target systemd-readahead-collect.service systemd-readahead-replay.service 14 | After=sysinit.target 15 | Before=shutdown.target 16 | AllowIsolate=yes 17 | -------------------------------------------------------------------------------- /keymaps/acer: -------------------------------------------------------------------------------- 1 | 0xA5 help # Fn+F1 2 | 0xA6 setup # Fn+F2 Acer eSettings 3 | 0xA7 battery # Fn+F3 Power Management 4 | 0xA9 switchvideomode # Fn+F5 5 | 0xB3 euro 6 | 0xB4 dollar 7 | 0xCE brightnessup # Fn+Right 8 | 0xD4 bluetooth # (toggle) off-to-on 9 | 0xD5 wlan # (toggle) on-to-off 10 | 0xD6 wlan # (toggle) off-to-on 11 | 0xD7 bluetooth # (toggle) on-to-off 12 | 0xD8 bluetooth # (toggle) off-to-on 13 | 0xD9 brightnessup # Fn+Right 14 | 0xEE brightnessup # Fn+Right 15 | 0xEF brightnessdown # Fn+Left 16 | 0xF1 f22 # Fn+F7 Touchpad toggle (off-to-on) 17 | 0xF2 f23 # Fn+F7 Touchpad toggle (on-to-off) 18 | 0xF3 prog2 # "P2" programmable button 19 | 0xF4 prog1 # "P1" programmable button 20 | 0xF5 presentation 21 | 0xF8 fn 22 | 0xF9 f23 # Launch NTI shadow 23 | -------------------------------------------------------------------------------- /rules/60-cdrom_id.rules: -------------------------------------------------------------------------------- 1 | # do not edit this file, it will be overwritten on update 2 | 3 | ACTION=="remove", GOTO="cdrom_end" 4 | SUBSYSTEM!="block", GOTO="cdrom_end" 5 | KERNEL!="sr[0-9]*|xvd*", GOTO="cdrom_end" 6 | ENV{DEVTYPE}!="disk", GOTO="cdrom_end" 7 | 8 | # unconditionally tag device as CDROM 9 | KERNEL=="sr[0-9]*", ENV{ID_CDROM}="1" 10 | 11 | # media eject button pressed 12 | ENV{DISK_EJECT_REQUEST}=="?*", RUN+="cdrom_id --eject-media $devnode", GOTO="cdrom_end" 13 | 14 | # import device and media properties and lock tray to 15 | # enable the receiving of media eject button events 16 | IMPORT{program}="cdrom_id --lock-media $devnode" 17 | 18 | KERNEL=="sr0", SYMLINK+="cdrom", OPTIONS+="link_priority=-100" 19 | 20 | LABEL="cdrom_end" 21 | -------------------------------------------------------------------------------- /src/udev/keymap/keyboard-force-release.sh.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | # read list of scancodes, convert hex to decimal and 3 | # append to the atkbd force_release sysfs attribute 4 | # $1 sysfs devpath for serioX 5 | # $2 file with scancode list (hex or dec) 6 | 7 | case "$2" in 8 | /*) scf="$2" ;; 9 | *) scf="@udevlibexecdir@/keymaps/force-release/$2" ;; 10 | esac 11 | 12 | read attr <"/sys/$1/force_release" 13 | while read scancode dummy; do 14 | case "$scancode" in 15 | \#*) ;; 16 | *) 17 | scancode=$(($scancode)) 18 | attr="$attr${attr:+,}$scancode" 19 | ;; 20 | esac 21 | done <"$scf" 22 | echo "$attr" >"/sys/$1/force_release" 23 | -------------------------------------------------------------------------------- /units/systemd-ask-password-console.path: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Dispatch Password Requests to Console Directory Watch 10 | Documentation=man:systemd-ask-password-console.service(8) 11 | DefaultDependencies=no 12 | Conflicts=shutdown.target 13 | After=plymouth-start.service 14 | Before=paths.target shutdown.target 15 | ConditionPathExists=!/run/plymouth/pid 16 | 17 | [Path] 18 | DirectoryNotEmpty=/run/systemd/ask-password 19 | MakeDirectory=yes 20 | -------------------------------------------------------------------------------- /units/systemd-fsck@.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=File System Check on %f 10 | Documentation=man:systemd-fsck@.service(8) 11 | DefaultDependencies=no 12 | BindsTo=%i.device 13 | After=systemd-readahead-collect.service systemd-readahead-replay.service %i.device 14 | Before=shutdown.target 15 | 16 | [Service] 17 | Type=oneshot 18 | RemainAfterExit=yes 19 | ExecStart=@rootlibexecdir@/systemd-fsck %f 20 | StandardOutput=journal+console 21 | TimeoutSec=0 22 | -------------------------------------------------------------------------------- /units/systemd-ask-password-console.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Dispatch Password Requests to Console 10 | Documentation=man:systemd-ask-password-console.service(8) 11 | DefaultDependencies=no 12 | Conflicts=shutdown.target 13 | After=plymouth-start.service systemd-vconsole-setup.service 14 | Before=shutdown.target 15 | ConditionPathExists=!/run/plymouth/pid 16 | 17 | [Service] 18 | ExecStart=@rootbindir@/systemd-tty-ask-password-agent --watch --console 19 | -------------------------------------------------------------------------------- /units/systemd-random-seed-load.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Load Random Seed 10 | Documentation=man:systemd-random-seed-load.service(8) man:random(4) 11 | DefaultDependencies=no 12 | RequiresMountsFor=@RANDOM_SEED@ 13 | After=systemd-readahead-collect.service systemd-readahead-replay.service systemd-remount-fs.service 14 | Before=sysinit.target final.target 15 | 16 | [Service] 17 | Type=oneshot 18 | ExecStart=@rootlibexecdir@/systemd-random-seed load 19 | -------------------------------------------------------------------------------- /units/initrd-switch-root.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Switch Root 10 | ConditionPathExists=/etc/initrd-release 11 | DefaultDependencies=no 12 | Requires=initrd-switch-root.service 13 | Before=initrd-switch-root.service 14 | AllowIsolate=yes 15 | Wants=initrd-udevadm-cleanup-db.service initrd-root-fs.target initrd-fs.target systemd-journald.service 16 | After=initrd-udevadm-cleanup-db.service initrd-root-fs.target initrd-fs.target emergency.service emergency.target 17 | -------------------------------------------------------------------------------- /units/initrd-udevadm-cleanup-db.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Cleanup udevd DB 10 | DefaultDependencies=no 11 | ConditionPathExists=/etc/initrd-release 12 | Conflicts=systemd-udevd.service systemd-udevd-control.socket systemd-udevd-kernel.socket 13 | After=systemd-udevd.service systemd-udevd-control.socket systemd-udevd-kernel.socket 14 | Before=initrd-switch-root.target 15 | 16 | [Service] 17 | Type=oneshot 18 | ExecStart=-@rootbindir@/udevadm info --cleanup-db 19 | -------------------------------------------------------------------------------- /units/systemd-ask-password-wall.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Forward Password Requests to Wall 10 | Documentation=man:systemd-ask-password-console.service(8) 11 | After=systemd-user-sessions.service 12 | 13 | [Service] 14 | ExecStartPre=-@SYSTEMCTL@ stop systemd-ask-password-console.path systemd-ask-password-console.service systemd-ask-password-plymouth.path systemd-ask-password-plymouth.service 15 | ExecStart=@rootbindir@/systemd-tty-ask-password-agent --wall 16 | -------------------------------------------------------------------------------- /units/sys-fs-fuse-connections.mount: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=FUSE Control File System 10 | Documentation=https://www.kernel.org/doc/Documentation/filesystems/fuse.txt 11 | Documentation=http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems 12 | DefaultDependencies=no 13 | ConditionPathExists=/sys/fs/fuse/connections 14 | After=systemd-modules-load.service 15 | Before=sysinit.target 16 | 17 | [Mount] 18 | What=fusectl 19 | Where=/sys/fs/fuse/connections 20 | Type=fusectl 21 | -------------------------------------------------------------------------------- /units/sys-kernel-config.mount: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Configuration File System 10 | Documentation=https://www.kernel.org/doc/Documentation/filesystems/configfs/configfs.txt 11 | Documentation=http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems 12 | DefaultDependencies=no 13 | ConditionPathExists=/sys/kernel/config 14 | After=systemd-modules-load.service 15 | Before=sysinit.target 16 | 17 | [Mount] 18 | What=configfs 19 | Where=/sys/kernel/config 20 | Type=configfs 21 | -------------------------------------------------------------------------------- /units/systemd-quotacheck.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=File System Quota Check 10 | Documentation=man:systemd-quotacheck.service(8) 11 | DefaultDependencies=no 12 | After=systemd-readahead-collect.service systemd-readahead-replay.service systemd-remount-fs.service 13 | Before=local-fs.target shutdown.target 14 | ConditionPathExists=@QUOTACHECK@ 15 | 16 | [Service] 17 | Type=oneshot 18 | RemainAfterExit=yes 19 | ExecStart=@rootlibexecdir@/systemd-quotacheck 20 | TimeoutSec=0 21 | -------------------------------------------------------------------------------- /units/proc-sys-fs-binfmt_misc.automount: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Arbitrary Executable File Formats File System Automount Point 10 | Documentation=https://www.kernel.org/doc/Documentation/binfmt_misc.txt 11 | Documentation=http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems 12 | DefaultDependencies=no 13 | Before=sysinit.target 14 | ConditionPathExists=/proc/sys/fs/binfmt_misc/ 15 | ConditionPathIsReadWrite=/proc/sys/ 16 | 17 | [Automount] 18 | Where=/proc/sys/fs/binfmt_misc 19 | -------------------------------------------------------------------------------- /units/rc-local.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | # This unit gets pulled automatically into multi-user.target by 9 | # systemd-rc-local-generator if @RC_LOCAL_SCRIPT_PATH_START@ is executable. 10 | [Unit] 11 | Description=@RC_LOCAL_SCRIPT_PATH_START@ Compatibility 12 | ConditionFileIsExecutable=@RC_LOCAL_SCRIPT_PATH_START@ 13 | After=network.target 14 | 15 | [Service] 16 | Type=forking 17 | ExecStart=@RC_LOCAL_SCRIPT_PATH_START@ start 18 | TimeoutSec=0 19 | RemainAfterExit=yes 20 | SysVStartPriority=99 21 | -------------------------------------------------------------------------------- /units/systemd-update-utmp-shutdown.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Update UTMP about System Shutdown 10 | Documentation=man:systemd-update-utmp-runlevel.service(8) man:utmp(5) 11 | DefaultDependencies=no 12 | RequiresMountsFor=/var/log/wtmp 13 | After=systemd-remount-fs.service systemd-tmpfiles-setup.service auditd.service 14 | After=systemd-update-utmp-runlevel.service 15 | Before=final.target 16 | 17 | [Service] 18 | Type=oneshot 19 | ExecStart=@rootlibexecdir@/systemd-update-utmp shutdown 20 | -------------------------------------------------------------------------------- /units/systemd-vconsole-setup.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Setup Virtual Console 10 | Documentation=man:systemd-vconsole-setup.service(8) man:vconsole.conf(5) 11 | DefaultDependencies=no 12 | Conflicts=shutdown.target 13 | After=systemd-readahead-collect.service systemd-readahead-replay.service 14 | Before=sysinit.target shutdown.target 15 | ConditionPathExists=/dev/tty0 16 | 17 | [Service] 18 | Type=oneshot 19 | RemainAfterExit=yes 20 | ExecStart=@rootlibexecdir@/systemd-vconsole-setup 21 | -------------------------------------------------------------------------------- /units/systemd-journal-flush.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Trigger Flushing of Journal to Persistent Storage 10 | Documentation=man:systemd-journald.service(8) man:journald.conf(5) 11 | DefaultDependencies=no 12 | Requires=systemd-journald.service 13 | After=systemd-journald.service local-fs.target remote-fs.target 14 | Before=systemd-user-sessions.service 15 | 16 | [Service] 17 | ExecStart=@rootbindir@/systemctl kill --kill-who=main --signal=SIGUSR1 systemd-journald.service 18 | Type=oneshot 19 | -------------------------------------------------------------------------------- /src/libsystemd-daemon/libsystemd-daemon.pc.in: -------------------------------------------------------------------------------- 1 | # Permission is hereby granted, free of charge, to any person 2 | # obtaining a copy of this software and associated documentation files 3 | # (the "Software"), to deal in the Software without restriction, 4 | # including without limitation the rights to use, copy, modify, merge, 5 | # publish, distribute, sublicense, and/or sell copies of the Software, 6 | # and to permit persons to whom the Software is furnished to do so, 7 | # subject to the following conditions: 8 | 9 | prefix=@prefix@ 10 | exec_prefix=@exec_prefix@ 11 | libdir=@libdir@ 12 | includedir=@includedir@ 13 | 14 | Name: systemd 15 | Description: systemd Daemon Utility Library 16 | URL: @PACKAGE_URL@ 17 | Version: @PACKAGE_VERSION@ 18 | Libs: -L${libdir} -lsystemd-daemon 19 | Cflags: -I${includedir} 20 | -------------------------------------------------------------------------------- /units/user@.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=User Manager for %u 10 | After=systemd-user-sessions.service 11 | 12 | [Service] 13 | User=%I 14 | PAMName=systemd-shared 15 | # in order to allow MEM_CG features to work, add "memory:/" here 16 | ControlGroup=%R/user/%u/shared cpu:/ 17 | ControlGroupModify=yes 18 | Type=notify 19 | ExecStart=-@rootlibexecdir@/systemd --user 20 | Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%U/dbus/user_bus_socket 21 | 22 | [Install] 23 | Alias=user@%i.service 24 | -------------------------------------------------------------------------------- /sysctl.d/50-default.conf: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | # See sysctl.d(5) and core(5) for for details. 9 | 10 | # System Request functionality of the kernel (SYNC) 11 | kernel.sysrq = 16 12 | 13 | # Append the PID to the core filename 14 | kernel.core_uses_pid = 1 15 | 16 | # Source route verification 17 | net.ipv4.conf.default.rp_filter = 1 18 | 19 | # Do not accept source routing 20 | net.ipv4.conf.default.accept_source_route = 0 21 | 22 | # Enable hard and soft link protection 23 | fs.protected_hardlinks = 1 24 | fs.protected_symlinks = 1 25 | -------------------------------------------------------------------------------- /src/journal/lookup3.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | #pragma once 4 | 5 | #include 6 | #include 7 | 8 | uint32_t jenkins_hashword(const uint32_t *k, size_t length, uint32_t initval); 9 | void jenkins_hashword2(const uint32_t *k, size_t length, uint32_t *pc, uint32_t *pb); 10 | 11 | uint32_t jenkins_hashlittle(const void *key, size_t length, uint32_t initval); 12 | void jenkins_hashlittle2(const void *key, size_t length, uint32_t *pc, uint32_t *pb); 13 | 14 | uint32_t jenkins_hashbig(const void *key, size_t length, uint32_t initval); 15 | 16 | static inline uint64_t hash64(const void *data, size_t length) { 17 | uint32_t a = 0, b = 0; 18 | 19 | jenkins_hashlittle2(data, length, &a, &b); 20 | 21 | return ((uint64_t) a << 32ULL) | (uint64_t) b; 22 | } 23 | -------------------------------------------------------------------------------- /units/systemd-udev-trigger.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=udev Coldplug all Devices 10 | Documentation=man:udev(7) man:systemd-udevd.service(8) 11 | DefaultDependencies=no 12 | Wants=systemd-udevd.service 13 | After=systemd-udevd-kernel.socket systemd-udevd-control.socket 14 | Before=sysinit.target 15 | ConditionCapability=CAP_MKNOD 16 | 17 | [Service] 18 | Type=oneshot 19 | RemainAfterExit=yes 20 | ExecStart=@rootbindir@/udevadm trigger --type=subsystems --action=add ; @rootbindir@/udevadm trigger --type=devices --action=add 21 | -------------------------------------------------------------------------------- /src/python-systemd/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- Mode: python; indent-tabs-mode: nil -*- */ 2 | # 3 | # This file is part of systemd. 4 | # 5 | # Copyright 2012 David Strauss 6 | # 7 | # systemd is free software; you can redistribute it and/or modify it 8 | # under the terms of the GNU Lesser General Public License as published by 9 | # the Free Software Foundation; either version 2.1 of the License, or 10 | # (at your option) any later version. 11 | # 12 | # systemd is distributed in the hope that it will be useful, but 13 | # WITHOUT ANY WARRANTY; without even the implied warranty of 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | # Lesser General Public License for more details. 16 | # 17 | # You should have received a copy of the GNU Lesser General Public License 18 | # along with systemd; If not, see . 19 | -------------------------------------------------------------------------------- /units/systemd-update-utmp-runlevel.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Update UTMP about System Runlevel Changes 10 | Documentation=man:systemd-update-utmp-runlevel.service(8) man:utmp(5) 11 | DefaultDependencies=no 12 | RequiresMountsFor=/var/log/wtmp 13 | After=systemd-remount-fs.service systemd-tmpfiles-setup.service auditd.service 14 | After=runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target 15 | Before=final.target 16 | 17 | [Service] 18 | Type=oneshot 19 | ExecStart=@rootlibexecdir@/systemd-update-utmp runlevel 20 | -------------------------------------------------------------------------------- /rules/60-persistent-v4l.rules: -------------------------------------------------------------------------------- 1 | # do not edit this file, it will be overwritten on update 2 | 3 | ACTION=="remove", GOTO="persistent_v4l_end" 4 | SUBSYSTEM!="video4linux", GOTO="persistent_v4l_end" 5 | ENV{MAJOR}=="", GOTO="persistent_v4l_end" 6 | 7 | IMPORT{program}="v4l_id $devnode" 8 | 9 | SUBSYSTEMS=="usb", IMPORT{builtin}="usb_id" 10 | KERNEL=="video*", ENV{ID_SERIAL}=="?*", SYMLINK+="v4l/by-id/$env{ID_BUS}-$env{ID_SERIAL}-video-index$attr{index}" 11 | 12 | # check for valid "index" number 13 | TEST!="index", GOTO="persistent_v4l_end" 14 | ATTR{index}!="?*", GOTO="persistent_v4l_end" 15 | 16 | IMPORT{builtin}="path_id" 17 | ENV{ID_PATH}=="?*", KERNEL=="video*|vbi*", SYMLINK+="v4l/by-path/$env{ID_PATH}-video-index$attr{index}" 18 | ENV{ID_PATH}=="?*", KERNEL=="audio*", SYMLINK+="v4l/by-path/$env{ID_PATH}-audio-index$attr{index}" 19 | 20 | LABEL="persistent_v4l_end" 21 | -------------------------------------------------------------------------------- /tmpfiles.d/systemd.conf: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | # See tmpfiles.d(5) for details 9 | 10 | d /run/user 0755 root root ~10d 11 | F /run/utmp 0664 root utmp - 12 | 13 | f /var/log/wtmp 0664 root utmp - 14 | f /var/log/btmp 0600 root utmp - 15 | 16 | d /var/cache/man - - - 30d 17 | 18 | d /run/systemd/ask-password 0755 root root - 19 | d /run/systemd/seats 0755 root root - 20 | d /run/systemd/sessions 0755 root root - 21 | d /run/systemd/users 0755 root root - 22 | d /run/systemd/shutdown 0755 root root - 23 | 24 | F /run/nologin 0644 - - - "System is booting up. See pam_nologin(8)" 25 | -------------------------------------------------------------------------------- /src/login/logind.conf: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | # 8 | # See logind.conf(5) for details 9 | 10 | [Login] 11 | #NAutoVTs=6 12 | #ReserveVT=6 13 | #KillUserProcesses=no 14 | #KillOnlyUsers= 15 | #KillExcludeUsers=root 16 | #Controllers= 17 | #ResetControllers=cpu 18 | #InhibitDelayMaxSec=5 19 | #HandlePowerKey=poweroff 20 | #HandleSuspendKey=suspend 21 | #HandleHibernateKey=hibernate 22 | #HandleLidSwitch=suspend 23 | #PowerKeyIgnoreInhibited=no 24 | #SuspendKeyIgnoreInhibited=no 25 | #HibernateKeyIgnoreInhibited=no 26 | #LidSwitchIgnoreInhibited=yes 27 | #IdleAction=ignore 28 | #IdleActionSec=30min 29 | -------------------------------------------------------------------------------- /src/test/test-cgroup-util.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include "util.h" 4 | #include "cgroup-util.h" 5 | 6 | #define check_c_t_u(path, code, result) \ 7 | { \ 8 | char a[] = path; \ 9 | char *unit = NULL; \ 10 | assert_se(cgroup_to_unit(a, &unit) == code); \ 11 | assert(code < 0 || streq(unit, result)); \ 12 | } 13 | 14 | 15 | static void test_cgroup_to_unit(void) { 16 | check_c_t_u("/system/getty@.service/tty2", 0, "getty@tty2.service"); 17 | check_c_t_u("/system/getty@.service/", -EINVAL, "getty@tty2.service"); 18 | check_c_t_u("/system/getty@.service", -EINVAL, "getty@tty2.service"); 19 | check_c_t_u("/system/getty.service", 0, "getty.service"); 20 | check_c_t_u("/system/getty", -EINVAL, "getty.service"); 21 | } 22 | 23 | int main(void) { 24 | test_cgroup_to_unit(); 25 | 26 | return 0; 27 | } 28 | -------------------------------------------------------------------------------- /units/initrd-parse-etc.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Reload Configuration from the Real Root 10 | DefaultDependencies=no 11 | Requires=initrd-root-fs.target 12 | After=initrd-root-fs.target 13 | OnFailure=emergency.target 14 | ConditionPathExists=/etc/initrd-release 15 | 16 | [Service] 17 | Type=oneshot 18 | ExecStartPre=@rootbindir@/systemctl daemon-reload 19 | # we have to retrigger initrd-fs.target after daemon-reload 20 | ExecStart=-@rootbindir@/systemctl --no-block start initrd-fs.target 21 | ExecStart=@rootbindir@/systemctl --no-block start initrd-cleanup.service 22 | -------------------------------------------------------------------------------- /keymaps/genius-slimstar-320: -------------------------------------------------------------------------------- 1 | # Genius SlimStar 320 2 | # 3 | # Only buttons which are not properly mapped yet are configured below 4 | 5 | # "Scroll wheel", a circular up/down/left/right button. Aimed for scolling, 6 | # but since there are no scrollleft/scrollright, let's map to back/forward. 7 | 0x900f0 scrollup 8 | 0x900f1 scrolldown 9 | 0x900f3 back 10 | 0x900f2 forward 11 | 12 | # Multimedia buttons, left side (from left to right) 13 | # [W] 14 | 0x900f5 wordprocessor 15 | # [Ex] 16 | 0x900f6 spreadsheet 17 | # [P] 18 | 0x900f4 presentation 19 | # Other five (calculator, playpause, stop, mute and eject) are OK 20 | 21 | # Right side, from left to right 22 | # [e] 23 | 0xc0223 www 24 | # "man" 25 | 0x900f7 chat 26 | # "Y" 27 | 0x900fb prog1 28 | # [X] 29 | 0x900f8 close 30 | # "picture" 31 | 0x900f9 graphicseditor 32 | # "two windows" 33 | 0x900fd scale 34 | # "lock" 35 | 0x900fc screenlock 36 | -------------------------------------------------------------------------------- /units/systemd-readahead-replay.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Replay Read-Ahead Data 10 | Documentation=man:systemd-readahead-replay.service(8) 11 | DefaultDependencies=no 12 | Conflicts=shutdown.target 13 | Before=sysinit.target shutdown.target 14 | ConditionPathExists=!/run/systemd/readahead/noreplay 15 | ConditionPathExists=/.readahead 16 | ConditionVirtualization=no 17 | 18 | [Service] 19 | Type=notify 20 | ExecStart=@rootlibexecdir@/systemd-readahead replay 21 | RemainAfterExit=yes 22 | StandardOutput=null 23 | OOMScoreAdjust=1000 24 | 25 | [Install] 26 | WantedBy=default.target 27 | -------------------------------------------------------------------------------- /units/systemd-udevd.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=udev Kernel Device Manager 10 | Documentation=man:systemd-udevd.service(8) man:udev(7) 11 | DefaultDependencies=no 12 | Wants=systemd-udevd-control.socket systemd-udevd-kernel.socket 13 | After=systemd-udevd-control.socket systemd-udevd-kernel.socket 14 | Before=sysinit.target local-fs-pre.target 15 | ConditionCapability=CAP_MKNOD 16 | 17 | [Service] 18 | Type=notify 19 | OOMScoreAdjust=-1000 20 | Sockets=systemd-udevd-control.socket systemd-udevd-kernel.socket 21 | Restart=always 22 | RestartSec=0 23 | ExecStart=@rootlibexecdir@/systemd-udevd 24 | -------------------------------------------------------------------------------- /src/libsystemd-daemon/libsystemd-daemon.sym: -------------------------------------------------------------------------------- 1 | /*** 2 | Permission is hereby granted, free of charge, to any person 3 | obtaining a copy of this software and associated documentation files 4 | (the "Software"), to deal in the Software without restriction, 5 | including without limitation the rights to use, copy, modify, merge, 6 | publish, distribute, sublicense, and/or sell copies of the Software, 7 | and to permit persons to whom the Software is furnished to do so, 8 | subject to the following conditions: 9 | ***/ 10 | 11 | /* Original symbols from systemd v31 */ 12 | 13 | LIBSYSTEMD_DAEMON_31 { 14 | global: 15 | sd_booted; 16 | sd_is_fifo; 17 | sd_is_mq; 18 | sd_is_socket; 19 | sd_is_socket_inet; 20 | sd_is_socket_unix; 21 | sd_is_special; 22 | sd_listen_fds; 23 | sd_notify; 24 | sd_notifyf; 25 | local: 26 | *; 27 | }; 28 | -------------------------------------------------------------------------------- /src/core/kmod-setup.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | #pragma once 4 | 5 | /*** 6 | This file is part of systemd. 7 | 8 | Copyright 2010 Lennart Poettering 9 | 10 | systemd is free software; you can redistribute it and/or modify it 11 | under the terms of the GNU Lesser General Public License as published by 12 | the Free Software Foundation; either version 2.1 of the License, or 13 | (at your option) any later version. 14 | 15 | systemd is distributed in the hope that it will be useful, but 16 | WITHOUT ANY WARRANTY; without even the implied warranty of 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | Lesser General Public License for more details. 19 | 20 | You should have received a copy of the GNU Lesser General Public License 21 | along with systemd; If not, see . 22 | ***/ 23 | 24 | int kmod_setup(void); 25 | -------------------------------------------------------------------------------- /src/core/sync.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | #pragma once 4 | 5 | /*** 6 | This file is part of systemd. 7 | 8 | Copyright 2013 Lennart Poettering 9 | 10 | systemd is free software; you can redistribute it and/or modify it 11 | under the terms of the GNU Lesser General Public License as published by 12 | the Free Software Foundation; either version 2.1 of the License, or 13 | (at your option) any later version. 14 | 15 | systemd is distributed in the hope that it will be useful, but 16 | WITHOUT ANY WARRANTY; without even the implied warranty of 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | Lesser General Public License for more details. 19 | 20 | You should have received a copy of the GNU Lesser General Public License 21 | along with systemd; If not, see . 22 | ***/ 23 | 24 | int asynchronous_sync(void); 25 | -------------------------------------------------------------------------------- /src/journal/journald.conf: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | # 8 | # See journald.conf(5) for details 9 | 10 | [Journal] 11 | #Storage=auto 12 | #Compress=yes 13 | #Seal=yes 14 | #SplitMode=login 15 | #SyncIntervalSec=5m 16 | #RateLimitInterval=10s 17 | #RateLimitBurst=200 18 | #SystemMaxUse= 19 | #SystemKeepFree= 20 | #SystemMaxFileSize= 21 | #RuntimeMaxUse= 22 | #RuntimeKeepFree= 23 | #RuntimeMaxFileSize= 24 | #MaxRetentionSec= 25 | #MaxFileSec=1month 26 | #ForwardToSyslog=yes 27 | #ForwardToKMsg=no 28 | #ForwardToConsole=no 29 | #TTYPath=/dev/console 30 | #MaxLevelStore=debug 31 | #MaxLevelSyslog=debug 32 | #MaxLevelKMsg=notice 33 | #MaxLevelConsole=info 34 | -------------------------------------------------------------------------------- /src/core/hostname-setup.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | #pragma once 4 | 5 | /*** 6 | This file is part of systemd. 7 | 8 | Copyright 2010 Lennart Poettering 9 | 10 | systemd is free software; you can redistribute it and/or modify it 11 | under the terms of the GNU Lesser General Public License as published by 12 | the Free Software Foundation; either version 2.1 of the License, or 13 | (at your option) any later version. 14 | 15 | systemd is distributed in the hope that it will be useful, but 16 | WITHOUT ANY WARRANTY; without even the implied warranty of 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | Lesser General Public License for more details. 19 | 20 | You should have received a copy of the GNU Lesser General Public License 21 | along with systemd; If not, see . 22 | ***/ 23 | 24 | int hostname_setup(void); 25 | -------------------------------------------------------------------------------- /src/core/locale-setup.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | #pragma once 4 | 5 | /*** 6 | This file is part of systemd. 7 | 8 | Copyright 2010 Lennart Poettering 9 | 10 | systemd is free software; you can redistribute it and/or modify it 11 | under the terms of the GNU Lesser General Public License as published by 12 | the Free Software Foundation; either version 2.1 of the License, or 13 | (at your option) any later version. 14 | 15 | systemd is distributed in the hope that it will be useful, but 16 | WITHOUT ANY WARRANTY; without even the implied warranty of 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | Lesser General Public License for more details. 19 | 20 | You should have received a copy of the GNU Lesser General Public License 21 | along with systemd; If not, see . 22 | ***/ 23 | 24 | int locale_setup(void); 25 | -------------------------------------------------------------------------------- /src/core/loopback-setup.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | #pragma once 4 | 5 | /*** 6 | This file is part of systemd. 7 | 8 | Copyright 2010 Lennart Poettering 9 | 10 | systemd is free software; you can redistribute it and/or modify it 11 | under the terms of the GNU Lesser General Public License as published by 12 | the Free Software Foundation; either version 2.1 of the License, or 13 | (at your option) any later version. 14 | 15 | systemd is distributed in the hope that it will be useful, but 16 | WITHOUT ANY WARRANTY; without even the implied warranty of 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | Lesser General Public License for more details. 19 | 20 | You should have received a copy of the GNU Lesser General Public License 21 | along with systemd; If not, see . 22 | ***/ 23 | 24 | int loopback_setup(void); 25 | -------------------------------------------------------------------------------- /src/core/machine-id-setup.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | #pragma once 4 | 5 | /*** 6 | This file is part of systemd. 7 | 8 | Copyright 2010 Lennart Poettering 9 | 10 | systemd is free software; you can redistribute it and/or modify it 11 | under the terms of the GNU Lesser General Public License as published by 12 | the Free Software Foundation; either version 2.1 of the License, or 13 | (at your option) any later version. 14 | 15 | systemd is distributed in the hope that it will be useful, but 16 | WITHOUT ANY WARRANTY; without even the implied warranty of 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | Lesser General Public License for more details. 19 | 20 | You should have received a copy of the GNU Lesser General Public License 21 | along with systemd; If not, see . 22 | ***/ 23 | 24 | int machine_id_setup(void); 25 | -------------------------------------------------------------------------------- /units/syslog.target: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | # This unit file exists only for compatibility with broken unit files 9 | # that express hard requirement dependencies on syslog.target (i.e. 10 | # invalid usage of a provides-like target). 11 | 12 | [Unit] 13 | Description=Dummy Syslog target for compatibility with broken unit files 14 | Documentation=man:systemd.special(7) 15 | Documentation=http://www.freedesktop.org/wiki/Software/systemd/syslog 16 | 17 | # Avoid that we conflict with shutdown.target, so that we can stay 18 | # until the very end and do not cancel shutdown.target if we should 19 | # happen to be activated very late. 20 | DefaultDependencies=no 21 | -------------------------------------------------------------------------------- /units/systemd-fsck-root.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=File System Check on Root Device 10 | Documentation=man:systemd-fsck-root.service(8) 11 | DefaultDependencies=no 12 | After=systemd-readahead-collect.service systemd-readahead-replay.service 13 | Before=local-fs.target shutdown.target 14 | 15 | # Dracut informs us with this flag file if the root fsck was already run 16 | ConditionPathExists=!/run/initramfs/root-fsck 17 | ConditionPathIsReadWrite=!/ 18 | 19 | [Service] 20 | Type=oneshot 21 | RemainAfterExit=yes 22 | ExecStart=@rootlibexecdir@/systemd-fsck 23 | StandardOutput=journal+console 24 | FsckPassNo=1 25 | TimeoutSec=0 26 | -------------------------------------------------------------------------------- /units/systemd-remount-fs.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Remount Root and Kernel File Systems 10 | Documentation=man:systemd-remount-fs.service(8) 11 | Documentation=http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems 12 | DefaultDependencies=no 13 | Conflicts=shutdown.target 14 | After=systemd-readahead-collect.service systemd-readahead-replay.service systemd-fsck-root.service 15 | Before=local-fs-pre.target local-fs.target shutdown.target 16 | Wants=local-fs-pre.target 17 | ConditionPathExists=/etc/fstab 18 | 19 | [Service] 20 | Type=oneshot 21 | RemainAfterExit=yes 22 | ExecStart=@rootlibexecdir@/systemd-remount-fs 23 | -------------------------------------------------------------------------------- /src/shared/dev-setup.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | #pragma once 4 | 5 | /*** 6 | This file is part of systemd. 7 | 8 | Copyright 2010-2012 Lennart Poettering 9 | 10 | systemd is free software; you can redistribute it and/or modify it 11 | under the terms of the GNU Lesser General Public License as published by 12 | the Free Software Foundation; either version 2.1 of the License, or 13 | (at your option) any later version. 14 | 15 | systemd is distributed in the hope that it will be useful, but 16 | WITHOUT ANY WARRANTY; without even the implied warranty of 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | Lesser General Public License for more details. 19 | 20 | You should have received a copy of the GNU Lesser General Public License 21 | along with systemd; If not, see . 22 | ***/ 23 | 24 | void dev_setup(const char *pathprefix); 25 | -------------------------------------------------------------------------------- /units/systemd-tmpfiles-clean.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Cleanup of Temporary Directories 10 | Documentation=man:tmpfiles.d(5) 11 | DefaultDependencies=no 12 | Wants=local-fs.target 13 | After=systemd-readahead-collect.service systemd-readahead-replay.service local-fs.target 14 | Before=sysinit.target shutdown.target 15 | ConditionDirectoryNotEmpty=|/usr/lib/tmpfiles.d 16 | ConditionDirectoryNotEmpty=|/usr/local/lib/tmpfiles.d 17 | ConditionDirectoryNotEmpty=|/etc/tmpfiles.d 18 | ConditionDirectoryNotEmpty=|/run/tmpfiles.d 19 | 20 | [Service] 21 | Type=oneshot 22 | ExecStart=@rootbindir@/systemd-tmpfiles --clean 23 | IOSchedulingClass=idle 24 | -------------------------------------------------------------------------------- /src/core/audit-fd.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | #pragma once 4 | 5 | /*** 6 | This file is part of systemd. 7 | 8 | Copyright 2012 Lennart Poettering 9 | 10 | systemd is free software; you can redistribute it and/or modify it 11 | under the terms of the GNU Lesser General Public License as published by 12 | the Free Software Foundation; either version 2.1 of the License, or 13 | (at your option) any later version. 14 | 15 | systemd is distributed in the hope that it will be useful, but 16 | WITHOUT ANY WARRANTY; without even the implied warranty of 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | Lesser General Public License for more details. 19 | 20 | You should have received a copy of the GNU Lesser General Public License 21 | along with systemd; If not, see . 22 | ***/ 23 | 24 | int get_audit_fd(void); 25 | void close_audit_fd(void); 26 | -------------------------------------------------------------------------------- /units/systemd-udev-settle.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | # This service can dynamically be pulled-in by legacy services which 9 | # cannot reliably cope with dynamic device configurations, and wrongfully 10 | # expect a populated /dev during bootup. 11 | 12 | [Unit] 13 | Description=udev Wait for Complete Device Initialization 14 | Documentation=man:udev(7) man:systemd-udevd.service(8) 15 | DefaultDependencies=no 16 | Wants=systemd-udevd.service 17 | After=systemd-udev-trigger.service 18 | Before=sysinit.target 19 | ConditionCapability=CAP_MKNOD 20 | 21 | [Service] 22 | Type=oneshot 23 | TimeoutSec=180 24 | RemainAfterExit=yes 25 | ExecStart=@rootbindir@/udevadm settle 26 | -------------------------------------------------------------------------------- /units/systemd-journald.socket: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Journal Socket 10 | Documentation=man:systemd-journald.service(8) man:journald.conf(5) 11 | DefaultDependencies=no 12 | Before=sockets.target 13 | 14 | # Mount and swap units need this. If this socket unit is removed by an 15 | # isolate request the mount and and swap units would be removed too, 16 | # hence let's exclude this from isolate requests. 17 | IgnoreOnIsolate=yes 18 | 19 | [Socket] 20 | ListenStream=/run/systemd/journal/stdout 21 | ListenDatagram=/run/systemd/journal/socket 22 | ListenDatagram=/dev/log 23 | SocketMode=0666 24 | PassCredentials=yes 25 | PassSecurity=yes 26 | ReceiveBuffer=8M 27 | -------------------------------------------------------------------------------- /units/systemd-tmpfiles-setup.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Recreate Volatile Files and Directories 10 | Documentation=man:tmpfiles.d(5) 11 | DefaultDependencies=no 12 | Wants=local-fs.target 13 | After=systemd-readahead-collect.service systemd-readahead-replay.service local-fs.target 14 | Before=sysinit.target shutdown.target 15 | ConditionDirectoryNotEmpty=|/usr/lib/tmpfiles.d 16 | ConditionDirectoryNotEmpty=|/usr/local/lib/tmpfiles.d 17 | ConditionDirectoryNotEmpty=|/etc/tmpfiles.d 18 | ConditionDirectoryNotEmpty=|/run/tmpfiles.d 19 | 20 | [Service] 21 | Type=oneshot 22 | RemainAfterExit=yes 23 | ExecStart=@rootbindir@/systemd-tmpfiles --create --remove 24 | -------------------------------------------------------------------------------- /src/locale/generate-kbd-model-map: -------------------------------------------------------------------------------- 1 | import sys 2 | import system_config_keyboard.keyboard_models 3 | 4 | def strdash(s): 5 | return s.strip() or '-' 6 | 7 | def tab_extend(s, n=1): 8 | s = strdash(s) 9 | k = len(s) // 8 10 | 11 | if k >= n: 12 | f = 1 13 | else: 14 | f = n - k 15 | 16 | return s + '\t'*f 17 | 18 | 19 | models = system_config_keyboard.keyboard_models.KeyboardModels().get_models() 20 | 21 | print "# Generated from system-config-keyboard's model list" 22 | print "# consolelayout\t\txlayout\txmodel\t\txvariant\txoptions" 23 | 24 | for key, value in reversed(models.items()): 25 | options = "terminate:ctrl_alt_bksp" 26 | if value[4]: 27 | options += ',' + value[4] 28 | 29 | print ''.join((tab_extend(key, 3), tab_extend(value[1]), 30 | tab_extend(value[2], 2), tab_extend(value[3], 2), 31 | options)) 32 | -------------------------------------------------------------------------------- /units/systemd-logind.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Login Service 10 | Documentation=man:systemd-logind.service(8) man:logind.conf(5) 11 | Documentation=http://www.freedesktop.org/wiki/Software/systemd/multiseat 12 | After=nss-user-lookup.target 13 | 14 | [Service] 15 | ExecStart=@rootlibexecdir@/systemd-logind 16 | Restart=always 17 | RestartSec=0 18 | BusName=org.freedesktop.login1 19 | CapabilityBoundingSet=CAP_AUDIT_CONTROL CAP_CHOWN CAP_KILL CAP_DAC_READ_SEARCH CAP_DAC_OVERRIDE CAP_FOWNER CAP_SYS_TTY_CONFIG 20 | 21 | # Increase the default a bit in order to allow many simultaneous 22 | # logins since we keep one fd open per session. 23 | LimitNOFILE=16384 24 | -------------------------------------------------------------------------------- /src/core/selinux-setup.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | #pragma once 4 | 5 | /*** 6 | This file is part of systemd. 7 | 8 | Copyright 2010 Lennart Poettering 9 | 10 | systemd is free software; you can redistribute it and/or modify it 11 | under the terms of the GNU Lesser General Public License as published by 12 | the Free Software Foundation; either version 2.1 of the License, or 13 | (at your option) any later version. 14 | 15 | systemd is distributed in the hope that it will be useful, but 16 | WITHOUT ANY WARRANTY; without even the implied warranty of 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | Lesser General Public License for more details. 19 | 20 | You should have received a copy of the GNU Lesser General Public License 21 | along with systemd; If not, see . 22 | ***/ 23 | 24 | #include 25 | 26 | int selinux_setup(bool *loaded_policy); 27 | -------------------------------------------------------------------------------- /src/core/sysfs-show.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | #pragma once 4 | 5 | /*** 6 | This file is part of systemd. 7 | 8 | Copyright 2011 Lennart Poettering 9 | 10 | systemd is free software; you can redistribute it and/or modify it 11 | under the terms of the GNU Lesser General Public License as published by 12 | the Free Software Foundation; either version 2.1 of the License, or 13 | (at your option) any later version. 14 | 15 | systemd is distributed in the hope that it will be useful, but 16 | WITHOUT ANY WARRANTY; without even the implied warranty of 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | Lesser General Public License for more details. 19 | 20 | You should have received a copy of the GNU Lesser General Public License 21 | along with systemd; If not, see . 22 | ***/ 23 | 24 | int show_sysfs(const char *seat, const char *prefix, unsigned columns); 25 | -------------------------------------------------------------------------------- /src/core/tcpwrap.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | #pragma once 4 | 5 | /*** 6 | This file is part of systemd. 7 | 8 | Copyright 2010 Lennart Poettering 9 | 10 | systemd is free software; you can redistribute it and/or modify it 11 | under the terms of the GNU Lesser General Public License as published by 12 | the Free Software Foundation; either version 2.1 of the License, or 13 | (at your option) any later version. 14 | 15 | systemd is distributed in the hope that it will be useful, but 16 | WITHOUT ANY WARRANTY; without even the implied warranty of 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | Lesser General Public License for more details. 19 | 20 | You should have received a copy of the GNU Lesser General Public License 21 | along with systemd; If not, see . 22 | ***/ 23 | 24 | #include 25 | 26 | bool socket_tcpwrap(int fd, const char *name); 27 | -------------------------------------------------------------------------------- /units/systemd-readahead-collect.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Collect Read-Ahead Data 10 | Documentation=man:systemd-readahead-replay.service(8) 11 | DefaultDependencies=no 12 | Wants=systemd-readahead-done.timer 13 | Conflicts=shutdown.target 14 | Before=sysinit.target shutdown.target 15 | ConditionPathExists=!/run/systemd/readahead/cancel 16 | ConditionPathExists=!/run/systemd/readahead/done 17 | ConditionVirtualization=no 18 | 19 | [Service] 20 | Type=notify 21 | ExecStart=@rootlibexecdir@/systemd-readahead collect 22 | RemainAfterExit=yes 23 | StandardOutput=null 24 | OOMScoreAdjust=1000 25 | 26 | [Install] 27 | WantedBy=default.target 28 | Also=systemd-readahead-drop.service 29 | -------------------------------------------------------------------------------- /src/shared/selinux-util.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | #pragma once 4 | 5 | /*** 6 | This file is part of systemd. 7 | 8 | Copyright 2010 Lennart Poettering 9 | 10 | systemd is free software; you can redistribute it and/or modify it 11 | under the terms of the GNU Lesser General Public License as published by 12 | the Free Software Foundation; either version 2.1 of the License, or 13 | (at your option) any later version. 14 | 15 | systemd is distributed in the hope that it will be useful, but 16 | WITHOUT ANY WARRANTY; without even the implied warranty of 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | Lesser General Public License for more details. 19 | 20 | You should have received a copy of the GNU Lesser General Public License 21 | along with systemd; If not, see . 22 | ***/ 23 | 24 | #include 25 | 26 | bool use_selinux(void); 27 | void retest_selinux(void); 28 | -------------------------------------------------------------------------------- /src/shared/spawn-ask-password-agent.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | #pragma once 4 | 5 | /*** 6 | This file is part of systemd. 7 | 8 | Copyright 2011 Lennart Poettering 9 | 10 | systemd is free software; you can redistribute it and/or modify it 11 | under the terms of the GNU Lesser General Public License as published by 12 | the Free Software Foundation; either version 2.1 of the License, or 13 | (at your option) any later version. 14 | 15 | systemd is distributed in the hope that it will be useful, but 16 | WITHOUT ANY WARRANTY; without even the implied warranty of 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | Lesser General Public License for more details. 19 | 20 | You should have received a copy of the GNU Lesser General Public License 21 | along with systemd; If not, see . 22 | ***/ 23 | 24 | int ask_password_agent_open(void); 25 | void ask_password_agent_close(void); 26 | -------------------------------------------------------------------------------- /src/core/killall.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | #ifndef fookillallhfoo 4 | #define fookillallhfoo 5 | 6 | /*** 7 | This file is part of systemd. 8 | 9 | Copyright 2012 Lennart Poettering 10 | 11 | systemd is free software; you can redistribute it and/or modify it 12 | under the terms of the GNU Lesser General Public License as published by 13 | the Free Software Foundation; either version 2.1 of the License, or 14 | (at your option) any later version. 15 | 16 | systemd is distributed in the hope that it will be useful, but 17 | WITHOUT ANY WARRANTY; without even the implied warranty of 18 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 19 | Lesser General Public License for more details. 20 | 21 | You should have received a copy of the GNU Lesser General Public License 22 | along with systemd; If not, see . 23 | ***/ 24 | 25 | void broadcast_signal(int sig, bool wait); 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /src/core/smack-setup.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | #pragma once 4 | 5 | /*** 6 | This file is part of systemd. 7 | 8 | Copyright (C) 2013 Intel Corporation 9 | Authors: 10 | Nathaniel Chen 11 | 12 | systemd is free software; you can redistribute it and/or modify it 13 | under the terms of the GNU Lesser General Public License as published 14 | by the Free Software Foundation; either version 2.1 of the License, 15 | or (at your option) any later version. 16 | 17 | systemd is distributed in the hope that it will be useful, but 18 | WITHOUT ANY WARRANTY; without even the implied warranty of 19 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 20 | Lesser General Public License for more details. 21 | 22 | You should have received a copy of the GNU Lesser General Public License 23 | along with systemd; If not, see . 24 | ***/ 25 | 26 | int smack_setup(void); 27 | -------------------------------------------------------------------------------- /src/bootchart/svg.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | #pragma once 4 | 5 | /*** 6 | This file is part of systemd. 7 | 8 | Copyright (C) 2009-2013 Intel Coproration 9 | 10 | Authors: 11 | Auke Kok 12 | 13 | systemd is free software; you can redistribute it and/or modify it 14 | under the terms of the GNU Lesser General Public License as published by 15 | the Free Software Foundation; either version 2.1 of the License, or 16 | (at your option) any later version. 17 | 18 | systemd is distributed in the hope that it will be useful, but 19 | WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public License 24 | along with systemd; If not, see . 25 | ***/ 26 | 27 | void svg_do(const char *build); 28 | -------------------------------------------------------------------------------- /src/shared/install-printf.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | /*** 4 | This file is part of systemd. 5 | 6 | Copyright 2013 Zbigniew Jędrzejewski-Szmek 7 | 8 | systemd is free software; you can redistribute it and/or modify it 9 | under the terms of the GNU Lesser General Public License as published by 10 | the Free Software Foundation; either version 2.1 of the License, or 11 | (at your option) any later version. 12 | 13 | systemd is distributed in the hope that it will be useful, but 14 | WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | Lesser General Public License for more details. 17 | 18 | You should have received a copy of the GNU Lesser General Public License 19 | along with systemd; If not, see . 20 | ***/ 21 | 22 | #pragma once 23 | 24 | #include "install.h" 25 | char *install_full_printf(InstallInfo *i, const char *format); 26 | -------------------------------------------------------------------------------- /src/shared/dbus-loop.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | #pragma once 4 | 5 | /*** 6 | This file is part of systemd. 7 | 8 | Copyright 2011 Lennart Poettering 9 | 10 | systemd is free software; you can redistribute it and/or modify it 11 | under the terms of the GNU Lesser General Public License as published by 12 | the Free Software Foundation; either version 2.1 of the License, or 13 | (at your option) any later version. 14 | 15 | systemd is distributed in the hope that it will be useful, but 16 | WITHOUT ANY WARRANTY; without even the implied warranty of 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | Lesser General Public License for more details. 19 | 20 | You should have received a copy of the GNU Lesser General Public License 21 | along with systemd; If not, see . 22 | ***/ 23 | 24 | #include 25 | 26 | int bus_loop_open(DBusConnection *c); 27 | int bus_loop_dispatch(int fd); 28 | -------------------------------------------------------------------------------- /src/shared/replace-var.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | #pragma once 4 | 5 | /*** 6 | This file is part of systemd. 7 | 8 | Copyright 2012 Lennart Poettering 9 | 10 | systemd is free software; you can redistribute it and/or modify it 11 | under the terms of the GNU Lesser General Public License as published by 12 | the Free Software Foundation; either version 2.1 of the License, or 13 | (at your option) any later version. 14 | 15 | systemd is distributed in the hope that it will be useful, but 16 | WITHOUT ANY WARRANTY; without even the implied warranty of 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | Lesser General Public License for more details. 19 | 20 | You should have received a copy of the GNU Lesser General Public License 21 | along with systemd; If not, see . 22 | ***/ 23 | 24 | char *replace_var(const char *text, char *(*lookup)(const char *variable, void*userdata), void *userdata); 25 | -------------------------------------------------------------------------------- /src/journal/microhttpd-util.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | /*** 4 | This file is part of systemd. 5 | 6 | Copyright 2012 Zbigniew Jędrzejewski-Szmek 7 | 8 | systemd is free software; you can redistribute it and/or modify it 9 | under the terms of the GNU Lesser General Public License as published by 10 | the Free Software Foundation; either version 2.1 of the License, or 11 | (at your option) any later version. 12 | 13 | systemd is distributed in the hope that it will be useful, but 14 | WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | Lesser General Public License for more details. 17 | 18 | You should have received a copy of the GNU Lesser General Public License 19 | along with systemd; If not, see . 20 | ***/ 21 | 22 | #pragma once 23 | 24 | #include 25 | 26 | void microhttpd_logger(void *arg, const char *fmt, va_list ap); 27 | -------------------------------------------------------------------------------- /src/core/switch-root.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | #ifndef fooswitchroothfoo 4 | #define fooswitchroothfoo 5 | 6 | /*** 7 | This file is part of systemd. 8 | 9 | Copyright 2012 Harald Hoyer, Lennart Poettering 10 | 11 | systemd is free software; you can redistribute it and/or modify it 12 | under the terms of the GNU Lesser General Public License as published by 13 | the Free Software Foundation; either version 2.1 of the License, or 14 | (at your option) any later version. 15 | 16 | systemd is distributed in the hope that it will be useful, but 17 | WITHOUT ANY WARRANTY; without even the implied warranty of 18 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 19 | Lesser General Public License for more details. 20 | 21 | You should have received a copy of the GNU Lesser General Public License 22 | along with systemd; If not, see . 23 | ***/ 24 | 25 | int switch_root(const char *switch_root); 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /src/shared/pager.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | #pragma once 4 | 5 | /*** 6 | This file is part of systemd. 7 | 8 | Copyright 2010 Lennart Poettering 9 | 10 | systemd is free software; you can redistribute it and/or modify it 11 | under the terms of the GNU Lesser General Public License as published by 12 | the Free Software Foundation; either version 2.1 of the License, or 13 | (at your option) any later version. 14 | 15 | systemd is distributed in the hope that it will be useful, but 16 | WITHOUT ANY WARRANTY; without even the implied warranty of 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | Lesser General Public License for more details. 19 | 20 | You should have received a copy of the GNU Lesser General Public License 21 | along with systemd; If not, see . 22 | ***/ 23 | 24 | #include 25 | 26 | int pager_open(bool jump_to_end); 27 | void pager_close(void); 28 | bool pager_have(void); 29 | -------------------------------------------------------------------------------- /units/console-getty.service.m4.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Console Getty 10 | Documentation=man:agetty(8) 11 | After=systemd-user-sessions.service plymouth-quit-wait.service 12 | m4_ifdef(`HAVE_SYSV_COMPAT', 13 | After=rc-local.service 14 | )m4_dnl 15 | Before=getty.target 16 | 17 | [Service] 18 | ExecStart=-/sbin/agetty --noclear -s console 115200,38400,9600 19 | Type=idle 20 | Restart=always 21 | RestartSec=0 22 | UtmpIdentifier=cons 23 | TTYPath=/dev/console 24 | TTYReset=yes 25 | TTYVHangup=yes 26 | KillMode=process 27 | IgnoreSIGPIPE=no 28 | 29 | # Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash 30 | # terminates cleanly. 31 | KillSignal=SIGHUP 32 | 33 | [Install] 34 | WantedBy=getty.target 35 | -------------------------------------------------------------------------------- /src/boot/boot-loader.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | #pragma once 4 | 5 | /*** 6 | This file is part of systemd. 7 | 8 | Copyright 2013 Kay Sievers 9 | 10 | systemd is free software; you can redistribute it and/or modify it 11 | under the terms of the GNU Lesser General Public License as published by 12 | the Free Software Foundation; either version 2.1 of the License, or 13 | (at your option) any later version. 14 | 15 | systemd is distributed in the hope that it will be useful, but 16 | WITHOUT ANY WARRANTY; without even the implied warranty of 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | Lesser General Public License for more details. 19 | 20 | You should have received a copy of the GNU Lesser General Public License 21 | along with systemd; If not, see . 22 | ***/ 23 | 24 | int boot_loader_read_entries(struct boot_info *info); 25 | int boot_loader_find_active_entry(struct boot_info *info, const char *loader_active); 26 | -------------------------------------------------------------------------------- /src/shared/watchdog.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | #pragma once 4 | 5 | /*** 6 | This file is part of systemd. 7 | 8 | Copyright 2012 Lennart Poettering 9 | 10 | systemd is free software; you can redistribute it and/or modify it 11 | under the terms of the GNU Lesser General Public License as published by 12 | the Free Software Foundation; either version 2.1 of the License, or 13 | (at your option) any later version. 14 | 15 | systemd is distributed in the hope that it will be useful, but 16 | WITHOUT ANY WARRANTY; without even the implied warranty of 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | Lesser General Public License for more details. 19 | 20 | You should have received a copy of the GNU Lesser General Public License 21 | along with systemd; If not, see . 22 | ***/ 23 | 24 | #include "util.h" 25 | 26 | int watchdog_set_timeout(usec_t *usec); 27 | int watchdog_ping(void); 28 | void watchdog_close(bool disarm); 29 | -------------------------------------------------------------------------------- /units/console-shell.service.m4.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Console Shell 10 | Documentation=man:sulogin(8) 11 | After=systemd-user-sessions.service plymouth-quit-wait.service 12 | m4_ifdef(`HAVE_SYSV_COMPAT', 13 | After=rc-local.service 14 | )m4_dnl 15 | Before=getty.target 16 | 17 | [Service] 18 | Environment=HOME=/root 19 | WorkingDirectory=/root 20 | ExecStart=-/sbin/sulogin 21 | ExecStopPost=-@SYSTEMCTL@ poweroff 22 | Type=idle 23 | StandardInput=tty-force 24 | StandardOutput=inherit 25 | StandardError=inherit 26 | KillMode=process 27 | IgnoreSIGPIPE=no 28 | 29 | # Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash 30 | # terminates cleanly. 31 | KillSignal=SIGHUP 32 | 33 | [Install] 34 | WantedBy=getty.target 35 | -------------------------------------------------------------------------------- /rules/60-persistent-serial.rules: -------------------------------------------------------------------------------- 1 | # do not edit this file, it will be overwritten on update 2 | 3 | ACTION=="remove", GOTO="persistent_serial_end" 4 | SUBSYSTEM!="tty", GOTO="persistent_serial_end" 5 | KERNEL!="ttyUSB[0-9]*|ttyACM[0-9]*", GOTO="persistent_serial_end" 6 | 7 | SUBSYSTEMS=="usb-serial", ENV{.ID_PORT}="$attr{port_number}" 8 | 9 | IMPORT{builtin}="path_id" 10 | ENV{ID_PATH}=="?*", ENV{.ID_PORT}=="", SYMLINK+="serial/by-path/$env{ID_PATH}" 11 | ENV{ID_PATH}=="?*", ENV{.ID_PORT}=="?*", SYMLINK+="serial/by-path/$env{ID_PATH}-port$env{.ID_PORT}" 12 | 13 | IMPORT{builtin}="usb_id" 14 | ENV{ID_SERIAL}=="", GOTO="persistent_serial_end" 15 | SUBSYSTEMS=="usb", ENV{ID_USB_INTERFACE_NUM}="$attr{bInterfaceNumber}" 16 | ENV{ID_USB_INTERFACE_NUM}=="", GOTO="persistent_serial_end" 17 | ENV{.ID_PORT}=="", SYMLINK+="serial/by-id/$env{ID_BUS}-$env{ID_SERIAL}-if$env{ID_USB_INTERFACE_NUM}" 18 | ENV{.ID_PORT}=="?*", SYMLINK+="serial/by-id/$env{ID_BUS}-$env{ID_SERIAL}-if$env{ID_USB_INTERFACE_NUM}-port$env{.ID_PORT}" 19 | 20 | LABEL="persistent_serial_end" 21 | -------------------------------------------------------------------------------- /src/core/dbus-manager.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | #pragma once 4 | 5 | /*** 6 | This file is part of systemd. 7 | 8 | Copyright 2010 Lennart Poettering 9 | 10 | systemd is free software; you can redistribute it and/or modify it 11 | under the terms of the GNU Lesser General Public License as published by 12 | the Free Software Foundation; either version 2.1 of the License, or 13 | (at your option) any later version. 14 | 15 | systemd is distributed in the hope that it will be useful, but 16 | WITHOUT ANY WARRANTY; without even the implied warranty of 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | Lesser General Public License for more details. 19 | 20 | You should have received a copy of the GNU Lesser General Public License 21 | along with systemd; If not, see . 22 | ***/ 23 | 24 | #include 25 | 26 | extern const DBusObjectPathVTable bus_manager_vtable; 27 | 28 | extern const char bus_manager_interface[]; 29 | -------------------------------------------------------------------------------- /src/shared/spawn-polkit-agent.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | #ifndef foospawnpolkitagenthfoo 4 | #define foospawnpolkitagenthfoo 5 | 6 | /*** 7 | This file is part of systemd. 8 | 9 | Copyright 2012 Lennart Poettering 10 | 11 | systemd is free software; you can redistribute it and/or modify it 12 | under the terms of the GNU Lesser General Public License as published by 13 | the Free Software Foundation; either version 2.1 of the License, or 14 | (at your option) any later version. 15 | 16 | systemd is distributed in the hope that it will be useful, but 17 | WITHOUT ANY WARRANTY; without even the implied warranty of 18 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 19 | Lesser General Public License for more details. 20 | 21 | You should have received a copy of the GNU Lesser General Public License 22 | along with systemd; If not, see . 23 | ***/ 24 | 25 | int polkit_agent_open(void); 26 | void polkit_agent_close(void); 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /src/shared/acl-util.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | #pragma once 4 | 5 | /*** 6 | This file is part of systemd. 7 | 8 | Copyright 2011 Lennart Poettering 9 | 10 | systemd is free software; you can redistribute it and/or modify it 11 | under the terms of the GNU Lesser General Public License as published by 12 | the Free Software Foundation; either version 2.1 of the License, or 13 | (at your option) any later version. 14 | 15 | systemd is distributed in the hope that it will be useful, but 16 | WITHOUT ANY WARRANTY; without even the implied warranty of 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | Lesser General Public License for more details. 19 | 20 | You should have received a copy of the GNU Lesser General Public License 21 | along with systemd; If not, see . 22 | ***/ 23 | 24 | #include 25 | 26 | int acl_find_uid(acl_t acl, uid_t uid, acl_entry_t *entry); 27 | int search_acl_groups(char*** dst, const char* path, bool* belong); 28 | -------------------------------------------------------------------------------- /units/systemd-sysctl.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Apply Kernel Variables 10 | Documentation=man:systemd-sysctl.service(8) man:sysctl.d(5) 11 | DefaultDependencies=no 12 | Conflicts=shutdown.target 13 | After=systemd-readahead-collect.service systemd-readahead-replay.service 14 | Before=sysinit.target shutdown.target 15 | ConditionPathIsReadWrite=/proc/sys/ 16 | ConditionPathExists=|/etc/sysctl.conf 17 | ConditionDirectoryNotEmpty=|/lib/sysctl.d 18 | ConditionDirectoryNotEmpty=|/usr/lib/sysctl.d 19 | ConditionDirectoryNotEmpty=|/usr/local/lib/sysctl.d 20 | ConditionDirectoryNotEmpty=|/etc/sysctl.d 21 | ConditionDirectoryNotEmpty=|/run/sysctl.d 22 | 23 | [Service] 24 | Type=oneshot 25 | RemainAfterExit=yes 26 | ExecStart=@rootlibexecdir@/systemd-sysctl 27 | -------------------------------------------------------------------------------- /src/journal/journald-console.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | #pragma once 4 | 5 | /*** 6 | This file is part of systemd. 7 | 8 | Copyright 2011 Lennart Poettering 9 | 10 | systemd is free software; you can redistribute it and/or modify it 11 | under the terms of the GNU Lesser General Public License as published by 12 | the Free Software Foundation; either version 2.1 of the License, or 13 | (at your option) any later version. 14 | 15 | systemd is distributed in the hope that it will be useful, but 16 | WITHOUT ANY WARRANTY; without even the implied warranty of 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | Lesser General Public License for more details. 19 | 20 | You should have received a copy of the GNU Lesser General Public License 21 | along with systemd; If not, see . 22 | ***/ 23 | 24 | #include "journald-server.h" 25 | 26 | void server_forward_console(Server *s, int priority, const char *identifier, const char *message, struct ucred *ucred); 27 | -------------------------------------------------------------------------------- /src/libsystemd-bus/bus-control.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | #pragma once 4 | 5 | /*** 6 | This file is part of systemd. 7 | 8 | Copyright 2013 Lennart Poettering 9 | 10 | systemd is free software; you can redistribute it and/or modify it 11 | under the terms of the GNU Lesser General Public License as published by 12 | the Free Software Foundation; either version 2.1 of the License, or 13 | (at your option) any later version. 14 | 15 | systemd is distributed in the hope that it will be useful, but 16 | WITHOUT ANY WARRANTY; without even the implied warranty of 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | Lesser General Public License for more details. 19 | 20 | You should have received a copy of the GNU Lesser General Public License 21 | along with systemd; If not, see . 22 | ***/ 23 | 24 | #include "sd-bus.h" 25 | 26 | int bus_add_match_internal(sd_bus *bus, const char *match); 27 | int bus_remove_match_internal(sd_bus *bus, const char *match); 28 | -------------------------------------------------------------------------------- /units/systemd-journald.service.in: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # systemd is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as published by 5 | # the Free Software Foundation; either version 2.1 of the License, or 6 | # (at your option) any later version. 7 | 8 | [Unit] 9 | Description=Journal Service 10 | Documentation=man:systemd-journald.service(8) man:journald.conf(5) 11 | DefaultDependencies=no 12 | Requires=systemd-journald.socket 13 | After=systemd-journald.socket syslog.socket 14 | Before=sysinit.target 15 | 16 | [Service] 17 | ExecStart=@rootlibexecdir@/systemd-journald 18 | Restart=always 19 | RestartSec=0 20 | NotifyAccess=all 21 | StandardOutput=null 22 | CapabilityBoundingSet=CAP_SYS_ADMIN CAP_DAC_OVERRIDE CAP_SYS_PTRACE CAP_SYSLOG CAP_AUDIT_CONTROL CAP_CHOWN CAP_DAC_READ_SEARCH CAP_FOWNER CAP_SETUID CAP_SETGID 23 | 24 | # Increase the default a bit in order to allow many simultaneous 25 | # services being run since we keep one fd open per service. 26 | LimitNOFILE=16384 27 | -------------------------------------------------------------------------------- /src/Makefile: -------------------------------------------------------------------------------- 1 | # This file is part of systemd. 2 | # 3 | # Copyright 2010 Lennart Poettering 4 | # 5 | # systemd is free software; you can redistribute it and/or modify it 6 | # under the terms of the GNU Lesser General Public License as published by 7 | # the Free Software Foundation; either version 2.1 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # systemd is distributed in the hope that it will be useful, but 11 | # WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | # Lesser General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU Lesser General Public License 16 | # along with systemd; If not, see . 17 | 18 | # This file is a dirty trick to simplify compilation from within 19 | # emacs. This file is not intended to be distributed. So, don't touch 20 | # it, even better ignore it! 21 | 22 | all: 23 | $(MAKE) -C .. 24 | 25 | clean: 26 | $(MAKE) -C .. clean 27 | 28 | .PHONY: all clean 29 | -------------------------------------------------------------------------------- /src/core/ima-setup.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | #pragma once 4 | 5 | /*** 6 | This file is part of systemd. 7 | 8 | Copyright 2010 Lennart Poettering 9 | Copyright (C) 2012 Roberto Sassu - Politecnico di Torino, Italy 10 | TORSEC group -- http://security.polito.it 11 | 12 | systemd is free software; you can redistribute it and/or modify it 13 | under the terms of the GNU Lesser General Public License as published by 14 | the Free Software Foundation; either version 2.1 of the License, or 15 | (at your option) any later version. 16 | 17 | systemd is distributed in the hope that it will be useful, but 18 | WITHOUT ANY WARRANTY; without even the implied warranty of 19 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 20 | Lesser General Public License for more details. 21 | 22 | You should have received a copy of the GNU Lesser General Public License 23 | along with systemd; If not, see . 24 | ***/ 25 | 26 | int ima_setup(void); 27 | -------------------------------------------------------------------------------- /src/core/load-dropin.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | #pragma once 4 | 5 | /*** 6 | This file is part of systemd. 7 | 8 | Copyright 2010 Lennart Poettering 9 | 10 | systemd is free software; you can redistribute it and/or modify it 11 | under the terms of the GNU Lesser General Public License as published by 12 | the Free Software Foundation; either version 2.1 of the License, or 13 | (at your option) any later version. 14 | 15 | systemd is distributed in the hope that it will be useful, but 16 | WITHOUT ANY WARRANTY; without even the implied warranty of 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | Lesser General Public License for more details. 19 | 20 | You should have received a copy of the GNU Lesser General Public License 21 | along with systemd; If not, see . 22 | ***/ 23 | 24 | #include "unit.h" 25 | 26 | /* Read service data supplementary drop-in directories */ 27 | 28 | char **unit_find_dropin_paths(Unit *u); 29 | int unit_load_dropin(Unit *u); 30 | -------------------------------------------------------------------------------- /src/core/umount.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | #pragma once 4 | 5 | /*** 6 | This file is part of systemd. 7 | 8 | Copyright 2010 ProFUSION embedded systems 9 | 10 | systemd is free software; you can redistribute it and/or modify it 11 | under the terms of the GNU Lesser General Public License as published by 12 | the Free Software Foundation; either version 2.1 of the License, or 13 | (at your option) any later version. 14 | 15 | systemd is distributed in the hope that it will be useful, but 16 | WITHOUT ANY WARRANTY; without even the implied warranty of 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | Lesser General Public License for more details. 19 | 20 | You should have received a copy of the GNU Lesser General Public License 21 | along with systemd; If not, see . 22 | ***/ 23 | 24 | int umount_all(bool *changed); 25 | 26 | int swapoff_all(bool *changed); 27 | 28 | int loopback_detach_all(bool *changed); 29 | 30 | int dm_detach_all(bool *changed); 31 | -------------------------------------------------------------------------------- /src/locale/org.freedesktop.locale1.conf: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /src/journal/journal-vacuum.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | #pragma once 4 | 5 | /*** 6 | This file is part of systemd. 7 | 8 | Copyright 2011 Lennart Poettering 9 | 10 | systemd is free software; you can redistribute it and/or modify it 11 | under the terms of the GNU Lesser General Public License as published by 12 | the Free Software Foundation; either version 2.1 of the License, or 13 | (at your option) any later version. 14 | 15 | systemd is distributed in the hope that it will be useful, but 16 | WITHOUT ANY WARRANTY; without even the implied warranty of 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | Lesser General Public License for more details. 19 | 20 | You should have received a copy of the GNU Lesser General Public License 21 | along with systemd; If not, see . 22 | ***/ 23 | 24 | #include 25 | 26 | int journal_directory_vacuum(const char *directory, uint64_t max_use, uint64_t min_free, usec_t max_retention_usec, usec_t *oldest_usec); 27 | -------------------------------------------------------------------------------- /src/hostname/org.freedesktop.hostname1.conf: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /src/timedate/org.freedesktop.timedate1.conf: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /LICENSE.MIT: -------------------------------------------------------------------------------- 1 | Permission is hereby granted, free of charge, to any person 2 | obtaining a copy of this software and associated documentation files 3 | (the "Software"), to deal in the Software without restriction, 4 | including without limitation the rights to use, copy, modify, merge, 5 | publish, distribute, sublicense, and/or sell copies of the Software, 6 | and to permit persons to whom the Software is furnished to do so, 7 | subject to the following conditions: 8 | 9 | The above copyright notice and this permission notice shall be 10 | included in all copies or substantial portions of the Software. 11 | 12 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 13 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 14 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 15 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 16 | BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 17 | ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 18 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 19 | SOFTWARE. 20 | -------------------------------------------------------------------------------- /src/core/unit-printf.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | #pragma once 4 | 5 | /*** 6 | This file is part of systemd. 7 | 8 | Copyright 2010 Lennart Poettering 9 | 10 | systemd is free software; you can redistribute it and/or modify it 11 | under the terms of the GNU Lesser General Public License as published by 12 | the Free Software Foundation; either version 2.1 of the License, or 13 | (at your option) any later version. 14 | 15 | systemd is distributed in the hope that it will be useful, but 16 | WITHOUT ANY WARRANTY; without even the implied warranty of 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | Lesser General Public License for more details. 19 | 20 | You should have received a copy of the GNU Lesser General Public License 21 | along with systemd; If not, see . 22 | ***/ 23 | 24 | #include "unit.h" 25 | 26 | char *unit_name_printf(Unit *u, const char* text); 27 | char *unit_full_printf(Unit *u, const char *text); 28 | char **unit_full_printf_strv(Unit *u, char **l); 29 | -------------------------------------------------------------------------------- /src/journal/journal-verify.h: -------------------------------------------------------------------------------- 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ 2 | 3 | #pragma once 4 | 5 | /*** 6 | This file is part of systemd. 7 | 8 | Copyright 2011 Lennart Poettering 9 | 10 | systemd is free software; you can redistribute it and/or modify it 11 | under the terms of the GNU Lesser General Public License as published by 12 | the Free Software Foundation; either version 2.1 of the License, or 13 | (at your option) any later version. 14 | 15 | systemd is distributed in the hope that it will be useful, but 16 | WITHOUT ANY WARRANTY; without even the implied warranty of 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | Lesser General Public License for more details. 19 | 20 | You should have received a copy of the GNU Lesser General Public License 21 | along with systemd; If not, see . 22 | ***/ 23 | 24 | #include "journal-file.h" 25 | 26 | int journal_file_verify(JournalFile *f, const char *key, usec_t *first_contained, usec_t *last_validated, usec_t *last_contained, bool show_progress); 27 | --------------------------------------------------------------------------------