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

125 Commits

Author SHA1 Message Date
Lennart Poettering
02ee865a46 service: rename ValidNoProcess= to RemainAfterExit= 2010-08-17 19:37:36 +02:00
Lennart Poettering
4694836523 service: prefix descriptions when they come from legacy sources 2010-08-17 18:59:05 +02:00
Lennart Poettering
d6c9574fb5 emacs: make sure nobody accidently adds tabs to our sources 2010-08-14 19:59:25 +02:00
Lennart Poettering
34e9ba669e service: rename Type=finish to Type=oneshot and allow multiple ExecStart= lines for oneshot services
In contrast to the other service types oneshot services are usually not
long lasting and there's not necessarily a single clean main process for
them. This change allows multiple ExecStart= lines for this type of
services so that the admin/developer doesn't have to arbitrarily pick on
of various sequential commands as the "main one".
2010-08-13 18:23:01 +02:00
Lennart Poettering
e364ad0628 clang: fix numerous little issues found with clang-analyzer 2010-08-11 22:04:25 +02:00
Lennart Poettering
47342320a0 main: fix auto restarting of units after a configuration reload 2010-08-09 23:53:49 +02:00
Lennart Poettering
69dd2852bb manager: when two pending jobs conflict, keep the one that "conflicts", remove the one that is "conflicted"
This gives the writer of units control which unit is kept and which is
stopped when two units conflict.
2010-08-09 22:32:30 +02:00
Lennart Poettering
6e98720f14 service: hide output of sysv scripts if quiet is passed on the kernel cmdline 2010-08-09 18:00:24 +02:00
Lennart Poettering
5de6b30219 service: properly remember if a sysv is actually enabled
Previously we checked the SysV priority value to figure out if a SysV
unit was enabled or not, since th value was mostly read from the S
startup links. Since we read this value from the LSB headers as a
fallback we hence ended up considering a lot more services enabled than
were actually enabled.

This patch adds an explicit boolean which encodes whether a sysv service
is enabled or not via S links.

https://bugzilla.redhat.com/show_bug.cgi?id=615293
2010-08-09 17:12:25 +02:00
Lennart Poettering
2cf3143ac3 service: show restart value in dump 2010-08-09 17:07:05 +02:00
Lennart Poettering
d4054675b1 service: read special startup dirs only on the respective distros 2010-08-05 20:28:51 +02:00
Lennart Poettering
eeaafddcb5 service: always sort services from suse B runlevel before services from normal runlevels 2010-08-05 19:50:03 +02:00
Lennart Poettering
3a2776bc86 service: save/restore status text string 2010-07-21 05:16:45 +02:00
Lennart Poettering
9d25f5ed7b sysv: do not add sysv services that are not enabled in /etc/rcN.d/ to network.target or other LSB-style Provides: targets 2010-07-20 22:30:45 +02:00
Lennart Poettering
5632e3743d systemctl: introduce reset-maintenance command 2010-07-19 04:08:07 +02:00
Lennart Poettering
92abbefbef execute: bump up log level of executed processes that failed 2010-07-17 04:17:30 +02:00
Lennart Poettering
cac6f7c872 service: refuse to start services that are configured for per-connection instantiation to start without a socket 2010-07-16 19:41:11 +02:00
Lennart Poettering
5830833f7c service: allow input from terminal when executing more than one start-pre or stop-post command 2010-07-12 21:56:51 +02:00
Lennart Poettering
f6023656e1 service: trim cgroups if services that are "active" but "exited" 2010-07-12 03:07:02 +02:00
Lennart Poettering
b708e7cea9 execute: optionally ignore return status of invoked commands 2010-07-12 03:07:01 +02:00
Lennart Poettering
7740296dcf service: fix minor memory leak 2010-07-11 00:52:28 +02:00
Lennart Poettering
3f6c78dceb service: allow immediate stopping while starting 2010-07-10 04:52:00 +02:00
Lennart Poettering
2e22afe909 execute: add ability to configure the kill signal 2010-07-10 04:49:37 +02:00
Lennart Poettering
f8820b628c service: don't enable native services via legacy sysv symlinks anymore 2010-07-08 05:29:46 +02:00
Lennart Poettering
1e3ad081ef execute: if the main process of a service already owns the TTY, don't wait for acquiring it again in the reload/stop step 2010-07-08 04:09:17 +02:00
Lennart Poettering
398ef8ba02 dbus: make errors reported via D-Bus more useful 2010-07-08 02:43:18 +02:00
Lennart Poettering
2105e76a77 service: set env var for stop/reload commands 2010-07-08 00:47:35 +02:00
Lennart Poettering
f60f22dfbb util: use quoted word parsing where applicable 2010-07-07 20:58:41 +02:00
Lennart Poettering
54165a3939 log: bump up a number of log messages so that they are shown even if debug logging is disabled, for diagnostic purposes 2010-07-07 17:57:54 +02:00
Lennart Poettering
af2ab1f9a3 service: fix parsing word size functions 2010-07-07 17:42:06 +02:00
Lennart Poettering
8f75a603ec util: implement safe_atolu based on safe_atolli/safe_atoi, depending on word size 2010-07-07 17:40:25 +02:00
Lennart Poettering
acb591e452 execute: change stdout inherit logic, when run as PID 1 use /dev/null 2010-07-07 04:37:42 +02:00
Lennart Poettering
ecdbca40bd service: serialize exec status 2010-07-07 04:13:20 +02:00
Lennart Poettering
ed4c1cc672 unit: when reading description from LSB prefer short over long description 2010-07-07 02:21:42 +02:00
Lennart Poettering
9e58ff9c5c manager: optionally print status updates to console on boot 2010-07-07 00:00:59 +02:00
Lennart Poettering
b58b41160f dbus: complete exec status coverage 2010-07-04 18:49:58 +02:00
Lennart Poettering
a40eb73224 unit: add DefaultDependencies= setting
In order to simplify writing of unit files introduce default
dependencies that are added to all units unless explictly disabled in a
unit. This option can be switched off for select units that are involved
in early boot-up ot late system shutdown,

This should simplify service files for most normal daemons, but breaks
existing service files for software involved in early boot (notably
udev), which need to be updated for a DefaultDependencies=no setting)
2010-07-03 19:48:33 +02:00
Lennart Poettering
2c966c038d unit: simplify things a little by introducing API to add two dependencies in one step 2010-07-03 19:46:38 +02:00
Lennart Poettering
0d624a785a man: finish service man page 2010-07-01 19:39:35 +02:00
Lennart Poettering
032ff4afc9 unit: shorten active state enums to make systemctl output nicer 2010-07-01 03:34:15 +02:00
Lennart Poettering
6124958c7b unit: add new abstracted maintenance state for units 2010-07-01 00:31:53 +02:00
Lennart Poettering
4eab639f92 service: rework logic when we consider a service running 2010-06-22 04:09:50 +02:00
Lennart Poettering
4d0e5dbd52 service: require KillMode=control-group when PAM is enabled 2010-06-19 16:57:54 +02:00
Lennart Poettering
4cd1fbcc06 unit: get rid of various unnecessary casts 2010-06-19 16:55:49 +02:00
Lennart Poettering
bb00e60409 don't use 'long long' unless we have a really good reason to 2010-06-19 04:35:52 +02:00
Lennart Poettering
6cf6bbc268 socket: enforce limit on number of concurrent connections 2010-06-19 04:25:34 +02:00
Lennart Poettering
f9704703f3 service: honour empty cgroup even in ValidNoProcess mode 2010-06-19 01:06:09 +02:00
Lennart Poettering
c952c6ece2 service: add minimal access control logic for notifcation socket 2010-06-18 23:12:48 +02:00
Lennart Poettering
e55224ca65 service: when we supervise a process, ensure it is our child 2010-06-18 22:05:29 +02:00
Lennart Poettering
514f4ef52f systemctl: add verbs for special units 2010-06-18 04:22:59 +02:00
Lennart Poettering
5925dd3c7a service: rework PID parsing logic everywhere 2010-06-17 22:55:53 +02:00
Lennart Poettering
18c78fb1af typo: the correct spelling is maintenance not maintainance 2010-06-16 14:01:55 +02:00
Lennart Poettering
8c47c7325f notify: add minimal readiness/status protocol for spawned daemons 2010-06-16 05:10:31 +02:00
Lennart Poettering
406eaf930b service: never supervise ourselves 2010-06-15 19:47:13 +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
7020e8be3f reword a few log messages 2010-06-11 11:39:59 +02:00
Lennart Poettering
fc5df99e24 service: honour suse style Kxx links in boot.d/ directory 2010-06-07 02:42:01 +02:00
Lennart Poettering
c4653a4dfe service: handle properly if a dbus process terminates before acquiring the dbus name 2010-06-04 21:23:00 +02:00
Lennart Poettering
f92a18f527 units: introduce and explain sysinit.target 2010-06-04 18:43:40 +02:00
Lennart Poettering
1f48cf56cb service: change default service type to 'simple' since that is the future 2010-06-02 19:17:23 +02:00
Lennart Poettering
723c83fd05 service: interpret Debian-style X-Interactive LSB header field 2010-05-24 22:32:49 +02:00
Lennart Poettering
1e287fe32f unit: turn display-manager.target into a service 2010-05-24 22:29:59 +02:00
Lennart Poettering
6464aa0890 service: add extended debian facilities 2010-05-24 19:56:25 +02:00
Lennart Poettering
c2b35af64c service: be case insensitive when parsing LSB headers, because some Debian services use lower case fields 2010-05-24 19:23:11 +02:00
Lennart Poettering
0c565ed702 service: interpret suse/debian style X-Start-Before/X-Start-After 2010-05-24 19:00:13 +02:00
Lennart Poettering
01f78473b1 path: add .path unit type for monitoring files 2010-05-24 05:25:33 +02:00
Lennart Poettering
8e47d742a8 service: when start is repeated too often, consider that failure 2010-05-20 20:45:20 +02:00
Kay Sievers
cfe243e372 units: SUSE support 2010-05-20 17:55:42 +02:00
Lennart Poettering
d5159713c1 service: when we cannot start due to rate limít consider that a real failure 2010-05-20 01:14:43 +02:00
Lennart Poettering
ff876e283a execute: reopen console in the spawned processes, if necessary 2010-05-20 01:08:13 +02:00
Lennart Poettering
d017c6ca11 service: refuse to parse sysv scripts that are requested with a boot. prefix or .sh suffix 2010-05-19 21:52:30 +02:00
Lennart Poettering
15ca554ba3 service: by default send service output to syslog, except for SysV services which should go to the console 2010-05-19 04:28:25 +02:00
Lennart Poettering
56d748b47e service: sysv_chkconfig_order() actually has nothing to do with chkconfig anymore, so rename it 2010-05-19 03:44:37 +02:00
Lennart Poettering
b7ccee3c84 service: properly drop boot. prefix and .sh suffix from dependency names in the LSB headers 2010-05-19 03:44:07 +02:00
Lennart Poettering
e99e38bbdc build-sys: move source files to subdirectory 2010-05-16 18:45:24 +02:00