Commit graph

157 commits

Author SHA1 Message Date
Lennart Poettering 8d0e38a2b9 dbus: introduce UnsetAndSetEnvironment() 2011-06-21 19:29:45 +02:00
Lennart Poettering ab5c3e3ff1 english: s/_per_/_by_/ 2011-06-21 19:29:44 +02:00
Lennart Poettering 6ea832a207 exec: hangup/reset/deallocate VTs in gettys
Explicitly disconnect all clients from a VT when a getty starts/finishes
(requires TIOCVHANGUP, available in 2.6.29).

Explicitly deallocate getty VTs in order to flush scrollback buffer.

Explicitly reset terminals to a defined state before spawning getty.
2011-05-18 01:07:36 +02:00
Koen Kooi 1bd8b8184e build-sys: Angstrom support
This commit consists of the initial work to include Angstrom as a ported
distribution for systemd.

Angstrom tries to follow the debian way as much as possible, but deviates
where it doesn't make sense for 'embedded'.
2011-05-09 23:50:23 +02:00
Lennart Poettering 6dfa54942c service: properly notice when services with a main process that isn't a child of init die
https://bugzilla.redhat.com/show_bug.cgi?id=699114
2011-04-28 04:56:55 +02:00
Lennart Poettering 38c52d4606 cgroup: don't accidentaly trim on reload
https://bugzilla.redhat.com/show_bug.cgi?id=678555
2011-04-20 03:53:12 +02:00
Lennart Poettering 4466194c43 units: rename rtc-set.target to time-sync.target and pull it in by hwclock-load.service
On request of Miroslav Lichvar, rename rtc-set.target to
time-sync.target since usually the RTC chip isn't involved at all in NTP
syncs.

Also, pull it in by hwclock-load.service.
2011-04-06 19:18:17 +02:00
Lennart Poettering 9c1b183c70 service: fix units with more than one socket
https://bugzilla.redhat.com/show_bug.cgi?id=693289
2011-04-06 02:25:39 +02:00
Lennart Poettering da19d5c19f src: our lord is coverity 2011-03-31 15:35:40 +02:00
Lennart Poettering ea87ca5a9e unit: never apply /etc/rcN.d/ priority to native services 2011-03-30 00:43:16 +02:00
Lennart Poettering cd25cce98f exec: drop process group kill mode since it has little use and confuses the user 2011-03-29 23:31:38 +02:00
Lennart Poettering 9700edb4e8 service: pull in sysv facility targets from the sysv units, not the other way round
For an explanation see:

http://lists.freedesktop.org/archives/systemd-devel/2011-March/001692.html
2011-03-18 05:26:25 +01:00
Lennart Poettering 177b3ffedb special: get rid of dbus.target 2011-03-18 04:53:12 +01:00
Lennart Poettering f6a6225e41 def: centralize definition of default timeout in one place 2011-03-17 04:02:35 +01:00
Lennart Poettering 91b22f21f3 core: move abstract namespace sockets to /dev/.run
Now that we have /dev/.run there's no need to use abstract namespace
sockets. So, let's move things to /dev/.run, to make things more easily
discoverable and improve compat with chroot() and fs namespacing.
2011-03-14 03:12:25 +01:00
Andrey Borzenkov 1de4d79bf5 build-sys: add Mandriva distribution support
This merges several separate patches that I carry as part of
Mandriva systemd RPM. They touch those parts that are very
unlikely to be changed in near future and do not impose any
functionality change for systemd core. I also think it is
useful for troubleshooting to have real distribution name in
system logs, espicially when someone reports problem upstream.

The patch looks bigger than sum of replaced patches because

- previous patches were applied on top of distro=fedora, now
I need to add all those bits for distro=mandriva as well

- part of patch was done as spec file magic, but it seems more
logical to ship all these bits together
2011-03-08 19:47:36 +01:00
Lennart Poettering e527618da5 service: use uppercase SYSV prefix to make it easier to recognize 2011-03-08 18:51:20 +01:00
Lennart Poettering 85211309f0 service: prefix description with LSB only if script has LSB header, use 'SysV:' otherwise 2011-03-08 18:41:23 +01:00
Lennart Poettering b4353094e5 service: drop redundant check in sysv_translate_facility
We check for _r with an assert in the function header anyway, no need to
check it again.
2011-03-06 23:28:39 +01:00
Lennart Poettering 430c18ed7f kill: always send SIGCONT after SIGTERM
When we kill a process to terminate it make sure to send SIGCONT to
ensure it is unpaused and processes the signal.
2011-03-03 23:55:30 +01:00
Harald Hoyer 35b8ca3aaf Spelling Corrections
Just some lame spelling corrections with no functionality.
2011-02-28 22:47:38 +01:00
Lennart Poettering 6d55002a69 service: never clean up a service that still has a process in it 2011-02-25 01:49:10 +01:00
Lennart Poettering 0a494f1ff3 exec: introduce global defaults for the standard output of services 2011-02-15 11:52:29 +01:00
Lennart Poettering 3185a36b05 service: make main pid guessing optional, and reread pid file after reloads 2011-02-13 18:51:30 +01:00
Lennart Poettering 867b3b7d6b service: make chain of main commands and control commands independent of each other, so that both can be executed simultaneously and independently 2011-01-20 18:46:38 +01:00
Lennart Poettering c06b7a15ea service: don't allow reload operations for oneshot services
During starting of oneshot we are in START state which we don't want to
combine with the RELOAD state, hence we disallow both at the same time.
2011-01-20 18:44:09 +01:00
Lennart Poettering 9a57c62944 systemctl: highlight failed processes in systemctl status 2011-01-20 18:22:03 +01:00
Lennart Poettering e2f3b44cfc service: when reloading a service fails don't fail the entire service but just the reload job 2011-01-20 13:17:22 +01:00
Lennart Poettering d8cfa08589 service: if a reload operation fails, don't shut down the service 2011-01-18 22:57:46 +01:00
Lennart Poettering ba035df230 execute: make sending of SIGKILL on shutdown optional 2011-01-18 22:55:54 +01:00
Tom Gundersen 521e05c7ce arch: remove support for legacy daemons
This is now done by a generator, shipped downstream.
2011-01-17 22:41:19 +01:00
Lennart Poettering e83c7c0ba4 service: don't hit an assert if information in LSB headers is incorrectly formatted
https://bugzilla.redhat.com/show_bug.cgi?id=667665
2011-01-07 00:49:35 +01:00
Michael Biebl 5b8191986c service: ifdef (more) distro-specific compat logic
This should make it easier to get rid of that compat code later and
avoids problems like stripping of rc. from /etc/init.d/rc.local on
Debian.
2010-12-27 18:44:42 +01:00
Kay Sievers e1992852c8 service: ifdef distro-specific compat logic 2010-12-16 14:29:34 +01:00
Miklos Vajna 65530632c7 service: drop rc. prefix on frugalware linux 2010-12-16 14:22:21 +01:00
Kay Sievers 0b603b4e76 suse: add 'smtp' LSB facility 2010-12-09 18:50:30 +01:00
Miklos Vajna f5c88ec133 build-sys: frugalware linux support 2010-11-29 17:07:41 +01:00
Lennart Poettering d686d8a97b cgroup: by default, duplicate service cgroup in the cpu hierarchy 2010-11-17 21:27:53 +01:00
Lennart Poettering e3aa71c38c exec: automatically determine right TERM= setting based on tty name 2010-11-15 23:49:02 +01:00
Lennart Poettering af2d49f70b drop support for MANAGER_SESSION, introduce MANAGER_USER instead 2010-11-15 22:13:26 +01:00
Lennart Poettering 2edfa36685 service: delay automatic restart if job is pending 2010-11-10 22:38:43 +01:00
Lennart Poettering ead8e4788e unit: get rid of gnoreDependencyFailure= instead treat ConflictedBy= as weaker counterpart of Conflicts=, similar to Wants= vs. Requires= 2010-10-29 16:28:27 +02:00
Lennart Poettering 799fd0fd23 service: unify tstamp serialization code 2010-10-28 03:16:03 +02:00
Lennart Poettering 4fbf50b38e service: when after startup only one process is in a service's cgroup, assume it is the main process 2010-10-27 03:16:49 +02:00
Mike Kazantsev 0320828cac service: fix sysv-less build 2010-10-26 15:18:13 +02:00
Lennart Poettering 9865f3b4ca service: make sure to pass TERM=linux to all sysv scripts 2010-10-26 02:32:42 +02:00
Andrew Edmunds 858dae181b ubuntu: Treat Ubuntu as a distinct distro in configure.ac etc
Previously Ubuntu was treated as being equivalent to Debian, but the two
distributions require different behaviour in certain places.  This commit does
not change the behaviour of systemd on either distro but it creates a
framework for changes to be introduced by later commits.

The following previously meant "Target is Debian or Ubuntu".
    * configure option "--with-distro=debian"
    * C preprocessor symbol "TARGET_DEBIAN"
    * Automake conditional "TARGET_DEBIAN"
After this commit, all of the above are redefined to mean "Target is Debian"

The following are introduced to mean "Target is Ubuntu".
    * configure option "--with-distro=ubuntu"
    * C preprocessor symbol "TARGET_UBUNTU"
    * Automake conditional "TARGET_UBUNTU"

Most code written for Debian will also be applicable to Ubuntu. An extra
Automake conditional "TARGET_DEBIAN_OR_UBUNTU" is introduced to avoid
duplication of code that would otherwise occur.

This commit updates configure.ac, Makefile.am and distro-specific source files
in line with the above definitions.
2010-10-25 21:09:56 +02:00
Lennart Poettering 8a0867d6c5 systemctl: introduce systemctl kill 2010-10-22 16:11:50 +02:00
Lennart Poettering 0003d1ab75 manager: hookup shutdown helper and signals 2010-10-14 00:54:48 +02:00
Lennart Poettering 9fff8a1f16 mount: hook in q fsck@.service instance for all mount points with passno > 0 2010-10-13 03:57:04 +02:00