summaryrefslogtreecommitdiff
path: root/src/service.c
AgeCommit message (Collapse)Author
2011-03-03kill: always send SIGCONT after SIGTERMLennart Poettering
When we kill a process to terminate it make sure to send SIGCONT to ensure it is unpaused and processes the signal.
2011-02-28Spelling CorrectionsHarald Hoyer
Just some lame spelling corrections with no functionality.
2011-02-25service: never clean up a service that still has a process in itLennart Poettering
2011-02-15exec: introduce global defaults for the standard output of servicesLennart Poettering
2011-02-13service: make main pid guessing optional, and reread pid file after reloadsLennart Poettering
2011-01-20service: make chain of main commands and control commands independent of ↵Lennart Poettering
each other, so that both can be executed simultaneously and independently
2011-01-20service: don't allow reload operations for oneshot servicesLennart Poettering
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-20systemctl: highlight failed processes in systemctl statusLennart Poettering
2011-01-20service: when reloading a service fails don't fail the entire service but ↵Lennart Poettering
just the reload job
2011-01-18service: if a reload operation fails, don't shut down the serviceLennart Poettering
2011-01-18execute: make sending of SIGKILL on shutdown optionalLennart Poettering
2011-01-17arch: remove support for legacy daemonsTom Gundersen
This is now done by a generator, shipped downstream.
2011-01-07service: don't hit an assert if information in LSB headers is incorrectly ↵Lennart Poettering
formatted https://bugzilla.redhat.com/show_bug.cgi?id=667665
2010-12-27service: ifdef (more) distro-specific compat logicMichael Biebl
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-16service: ifdef distro-specific compat logicKay Sievers
2010-12-16service: drop rc. prefix on frugalware linuxMiklos Vajna
2010-12-09suse: add 'smtp' LSB facilityKay Sievers
2010-11-29build-sys: frugalware linux supportMiklos Vajna
2010-11-17cgroup: by default, duplicate service cgroup in the cpu hierarchyLennart Poettering
2010-11-15exec: automatically determine right TERM= setting based on tty nameLennart Poettering
2010-11-15drop support for MANAGER_SESSION, introduce MANAGER_USER insteadLennart Poettering
2010-11-10service: delay automatic restart if job is pendingLennart Poettering
2010-10-29unit: get rid of gnoreDependencyFailure= instead treat ConflictedBy= as ↵Lennart Poettering
weaker counterpart of Conflicts=, similar to Wants= vs. Requires=
2010-10-28service: unify tstamp serialization codeLennart Poettering
2010-10-27service: when after startup only one process is in a service's cgroup, ↵Lennart Poettering
assume it is the main process
2010-10-26service: fix sysv-less buildMike Kazantsev
2010-10-26service: make sure to pass TERM=linux to all sysv scriptsLennart Poettering
2010-10-25ubuntu: Treat Ubuntu as a distinct distro in configure.ac etcAndrew Edmunds
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-22systemctl: introduce systemctl killLennart Poettering
2010-10-14manager: hookup shutdown helper and signalsLennart Poettering
2010-10-13mount: hook in q fsck@.service instance for all mount points with passno > 0Lennart Poettering
2010-10-08service: introduce Restart=on-failure and Restart=on-abortLennart Poettering
2010-10-08service: optionally, create INIT_PROCESS/DEAD_PROCESS entries for a serviceLennart Poettering
This should fix accounting for pam_limits and suchlike. https://bugzilla.redhat.com/show_bug.cgi?id=636036
2010-10-08service: increase default timeout for sysv scripts to 3minLennart Poettering
For SysV services we cannot set the timeout inside the configuration file. Hence let's pick a large timeout by default. https://bugzilla.redhat.com/show_bug.cgi?id=635393
2010-10-05service: rename settings for Restart= from 'restart-always' to 'always' and ↵Lennart Poettering
similar
2010-10-05socket: make sockets to pass to a service configurableLennart Poettering
2010-09-28service: first lookup LSB facility names in tables, only then suppress ↵Lennart Poettering
self-provides
2010-09-28service: Don't crash because of double free when Arch services are disabled ↵Matthias Schiffer
in rc.conf
2010-09-28service: filter out empty LSB description stringsLennart Poettering
2010-09-28service: when resolving sysv names drop leading $Lennart Poettering
2010-09-28service: shortcut sysv provides on ourselvesLennart Poettering
2010-09-28service: ignore sysv $null serviceLennart Poettering
2010-09-27service: don't create sysv order deps on merged unitsLennart Poettering
2010-09-27sysv: optionally disable of SysV init/rcN.d support at compile timeFabiano Fidencio
This patch adds a cpp definition HAVE_SYSV_COMPAT that is used to isolate code dealing with /etc/init.d and /etc/rcN.d for systems where it does not make sense (one that does not use sysv or one that is fully systemd native). The patch tries to be as little intrusive as possible, however in order to minimize the number of #ifdef'ed regions I've reordered some code in path-lookup.c:lookup_paths_init() where all code dealing with sysv is now isolated under running_as == MANAGER_SYSTEM as well. Moreover, In struct Service, some fields were rearranged to reduce the number of ifdefs. Lennart's suggestions were fixed and squashed with the original patch, that was sent by Gustavo Sverzut Barbieri (barbieri@profusion.mobi).
2010-09-21service: start Arch daemonsTom Gundersen
Arch does not use proper SysV runlevels. Instead /etc/rc.conf contains an array of daemons to load in a multi-user runlevel, and some dependencies between them. This patch enables this behaviour in SystemD (only when compiled with Arch support), which allows SystemD to be a drop in replacement on Arch (modulo some minor bugs). v2: simplified after suggestion from Lennart
2010-09-14service: fix check for non-LSB filesLennart Poettering
2010-09-13service: add generic LSB provides handling for facilitiesLennart Poettering
2010-09-13service: translate 'httpd' LSB Provides into '$httpd' on FedoraLennart Poettering
2010-09-11service: don't automatically add D-Bus service name as an alias to all dbus ↵Lennart Poettering
service, rely on manual symlinks to allow disabling of dbus services
2010-09-03service: calculate sysv startup priority only in start runlevelsLennart Poettering