~vicamo/systemd/systemd

« back to all changes in this revision

Viewing changes to .pc/0009-Revert-service-ignore-dependencies-on-syslog-and-loc.patch/src/core/special.h

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2013-11-06 14:01:26 UTC
  • mfrom: (6.1.21 sid)
  • Revision ID: package-import@ubuntu.com-20131106140126-176udehi2kg210w7
Tags: 204-5ubuntu1
* Merge packaging with current Debian unstable, to greatly reduce the diff
  noise. Ubuntu changes:
  Permanently Ubuntu specific:
  - debian/control, debian/rules, debian/systemd.install,
    debian/systemd-services.install: Split out systemd-services package with
    logind, timedated, hostnamed, and localed. Add
    libpam-systemd.systemd-logind.upstart to bring up logind at boot.
  - debian/rules: Don't build systemd and systemd-sysv packages, not
    approved for universe for now.
  - debian/udev.templates, Drop debconfiscation of udev, not necessary for
    Ubuntu.
  - debian/extra/initramfs.top: Drop $ROOTDELAY, we do that in a more
    sensible way with wait-for-root. (Will get applicable to Debian once
    Debian gets wait-for-root in initramfs-tools.)
  - Add debian/extra/rules/78-graphics-card.rules: Mark graphics devices as
    PRIMARY_DEVICE_FOR_DISPLAY so that we can wait for those in plymouth.
  - Drop debian/extra/{50-udev-default.rules,75-cd-aliases-generator.rules,
    80-networking.rules,91-permissions.rules}, we don't want these in
    Ubuntu.
  - Add debian/extra/udev.py: Apport hook.
  - debian/extra/udev.startup, debian/rules: Don't install/support
    /etc/udev/links.conf, that's a hack (if you want links, create udev
    rules).
  - Various debian/patches/*, see patch headers (unmergeable with Debian).
  - Drop debian/source/{git-patches,options}, we use proper patches.
  - debian/rules: We continue to use the old net iface naming schema for the
    time being. Install old udev rule generator in debian/udev.install.
    (Reconsider post-LTS)
  - debian/rules: Don't install init.d scripts, only the upstart jobs.
  - debian/rules: Add an epoch to libgudev.
  - Drop debian/udev.dirs, not necessary.
  - Drop debian/udev.NEWS, debian/udev.maintscript: Not applicable to
    Ubuntu.
  - debian/udev.{postinst,postrm,preinst,prerm}: Keep our much simpler
    versions (all platforms must support udev, no debconf).
  - debian/libgudev-1.0-0.install: Install into /lib/ (Debian has a patch
    for this to go into /usr/lib/).
  - debian/rules: Drop doc dir symlinking. It creates havoc with dpkg
    upgrades, and we already have the automatic per-file symlinking.

  Applicable to Debian:
  - debian/control, debian/tests/: Add autopkgtest.
  - debian/extra/initramfs.hook, debian/udev.*{pre,post}inst: Divert udevadm
    to udevadm.upgrade during upgrades while udev is unconfigured.
  - Add debian/extra/60-keyboard.hwdb: Latest upstream keymaps, for easy
    backporting.
  - debian/extra/initramfs.bottom: If LVM is installed, settle udev,
    otherwise we get missing LV symlinks. (LP #1185394)
  - debian/extra/rules/75-persistent-net-generator.rules: Add Ravello
    systems (LP #1099278)
  - Add debian/extra/README-{etc,lib}-rules.d documentation, install into
    udev.
  - debian/rules: Run tests during package build.
  - debian/udev.udev-finish.upstart: Fix path to tmp-rules,
    debian/extra/rule_generator.functions creates them in /run/udev/.
  - debian/udev.upstart: Fix path to udevd.
  - debian/shlibs.local: Drop libudev; this unnecessarily generates overly
    strict dependencies, and even wrong ones for our epoched libgudev.
  - debian/udev-udeb.install: Add 64-btrfs.rules and 75-probe_mtd.rules,
    they are potentially useful in a d-i environment.

  Will go away eventually:
  - Add debian/extra/rules/40-hyperv-hotadd.rules: Workaround for LP #1233466
  - Keep debian/extra/firmware.agent and rule in
    debian/extra/rules/80-drivers.rules until this has been tested to not be
    necessary under Ubuntu kernels any more.

  Upgrade fixes, keep until 14.04 LTS release:
  - debian/control: Conflicts/Replaces libpam-xdg-support.
  - debian/libpam-systemd.postinst: Trigger reboot notification for upgrade
    from < 204, due to changed cgroup layout.
  - debian/systemd-services.maintscript: Clean up obsolete
    /etc/init/systemd-logind.conf on upgrades.

* Promote "systemd | systemd-shim" to Depends. (LP: #1221809)
* 0000-upstream-hwdb-keyboard.patch: udev-builtin-keyboard: Fix large scan
  codes on 32 bit architectures. (side issue in LP #1247676)
* Drop systemd init specific Debian patches which we don't need in Ubuntu;
  The Debian package does not track proper patches any more, so it doesn't
  help us keeping the patches around for merging.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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 <http://www.gnu.org/licenses/>.
22
 
***/
23
 
 
24
 
#define SPECIAL_DEFAULT_TARGET "default.target"
25
 
 
26
 
/* Shutdown targets */
27
 
#define SPECIAL_UMOUNT_TARGET "umount.target"
28
 
/* This is not really intended to be started by directly. This is
29
 
 * mostly so that other targets (reboot/halt/poweroff) can depend on
30
 
 * it to bring all services down that want to be brought down on
31
 
 * system shutdown. */
32
 
#define SPECIAL_SHUTDOWN_TARGET "shutdown.target"
33
 
#define SPECIAL_HALT_TARGET "halt.target"
34
 
#define SPECIAL_POWEROFF_TARGET "poweroff.target"
35
 
#define SPECIAL_REBOOT_TARGET "reboot.target"
36
 
#define SPECIAL_KEXEC_TARGET "kexec.target"
37
 
#define SPECIAL_EXIT_TARGET "exit.target"
38
 
#define SPECIAL_SUSPEND_TARGET "suspend.target"
39
 
#define SPECIAL_HIBERNATE_TARGET "hibernate.target"
40
 
#define SPECIAL_HYBRID_SLEEP_TARGET "hybrid-sleep.target"
41
 
 
42
 
/* Special boot targets */
43
 
#define SPECIAL_RESCUE_TARGET "rescue.target"
44
 
#define SPECIAL_EMERGENCY_TARGET "emergency.target"
45
 
 
46
 
/* Early boot targets */
47
 
#define SPECIAL_SYSINIT_TARGET "sysinit.target"
48
 
#define SPECIAL_SOCKETS_TARGET "sockets.target"
49
 
#define SPECIAL_TIMERS_TARGET "timers.target"
50
 
#define SPECIAL_PATHS_TARGET "paths.target"
51
 
#define SPECIAL_LOCAL_FS_TARGET "local-fs.target"
52
 
#define SPECIAL_LOCAL_FS_PRE_TARGET "local-fs-pre.target"
53
 
#define SPECIAL_INITRD_FS_TARGET "initrd-fs.target"
54
 
#define SPECIAL_INITRD_ROOT_FS_TARGET "initrd-root-fs.target"
55
 
#define SPECIAL_REMOTE_FS_TARGET "remote-fs.target"       /* LSB's $remote_fs */
56
 
#define SPECIAL_REMOTE_FS_PRE_TARGET "remote-fs-pre.target"
57
 
#define SPECIAL_SWAP_TARGET "swap.target"
58
 
#define SPECIAL_NETWORK_ONLINE_TARGET "network-online.target"
59
 
#define SPECIAL_BASIC_TARGET "basic.target"
60
 
 
61
 
/* LSB compatibility */
62
 
#define SPECIAL_NETWORK_TARGET "network.target"           /* LSB's $network */
63
 
#define SPECIAL_NSS_LOOKUP_TARGET "nss-lookup.target"     /* LSB's $named */
64
 
#define SPECIAL_RPCBIND_SERVICE "rpcbind.service"         /* LSB's $portmap */
65
 
#define SPECIAL_TIME_SYNC_TARGET "time-sync.target"       /* LSB's $time */
66
 
 
67
 
/*
68
 
 * Rules regarding adding further high level targets like the above:
69
 
 *
70
 
 * - Be conservative, only add more of these when we really need
71
 
 *   them. We need strong usecases for further additions.
72
 
 *
73
 
 * - When there can be multiple implementations running side-by-side,
74
 
 *   it needs to be a .target unit which can pull in all
75
 
 *   implementations.
76
 
 *
77
 
 * - If something can be implemented with socket activation, and
78
 
 *   without, it needs to be a .target unit, so that it can pull in
79
 
 *   the appropriate unit.
80
 
 *
81
 
 * - Otherwise, it should be a .service unit.
82
 
 *
83
 
 * - In some cases it is OK to have both a .service and a .target
84
 
 *   unit, i.e. if there can be multiple parallel implementations, but
85
 
 *   only one is the "system" one. Example: syslog.
86
 
 *
87
 
 * Or to put this in other words: .service symlinks can be used to
88
 
 * arbitrate between multiple implementations if there can be only one
89
 
 * of a kind. .target units can be used to support multiple
90
 
 * implementations that can run side-by-side.
91
 
 */
92
 
 
93
 
/* Magic early boot services */
94
 
#define SPECIAL_FSCK_SERVICE "systemd-fsck@.service"
95
 
#define SPECIAL_QUOTACHECK_SERVICE "systemd-quotacheck.service"
96
 
#define SPECIAL_QUOTAON_SERVICE "quotaon.service"
97
 
#define SPECIAL_REMOUNT_FS_SERVICE "systemd-remount-fs.service"
98
 
 
99
 
/* Services systemd relies on */
100
 
#define SPECIAL_DBUS_SERVICE "dbus.service"
101
 
#define SPECIAL_DBUS_SOCKET "dbus.socket"
102
 
#define SPECIAL_JOURNALD_SOCKET "systemd-journald.socket"
103
 
#define SPECIAL_JOURNALD_SERVICE "systemd-journald.service"
104
 
 
105
 
/* Magic init signals */
106
 
#define SPECIAL_KBREQUEST_TARGET "kbrequest.target"
107
 
#define SPECIAL_SIGPWR_TARGET "sigpwr.target"
108
 
#define SPECIAL_CTRL_ALT_DEL_TARGET "ctrl-alt-del.target"
109
 
 
110
 
/* For SysV compatibility. Usually an alias for a saner target. On
111
 
 * SysV-free systems this doesn't exist. */
112
 
#define SPECIAL_RUNLEVEL2_TARGET "runlevel2.target"
113
 
#define SPECIAL_RUNLEVEL3_TARGET "runlevel3.target"
114
 
#define SPECIAL_RUNLEVEL4_TARGET "runlevel4.target"
115
 
#define SPECIAL_RUNLEVEL5_TARGET "runlevel5.target"