special.h revision feb88c9ff52b52a1fc0f075cba1215e4c2a82545
181e56d8b348d301d615ccf5465ae600fee2867berikabele/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
181e56d8b348d301d615ccf5465ae600fee2867berikabele
181e56d8b348d301d615ccf5465ae600fee2867berikabele#ifndef foospecialhfoo
dd9f0e560e29dc86fba5f5d4fa5e72cda5cefb16slive#define foospecialhfoo
dd9f0e560e29dc86fba5f5d4fa5e72cda5cefb16slive
dd9f0e560e29dc86fba5f5d4fa5e72cda5cefb16slive/***
5a58787efeb02a1c3f06569d019ad81fd2efa06end This file is part of systemd.
5a58787efeb02a1c3f06569d019ad81fd2efa06end
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim Copyright 2010 Lennart Poettering
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen systemd is free software; you can redistribute it and/or modify it
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen under the terms of the GNU General Public License as published by
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen the Free Software Foundation; either version 2 of the License, or
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen (at your option) any later version.
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim
5a58787efeb02a1c3f06569d019ad81fd2efa06end systemd is distributed in the hope that it will be useful, but
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowen WITHOUT ANY WARRANTY; without even the implied warranty of
3f08db06526d6901aa08c110b5bc7dde6bc39905nd MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim General Public License for more details.
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim
5a58787efeb02a1c3f06569d019ad81fd2efa06end You should have received a copy of the GNU General Public License
3f08db06526d6901aa08c110b5bc7dde6bc39905nd along with systemd; If not, see <http://www.gnu.org/licenses/>.
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd***/
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim
ee649f9236fe7fcf255bbfa11f2cce080f996521sf#define SPECIAL_DEFAULT_TARGET "default.target"
7f5b59ccc63c0c0e3e678a168f09ee6a2f51f9d0nd
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd/* Shutdown targets */
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjung#define SPECIAL_UMOUNT_TARGET "umount.target"
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd/* This is not really intended to be started by directly. This is
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd * mostly so that other targets (reboot/halt/poweroff) can depend on
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen * it to bring all services down that want to be brought down on
c68aa7f213d409d464eaa6b963afb28678548f4frbowen * system shutdown. */
2df40fa998d3364133c4dd29eb395f5ae70dfc1fslive#define SPECIAL_SHUTDOWN_TARGET "shutdown.target"
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen#define SPECIAL_HALT_TARGET "halt.target"
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen#define SPECIAL_POWEROFF_TARGET "poweroff.target"
2df40fa998d3364133c4dd29eb395f5ae70dfc1fslive#define SPECIAL_REBOOT_TARGET "reboot.target"
2df40fa998d3364133c4dd29eb395f5ae70dfc1fslive#define SPECIAL_KEXEC_TARGET "kexec.target"
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen#define SPECIAL_EXIT_TARGET "exit.target"
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen
dd9f0e560e29dc86fba5f5d4fa5e72cda5cefb16slive/* Special boot targets */
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim#define SPECIAL_RESCUE_TARGET "rescue.target"
2684d5de7d8996ac96df3a37e8f8a49c502f26dfjsl#define SPECIAL_EMERGENCY_TARGET "emergency.target"
5a58787efeb02a1c3f06569d019ad81fd2efa06end
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim/* Early boot targets */
cfebc848e619d381e71d40b6f489db4aac180ee5rbowen#define SPECIAL_SYSINIT_TARGET "sysinit.target"
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim#define SPECIAL_SOCKETS_TARGET "sockets.target"
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim#define SPECIAL_LOCAL_FS_TARGET "local-fs.target" /* LSB's $local_fs */
5a58787efeb02a1c3f06569d019ad81fd2efa06end#define SPECIAL_LOCAL_FS_PRE_TARGET "local-fs-pre.target"
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim#define SPECIAL_REMOTE_FS_TARGET "remote-fs.target" /* LSB's $remote_fs */
5a58787efeb02a1c3f06569d019ad81fd2efa06end#define SPECIAL_REMOTE_FS_PRE_TARGET "remote-fs-pre.target"
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim#define SPECIAL_SWAP_TARGET "swap.target"
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim#define SPECIAL_BASIC_TARGET "basic.target"
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim/* LSB compatibility */
5a58787efeb02a1c3f06569d019ad81fd2efa06end#define SPECIAL_NETWORK_TARGET "network.target" /* LSB's $network */
5a58787efeb02a1c3f06569d019ad81fd2efa06end#define SPECIAL_NSS_LOOKUP_TARGET "nss-lookup.target" /* LSB's $named */
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen#define SPECIAL_RPCBIND_TARGET "rpcbind.target" /* LSB's $portmap */
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen#define SPECIAL_SYSLOG_TARGET "syslog.target" /* LSB's $syslog */
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen#define SPECIAL_TIME_SYNC_TARGET "time-sync.target" /* LSB's $time */
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen#define SPECIAL_DISPLAY_MANAGER_SERVICE "display-manager.service" /* Debian's $x-display-manager */
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen#define SPECIAL_MAIL_TRANSFER_AGENT_TARGET "mail-transfer-agent.target" /* Debian's $mail-{transport|transfer-agent */
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen#define SPECIAL_HTTP_DAEMON_TARGET "http-daemon.target"
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen
2684d5de7d8996ac96df3a37e8f8a49c502f26dfjsl/* Magic early boot services */
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen#define SPECIAL_FSCK_SERVICE "fsck@.service"
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen#define SPECIAL_QUOTACHECK_SERVICE "quotacheck.service"
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen#define SPECIAL_QUOTAON_SERVICE "quotaon.service"
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen#define SPECIAL_REMOUNT_ROOTFS_SERVICE "remount-rootfs.service"
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen
dd9f0e560e29dc86fba5f5d4fa5e72cda5cefb16slive/* Services systemd relies on */
181e56d8b348d301d615ccf5465ae600fee2867berikabele#define SPECIAL_DBUS_SERVICE "dbus.service"
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen#define SPECIAL_DBUS_SOCKET "dbus.socket"
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen#define SPECIAL_JOURNALD_SOCKET "systemd-journald.socket"
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen#define SPECIAL_JOURNALD_SERVICE "systemd-journald.service"
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen/* Magic init signals */
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen#define SPECIAL_KBREQUEST_TARGET "kbrequest.target"
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen#define SPECIAL_SIGPWR_TARGET "sigpwr.target"
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen#define SPECIAL_CTRL_ALT_DEL_TARGET "ctrl-alt-del.target"
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen/* For SysV compatibility. Usually an alias for a saner target. On
dd9f0e560e29dc86fba5f5d4fa5e72cda5cefb16slive * SysV-free systems this doesn't exist. */
181e56d8b348d301d615ccf5465ae600fee2867berikabele#define SPECIAL_RUNLEVEL2_TARGET "runlevel2.target"
181e56d8b348d301d615ccf5465ae600fee2867berikabele#define SPECIAL_RUNLEVEL3_TARGET "runlevel3.target"
dd9f0e560e29dc86fba5f5d4fa5e72cda5cefb16slive#define SPECIAL_RUNLEVEL4_TARGET "runlevel4.target"
181e56d8b348d301d615ccf5465ae600fee2867berikabele#define SPECIAL_RUNLEVEL5_TARGET "runlevel5.target"
dd9f0e560e29dc86fba5f5d4fa5e72cda5cefb16slive
cfebc848e619d381e71d40b6f489db4aac180ee5rbowen#endif
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen