]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/systemd-sysv-generator.xml
verify: use manager_load_startable_unit_or_warn() to load units for verification
[thirdparty/systemd.git] / man / systemd-sysv-generator.xml
CommitLineData
f509443a
ZJS
1<?xml version="1.0"?>
2<!--*-nxml-*-->
12b42c76 3<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
f509443a 4<!--
572eb058
ZJS
5 SPDX-License-Identifier: LGPL-2.1+
6
f509443a
ZJS
7 This file is part of systemd.
8
9 Copyright 2014 Zbigniew Jędrzejewski-Szmek
10
11 systemd is free software; you can redistribute it and/or modify it
12 under the terms of the GNU Lesser General Public License as published by
13 the Free Software Foundation; either version 2.1 of the License, or
14 (at your option) any later version.
15
16 systemd is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 Lesser General Public License for more details.
20
21 You should have received a copy of the GNU Lesser General Public License
22 along with systemd; If not, see <http://www.gnu.org/licenses/>.
23-->
24<refentry id="systemd-sysv-generator" conditional="HAVE_SYSV_COMPAT">
25
26 <refentryinfo>
27 <title>systemd-sysv-generator</title>
28 <productname>systemd</productname>
29
30 <authorgroup>
31 <author>
32 <contrib>Documentation</contrib>
33 <firstname>Zbigniew</firstname>
34 <surname>Jędrzejewski-Szmek</surname>
35 <email>zbyszek@in.waw.pl</email>
36 </author>
37 </authorgroup>
38 </refentryinfo>
39
40 <refmeta>
41 <refentrytitle>systemd-sysv-generator</refentrytitle>
42 <manvolnum>8</manvolnum>
43 </refmeta>
44
45 <refnamediv>
46 <refname>systemd-sysv-generator</refname>
47 <refpurpose>Unit generator for SysV init scripts</refpurpose>
48 </refnamediv>
49
50 <refsynopsisdiv>
12b42c76 51 <para><filename>/usr/lib/systemd/system-generators/systemd-sysv-generator</filename></para>
f509443a
ZJS
52 </refsynopsisdiv>
53
54 <refsect1>
55 <title>Description</title>
56
57 <para><filename>systemd-sysv-generator</filename> is a generator
58 that creates wrapper .service units for
59 <ulink url="https://savannah.nongnu.org/projects/sysvinit">SysV init</ulink>
60 scripts in <filename>/etc/init.d/*</filename> at boot and when
61 configuration of the system manager is reloaded. This will allow
62 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>
63 to support them similarly to native units.</para>
64
65 <para><ulink url="http://refspecs.linuxbase.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/iniscrptact.html">LSB headers</ulink>
66 in SysV init scripts are interpreted, and the ordering specified
67 in the header is turned into dependencies between the generated
a8eaaee7 68 unit and other units. The LSB facilities
f509443a
ZJS
69 <literal>$remote_fs</literal>, <literal>$network</literal>,
70 <literal>$named</literal>, <literal>$portmap</literal>,
71 <literal>$time</literal> are supported and will be turned into
72 dependencies on specific native systemd targets. See
73 <citerefentry><refentrytitle>systemd.special</refentrytitle><manvolnum>5</manvolnum></citerefentry>
74 for more details.</para>
75
76 <para>SysV runlevels have corresponding systemd targets
77 (<filename>runlevel<replaceable>X</replaceable>.target</filename>).
a8eaaee7 78 The wrapper unit that is generated will be wanted by those targets
f509443a
ZJS
79 which correspond to runlevels for which the script is
80 enabled.</para>
81
219e0ea7 82 <para><command>systemd</command> does not support SysV scripts as
f509443a
ZJS
83 part of early boot, so all wrapper units are ordered after
84 <filename>basic.target</filename>.</para>
85
b1c1a519
ZC
86 <para><filename>systemd-sysv-generator</filename> implements
87 <citerefentry><refentrytitle>systemd.generator</refentrytitle><manvolnum>7</manvolnum></citerefentry>.</para>
f509443a
ZJS
88 </refsect1>
89
90 <refsect1>
91 <title>See Also</title>
92 <para>
93 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
94 <citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
95 <citerefentry><refentrytitle>systemd.target</refentrytitle><manvolnum>5</manvolnum></citerefentry>
96 </para>
97 </refsect1>
98
99</refentry>