]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/shared/special.h
hwdb: Update database of Bluetooth company identifiers
[thirdparty/systemd.git] / src / shared / special.h
CommitLineData
03467c88 1/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
514f4ef5 2
c2f1db8f 3#pragma once
514f4ef5
LP
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
5430f7f2
LP
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
514f4ef5
LP
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
5430f7f2 18 Lesser General Public License for more details.
514f4ef5 19
5430f7f2 20 You should have received a copy of the GNU Lesser General Public License
514f4ef5
LP
21 along with systemd; If not, see <http://www.gnu.org/licenses/>.
22***/
23
24#define SPECIAL_DEFAULT_TARGET "default.target"
25
f1dd0c3f
LP
26/* Shutdown targets */
27#define SPECIAL_UMOUNT_TARGET "umount.target"
514f4ef5
LP
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"
177b3ffe
LP
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"
6edd7d0a
LP
38#define SPECIAL_SUSPEND_TARGET "suspend.target"
39#define SPECIAL_HIBERNATE_TARGET "hibernate.target"
6524990f 40#define SPECIAL_HYBRID_SLEEP_TARGET "hybrid-sleep.target"
514f4ef5 41
f1dd0c3f 42/* Special boot targets */
177b3ffe
LP
43#define SPECIAL_RESCUE_TARGET "rescue.target"
44#define SPECIAL_EMERGENCY_TARGET "emergency.target"
514f4ef5 45
f1dd0c3f 46/* Early boot targets */
177b3ffe
LP
47#define SPECIAL_SYSINIT_TARGET "sysinit.target"
48#define SPECIAL_SOCKETS_TARGET "sockets.target"
e821075a 49#define SPECIAL_BUSNAMES_TARGET "busnames.target"
e3d84721
LP
50#define SPECIAL_TIMERS_TARGET "timers.target"
51#define SPECIAL_PATHS_TARGET "paths.target"
5d4caf56 52#define SPECIAL_LOCAL_FS_TARGET "local-fs.target"
21e557ed 53#define SPECIAL_LOCAL_FS_PRE_TARGET "local-fs-pre.target"
700e07ff 54#define SPECIAL_INITRD_FS_TARGET "initrd-fs.target"
9e5f0f92 55#define SPECIAL_INITRD_ROOT_FS_TARGET "initrd-root-fs.target"
514f4ef5 56#define SPECIAL_REMOTE_FS_TARGET "remote-fs.target" /* LSB's $remote_fs */
21e557ed 57#define SPECIAL_REMOTE_FS_PRE_TARGET "remote-fs-pre.target"
514f4ef5 58#define SPECIAL_SWAP_TARGET "swap.target"
0c17fbce 59#define SPECIAL_NETWORK_ONLINE_TARGET "network-online.target"
177b3ffe
LP
60#define SPECIAL_BASIC_TARGET "basic.target"
61
f1dd0c3f 62/* LSB compatibility */
514f4ef5
LP
63#define SPECIAL_NETWORK_TARGET "network.target" /* LSB's $network */
64#define SPECIAL_NSS_LOOKUP_TARGET "nss-lookup.target" /* LSB's $named */
65#define SPECIAL_RPCBIND_TARGET "rpcbind.target" /* LSB's $portmap */
4466194c 66#define SPECIAL_TIME_SYNC_TARGET "time-sync.target" /* LSB's $time */
669b04a4
LP
67
68/*
69 * Rules regarding adding further high level targets like the above:
70 *
71 * - Be conservative, only add more of these when we really need
72 * them. We need strong usecases for further additions.
73 *
74 * - When there can be multiple implementations running side-by-side,
75 * it needs to be a .target unit which can pull in all
76 * implementations.
77 *
78 * - If something can be implemented with socket activation, and
79 * without, it needs to be a .target unit, so that it can pull in
80 * the appropriate unit.
81 *
82 * - Otherwise, it should be a .service unit.
83 *
84 * - In some cases it is OK to have both a .service and a .target
85 * unit, i.e. if there can be multiple parallel implementations, but
86 * only one is the "system" one. Example: syslog.
87 *
88 * Or to put this in other words: .service symlinks can be used to
89 * arbitrate between multiple implementations if there can be only one
90 * of a kind. .target units can be used to support multiple
91 * implementations that can run side-by-side.
92 */
177b3ffe 93
f1dd0c3f 94/* Magic early boot services */
93a1d735
LP
95#define SPECIAL_FSCK_SERVICE "systemd-fsck@.service"
96#define SPECIAL_QUOTACHECK_SERVICE "systemd-quotacheck.service"
0c380104 97#define SPECIAL_QUOTAON_SERVICE "quotaon.service"
2b93b027 98#define SPECIAL_REMOUNT_FS_SERVICE "systemd-remount-fs.service"
177b3ffe 99
f1dd0c3f 100/* Services systemd relies on */
514f4ef5 101#define SPECIAL_DBUS_SERVICE "dbus.service"
8f6df3fa 102#define SPECIAL_DBUS_SOCKET "dbus.socket"
64f5002a 103#define SPECIAL_JOURNALD_SOCKET "systemd-journald.socket"
731a676c 104#define SPECIAL_JOURNALD_SERVICE "systemd-journald.service"
177b3ffe 105
f1dd0c3f 106/* Magic init signals */
177b3ffe
LP
107#define SPECIAL_KBREQUEST_TARGET "kbrequest.target"
108#define SPECIAL_SIGPWR_TARGET "sigpwr.target"
109#define SPECIAL_CTRL_ALT_DEL_TARGET "ctrl-alt-del.target"
514f4ef5 110
514f4ef5
LP
111/* For SysV compatibility. Usually an alias for a saner target. On
112 * SysV-free systems this doesn't exist. */
113#define SPECIAL_RUNLEVEL2_TARGET "runlevel2.target"
114#define SPECIAL_RUNLEVEL3_TARGET "runlevel3.target"
115#define SPECIAL_RUNLEVEL4_TARGET "runlevel4.target"
116#define SPECIAL_RUNLEVEL5_TARGET "runlevel5.target"
a016b922 117
9444b1f2 118/* Where we add all our system units, users and machines by default */
a016b922 119#define SPECIAL_SYSTEM_SLICE "system.slice"
9444b1f2
LP
120#define SPECIAL_USER_SLICE "user.slice"
121#define SPECIAL_MACHINE_SLICE "machine.slice"
4ad49000 122#define SPECIAL_ROOT_SLICE "-.slice"