1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-06 16:59:03 +03:00
Commit Graph

285 Commits

Author SHA1 Message Date
Kay Sievers
45cf971672 units: move ctrl-alt-delete, default getty targets from /etc to /lib 2010-09-22 12:49:17 +02:00
Kay Sievers
6ebf598c40 units: hwclock support for non-UTC must not be in the default 2010-09-22 12:00:07 +02:00
Kay Sievers
65ae3821ff units: enable var-run + var-lock service by default 2010-09-21 21:43:40 +02:00
Kay Sievers
f9ccc72499 units: enable sysctl by default 2010-09-21 21:38:21 +02:00
Kay Sievers
7376cffd56 units: enable hwclock by default 2010-09-21 21:33:24 +02:00
Kay Sievers
d3f09cf396 units: always enable random-seed, module-load, vconsole 2010-09-21 21:25:44 +02:00
Kay Sievers
b15124f166 tmpwatch: install the unit files 2010-09-21 15:07:43 +02:00
Lennart Poettering
f0a73e245c units: add default tmpwatch units 2010-09-21 03:38:32 +02:00
Gustavo Sverzut Barbieri
9841e8e3d3 gentoo: vconsole-setup support.
This patch is a bit bigger than expected since Gentoo being
non-standard in some places.

 1. it is installing binaries at /usr/bin instead of /bin.

 2. it is using CamelCase names for consolefonts.

 3. /etc/rc.conf:unicode=(yes|no) just forbids loadkeys and setfont
    "-u" options, but do not disable the actual kernel default_utf8
    from vt module.
2010-09-21 00:43:16 +02:00
Lennart Poettering
efb3237ee6 ask-password: popup notification when we ask for a password 2010-09-17 02:32:48 +02:00
Lennart Poettering
490aed5849 ask-password: add minimal framework to allow services query SSL/harddisk passphrases from the user 2010-09-17 01:26:29 +02:00
Lennart Poettering
72bca11ba2 locale: initialize locale from /etc/locale by default 2010-09-16 01:57:42 +02:00
Lennart Poettering
97c4a07df9 vconsole: add new utility to initialize the virtual console 2010-09-16 00:36:41 +02:00
Lennart Poettering
a2ff477f67 units: add generic description for http-daemon.target 2010-09-14 00:22:47 +02:00
Michael Biebl
e082d6c8d8 units: On Debian Runlevel 2, 3, 4 and 5 are multi-user
Patch by Tollef Fog Heen <tfheen@err.no>
Extended to re-create the runlevel5.target symlink by Michael Biebl <biebl@debian.org>
2010-09-08 02:14:58 +02:00
Michael Biebl
a5dc0a45fe units: add umount unit files for Debian
Add unit files to call

/etc/init.d/umountnfs.sh stop (network file systems)
/etc/init.d/umountfs stop     (local file systems)
/etc/init.d/umountroot stop   ("/" file system)

in the right order and hook them up in the umount.target so they are run
on shutdown and reboot.
2010-09-08 02:12:38 +02:00
Michael Biebl
f10814d9e0 units: Provide separate fsck.target for Debian
On Debian sysinit is not a single script but a separate runlevel.
Split of fsck.target into separate unit file as otherwise we get an
unbreakable cycle on shutdown/reboot.
2010-09-06 03:12:44 +02:00
Michael Biebl
ad206afcb9 units: Add halt, killall, poweroff and reboot unit files for Debian 2010-09-06 03:12:28 +02:00
Lennart Poettering
53eff0c762 build-sys: fix fedpkg git path 2010-09-03 05:39:22 +02:00
Lennart Poettering
b2bb3dbed9 console: rework automatic getty on kernel console logic again
It is essential that the gettys are proper dependencies from
getty.target so that they aren't killed and immediately restarted on
runlevel changes. Hence rework the logic to implicitly add console
gettys to getty.target as dependencies.

This also adds an automatic hvc console for virtualizers.

https://bugzilla.redhat.com/show_bug.cgi?id=501720
2010-08-30 23:03:58 +02:00
Lennart Poettering
77d5f105bf cgroup: mount cgroup file systems to /sys/fs/cgroup instead of /cgroup
This requires the /sys/fs/cgroup to exist. Current git kernels have
this, released kernels need a backport of a single patch.
2010-08-25 04:58:24 +02:00
Lennart Poettering
93a45c562a serial: use seperate getty template for serial ttys 2010-08-25 03:09:57 +02:00
Lennart Poettering
addab137cd syslog: add minimal syslog/kmsg bridge syslogd 2010-08-21 03:57:47 +02:00
Lennart Poettering
90685f7d12 units: add service file that remounts the root file system 2010-08-20 03:27:23 +02:00
Lennart Poettering
449ddb2d23 remount: add tool that applies /etc/fstab mount options to all api mounts 2010-08-20 03:26:15 +02:00
Lennart Poettering
d06dacd002 service/systemctl: don't consider LSB exit codes 5 and 6 as failure, and decode exit codes in systemctl 2010-08-20 02:31:54 +02:00
Lennart Poettering
e59077036b hostname: on all distros make the name configured in /etc/hostname take precedence over distro-specific configuration
In order to unify configuration across distributions we pick the
simple-most option by default (Debian's /etc/hostname) and then fall
back to distro-specific hacks if that doesn't exist.
2010-08-19 03:02:22 +02:00
Lennart Poettering
b2423f1f43 modules-load: add systemd-modules-load tool that can load a configured list of modules in /etc/modules.d/ on boot, replacing distro-dependent shell hacks for this 2010-08-19 02:03:17 +02:00
Lennart Poettering
5481ab2b38 units: add hwclock-load service 2010-08-18 02:24:31 +02:00
Lennart Poettering
f556ea46f6 units: add generic sysctl/hwclock-save service 2010-08-17 22:14:58 +02:00
Kay Sievers
b54dd8b7f4 units: add tmp.mount 2010-08-17 19:43:44 +02:00
Lennart Poettering
1cba2c90e8 modprobe: kill support for nomodules
this should happen in the kernel itself, not be controlled from
userspace, if at all. So let's kill this here.
2010-08-17 18:13:47 +02:00
Kay Sievers
3c268bdf8a units: add var-run.service var-lock.service 2010-08-17 10:17:42 +02:00
Lennart Poettering
5192bd1945 auto-getty: rework auto console getty logic to work in conjunction with single user mode 2010-08-17 03:29:46 +02:00
Lennart Poettering
9be9828c00 systemctl: warn in intervals before going down when delayed shutdown is used 2010-08-16 19:26:27 +02:00
Lennart Poettering
a145090c82 shutdownd: enable by default 2010-08-16 15:41:12 +02:00
Lennart Poettering
f614480831 systemctl: add support for delayed shutdown, similar to sysv in style 2010-08-16 15:37:52 +02:00
Lennart Poettering
ca2cab5dcd random-seed: add little tool for saving/loading random seed on shutdown/boot, but don't enable it by default 2010-08-14 19:17:37 +02:00
Lennart Poettering
3cc144eba3 units: move plymouth services from /etc to /lib since fedora does not support plymouth-less boots 2010-08-13 19:14:12 +02:00
Lennart Poettering
c88f64bd1a units: move runlevel[2-5] links to /lib because they are legacy and hence should not be as obviously in sight. The user may still override them by placing links in /etc 2010-08-13 19:13:25 +02:00
Lennart Poettering
0278dfeb30 unit: create three seperate plymouth service for halt/poweroff/reboot 2010-08-13 02:19:24 +02:00
Lennart Poettering
302e27c89e main: log build time features on startup 2010-08-12 01:03:24 +02:00
Lennart Poettering
e51bc1a23e selinux: split off selinux calls into seperate file label.c 2010-08-11 22:58:34 +02:00
Lennart Poettering
cd6d0a456b utmp: enable systemd-update-utmp by default 2010-08-11 04:38:55 +02:00
Lennart Poettering
4927fcae48 audit,utmp: implement audit logic and rip utmp stuff out of the main daemon and into a helper binary 2010-08-11 01:44:38 +02:00
Lennart Poettering
1310609b05 unit: hook plymouth into the boot
https://bugzilla.redhat.com/show_bug.cgi?id=619922
2010-08-10 03:44:05 +02:00
Lennart Poettering
3c661fadd5 cgroup: if the system bus cannot be found, send cgroup empty msg directly to init proces 2010-08-06 03:21:50 +02:00
Lennart Poettering
922cc00119 units: split fsck.target from sysinit.target for suse compat 2010-08-06 01:30:20 +02:00
Lennart Poettering
ee5762e378 systemctl: fold systemd-install into systemctl 2010-07-24 00:53:33 +02:00
Daniel J Walsh
7a58bfa4ae socket: SELinux support for socket creation.
It seems to work on my machine.

/proc/1/fd/20	system_u:system_r:system_dbusd_t:s0

/proc/1/fd/21	system_u:system_r:avahi_t:s0

And the AVC's seem to have dissapeared when a confined app trys to
connect to dbus or avahi.

If you run with this patch and selinux-policy-3.8.8-3.fc14.noarch
You should be able to boot in enforcing mode.
2010-07-23 05:12:13 +02:00
Lennart Poettering
c24eb49e6a exec: extend variable substitution to support splitting variable values into seperate arguments 2010-07-21 02:57:35 +02:00
Lennart Poettering
ceda54d93c units: wire smartcard.target into Makefile 2010-07-16 21:38:56 +02:00
Lennart Poettering
d04247cf25 cgls: rename source file to cgls.c, since we have no prefix for any of the other files either 2010-07-14 15:09:27 +02:00
Lennart Poettering
da78e1b444 units: introduce bluetooth.target/printer.target which are activated if the right hardware is plugged in 2010-07-13 02:16:44 +02:00
Lennart Poettering
f057408c9c units: introduce emergency.target 2010-07-12 23:49:20 +02:00
Lennart Poettering
35d2e7ec19 cgroup: reimplement the last bit of libcgroup functionality natively 2010-07-12 18:16:44 +02:00
Lennart Poettering
c6c18be35b cgroup: kill processes, not tasks and other cgroup changes 2010-07-11 00:50:49 +02:00
Lennart Poettering
4e67ddd6b3 units: introduce umount.target for unmounting all file systems 2010-07-10 02:41:06 +02:00
Lennart Poettering
83bda35801 build-sys: drop special name hack for dbus.service since a native service file is now shipped upstream dbus 2010-07-10 00:22:38 +02:00
Lennart Poettering
a45f61d76c build-sys: add make upload target 2010-07-09 05:06:11 +02:00
Lennart Poettering
4627d39661 build-sys: set SYSTEMD_SKIP_API_MOUNTS=1 when generating introspection files 2010-07-09 00:13:18 +02:00
Lennart Poettering
b4f10a5e89 install: various improvements
Rename --start to --realize, to make things less confusing when doing
"systemctl stop --realize foo.service".

Introduce --realize=reload.

Don't talk to systemd when run within a chroot, or when systemd isn't
running.
2010-07-08 21:39:01 +02:00
Lennart Poettering
fa776d8e96 cgls: beef up control group dumping and introduce cgls tool 2010-07-08 21:01:42 +02:00
Lennart Poettering
ab35fb1bc6 systemctl: filter and sort member pid of cgroup 2010-07-08 06:08:32 +02:00
Lennart Poettering
83698d60db units: properly create prefdm symlink 2010-07-08 05:29:09 +02:00
Lennart Poettering
398ef8ba02 dbus: make errors reported via D-Bus more useful 2010-07-08 02:43:18 +02:00
Lennart Poettering
a822056bca initctl: check peer credentials after connection 2010-07-07 04:13:19 +02:00
Lennart Poettering
f3e219a238 update man pages for recent changes 2010-07-07 01:38:56 +02:00
Lennart Poettering
487393e9f1 main: implement manager configuration file 2010-07-07 01:10:27 +02:00
Lennart Poettering
fa0f4d8a3a main: add a native implementation of the 'nomodules' kernel option understood by fedora init scripts 2010-07-06 20:34:28 +02:00
Kay Sievers
9335c44faa build-sys: fix EXTRA_DIST 2010-07-06 15:50:42 +02:00
Lennart Poettering
9a1ac7b9ae install: implement --start option 2010-07-06 05:06:40 +02:00
Lennart Poettering
af65a09126 units: update shipped unit files for DefaultDependencies= 2010-07-03 19:53:37 +02:00
Lennart Poettering
dd1eb43ba7 man: document execution context related settings 2010-07-02 23:24:38 +02:00
Lennart Poettering
b2c20dd958 man: document snapshot units 2010-07-02 03:51:29 +02:00
Lennart Poettering
eec575d8eb man: document device units 2010-07-02 03:28:33 +02:00
Lennart Poettering
da49e9ab4c man: document target units 2010-07-02 02:55:34 +02:00
Lennart Poettering
b36b082c8a man: document path units 2010-07-02 02:38:30 +02:00
Lennart Poettering
11fcc3ab1b man: document timer units 2010-07-02 02:14:13 +02:00
Lennart Poettering
e0cabd4bb5 man: document swap units 2010-07-02 01:33:54 +02:00
Lennart Poettering
65232ea79d man: document automount units 2010-07-02 01:17:55 +02:00
Lennart Poettering
cdb788e4cd man: document mount units 2010-07-02 00:29:15 +02:00
Lennart Poettering
1f812feafb man: document socket units 2010-07-01 23:49:50 +02:00
Lennart Poettering
c5abba0887 man: document systemd-notify 2010-06-24 05:17:02 +02:00
Lennart Poettering
6f6083dc73 man: rework man page generation in makefile 2010-06-24 04:22:22 +02:00
Lennart Poettering
7874bcd602 man: extend manual page documentation 2010-06-24 03:09:36 +02:00
Lennart Poettering
160cd5c9aa man: add more man pages 2010-06-24 00:11:04 +02:00
Lennart Poettering
c6365917c4 man: generate ANSI prototypes in HTML man pages 2010-06-23 02:26:15 +02:00
Lennart Poettering
359957ee23 man: document runlevel and systemd-install 2010-06-23 01:49:57 +02:00
Lennart Poettering
f9378423b9 man: document sd-daemon.[ch] 2010-06-23 00:31:54 +02:00
Lennart Poettering
a3723b97ef build-sys: fix directory creation of a few dirs 2010-06-22 05:43:07 +02:00
Lennart Poettering
795750caa1 build-sys: install more docs 2010-06-22 05:39:35 +02:00
Lennart Poettering
64aba792f7 man: add initial version of daemon(7) 2010-06-22 02:42:10 +02:00
Lennart Poettering
64ca679e69 build-sys: fix make distcheck 2010-06-22 00:05:37 +02:00
Lennart Poettering
8c6db83365 pam: implement systemd PAM module and generelize cgroup API for that a bit 2010-06-21 23:27:18 +02:00
Lennart Poettering
2cb1a60d14 init: call telinit in case we are run as init and not pid1 2010-06-18 20:01:01 +02:00
Lennart Poettering
514f4ef52f systemctl: add verbs for special units 2010-06-18 04:22:59 +02:00
Lennart Poettering
139be57d94 build-sys: speed up build via convenience library 2010-06-18 00:44:57 +02:00
Pavol Rusnak
634826b51b fix --nonet calls to xsltproc
Also, fix spelling of openSUSE
2010-06-17 23:43:51 +02:00
Lennart Poettering
240a3a85bd doc: install sd-daemon.[ch] as docs 2010-06-17 23:33:21 +02:00
Lennart Poettering
e4b613402d systemctl: provide compatibility implementations for various sysv utilities 2010-06-17 22:57:28 +02:00
Lennart Poettering
4a2a8b5a82 notify: add systemd-notify command line tool 2010-06-17 22:50:06 +02:00
Tom Gundersen
1ebdf2d879 units: make Arch boot
This patch gives minimal Arch support (enough to boot).

We still need to parse the services to start from /etc/rc.conf before systemd can be a drop-in replacement on Arch.
2010-06-16 23:13:10 +02:00
Lennart Poettering
5b6319dcee service: optionally call into PAM when dropping priviliges 2010-06-16 21:54:17 +02:00
Lennart Poettering
0213c3f810 socket: add optional libwrap support 2010-06-16 15:41:29 +02:00
Lennart Poettering
8c47c7325f notify: add minimal readiness/status protocol for spawned daemons 2010-06-16 05:10:31 +02:00
Lennart Poettering
10e87ee7f6 install: add systemd-install tool for managing alias/wants symlinks 2010-06-16 01:58:50 +02:00
Lennart Poettering
84e3543ef4 manager: split off path lookup logic into own .c file 2010-06-15 14:45:15 +02:00
Lennart Poettering
7e4249b94e systemctl: reimplement systemctl in pure C without Vala/GObject 2010-06-15 02:51:55 +02:00
Lennart Poettering
d2d12cd1bf build-sys: make make distcheck work again 2010-06-07 19:40:25 +02:00
Lennart Poettering
d122948d6f dbus: install bus activation file 2010-06-07 04:14:39 +02:00
Lennart Poettering
f92a18f527 units: introduce and explain sysinit.target 2010-06-04 18:43:40 +02:00
Lennart Poettering
e1d680ad55 tests: build the right tests 2010-06-03 03:01:12 +02:00
Lennart Poettering
1136a371e2 untis: fix path to helper services 2010-06-02 15:52:14 +02:00
Kay Sievers
65b0095b1c units: add SUSE service files 2010-06-02 00:53:39 +02:00
Lennart Poettering
134dc482d2 build-sys: add missing backslash 2010-06-02 00:42:36 +02:00
Lennart Poettering
f401faf540 build-sys: move systemd from /sbin to /bin since it should be used by normal users too, for session handling 2010-06-02 00:40:10 +02:00
Lennart Poettering
8c4a3079a7 build-sys: install stuff intended for / into ${rootdir} which is configurable with --with-rootdir= 2010-06-02 00:35:58 +02:00
Lennart Poettering
5c546cb75e units: drop fuse fs from automount, since this is now done by udev internally 2010-06-01 19:50:35 +02:00
Marc-Antoine Perennou
f306f4c40d units: fix Gentoo services 2010-05-24 23:18:37 +02:00
Lennart Poettering
a1b256b0b5 unit: introduce exit.service for exiting from session instances 2010-05-24 22:32:44 +02:00
Lennart Poettering
683f468c54 unit: ship a mail-transfer-agent.target unit by default 2010-05-24 22:30:54 +02:00
Lennart Poettering
1e287fe32f unit: turn display-manager.target into a service 2010-05-24 22:29:59 +02:00
Lennart Poettering
01f78473b1 path: add .path unit type for monitoring files 2010-05-24 05:25:33 +02:00
Lennart Poettering
871d7de47c timer: fully implement timer units 2010-05-24 01:45:54 +02:00
Lennart Poettering
4288f61921 dbus: automatically generate and install introspection files 2010-05-23 03:45:33 +02:00
Lennart Poettering
6d526de267 unit: add automount units for a number of API filesystems 2010-05-23 01:56:54 +02:00
Lennart Poettering
11c3a4eeb7 kmod: automatically load a few kernel modules we need for normal operation before udev is active 2010-05-22 00:29:53 +02:00
Marc-Antoine Perennou
ea2d9ed42d units: add services for Gentoo 2010-05-20 17:56:16 +02:00
Lennart Poettering
0d26c91071 unit: ship default.service for sessions by default 2010-05-20 02:30:49 +02:00
Lennart Poettering
1afaf57346 fedora: we must call the halt script with a symlink of reboot for rebooting 2010-05-20 02:05:28 +02:00
Lennart Poettering
8848109267 units: don't install var-run.mount anymore for the moment 2010-05-19 04:37:21 +02:00
Lennart Poettering
670802d4b1 units: replace a few non-essential API mounts with automount units 2010-05-18 03:10:17 +02:00
Lennart Poettering
42e39f0b32 build-sys: remove vala generated sources only when valac is around 2010-05-18 00:28:39 +02:00
Lennart Poettering
53f7d807bf cgroup: don't require debug cgroup controller anymore, use name hierarchy instead 2010-05-17 23:54:44 +02:00
Lennart Poettering
e82e442bfa build-sys: don't fail if we cannot create /cgroup/debug 2010-05-17 23:29:24 +02:00
Lennart Poettering
c3bd732210 build-sys: enable xsltproc rules only if we have xsltproc 2010-05-17 23:29:10 +02:00
Lennart Poettering
2a3d629467 build-sys: simplify sed rules 2010-05-17 23:28:54 +02:00
Lennart Poettering
a00e487927 build-sys: fix make distcheck 2010-05-17 23:02:28 +02:00
Lennart Poettering
9f2c5942e1 man: replace syslog name in man page by configured name 2010-05-17 22:45:52 +02:00
Lennart Poettering
bb009d81b0 build-sys: make xsltproc/sed invocations silent 2010-05-17 19:53:16 +02:00
Lennart Poettering
12e84679cc build-sys: set M4_DISTRO_FLAG from the configure script 2010-05-17 19:52:57 +02:00
Lennart Poettering
705dbf3aa3 units: make sure to ship units/remote-fs.target.m4 in tarball 2010-05-17 19:42:57 +02:00
Lennart Poettering
fb1bd35a5d unit: properly generate session units 2010-05-17 02:17:22 +02:00
Lennart Poettering
eb10a76494 docs: add terse distribution porting guide 2010-05-17 01:40:02 +02:00
Lennart Poettering
5e6afdd3d3 units: add distribution-specific units 2010-05-17 01:39:58 +02:00
Lennart Poettering
f0b02ca2af units: add rpcbind.target special 2010-05-16 22:50:02 +02:00
Lennart Poettering
9f23530860 man: document a few special units 2010-05-16 22:45:11 +02:00
Lennart Poettering
a7b6f8e578 units: automatically generated syslog.target 2010-05-16 21:15:46 +02:00
Lennart Poettering
70449379de units: move a number of units into the tarball 2010-05-16 20:49:41 +02:00