create-rc-script-examples.xml revision 73adb2e3dbaa8a9f6448cefccb7933f68c3c7348
10139N/A<?xml version="1.0" encoding="UTF-8"?>
10139N/A<!--
10139N/A ! CDDL HEADER START
12189N/A !
10139N/A ! The contents of this file are subject to the terms of the
10139N/A ! Common Development and Distribution License, Version 1.0 only
10139N/A ! (the "License"). You may not use this file except in compliance
17185N/A ! with the License.
10139N/A !
11377N/A ! You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
18602N/A ! or http://forgerock.org/license/CDDLv1.0.html.
17177N/A ! See the License for the specific language governing permissions
10139N/A ! and limitations under the License.
15311N/A !
10139N/A ! When distributing Covered Code, include this CDDL HEADER in each
18685N/A ! file and include the License file at legal-notices/CDDLv1_0.txt.
10139N/A ! If applicable, add the following below this CDDL HEADER, with the
10139N/A ! fields enclosed by brackets "[]" replaced with your own identifying
18602N/A ! information:
10139N/A ! Portions Copyright [yyyy] [name of copyright owner]
18532N/A !
12773N/A ! CDDL HEADER END
12773N/A !
12773N/A ! Copyright 2015 ForgeRock AS.
19019N/A !
17717N/A-->
18119N/A<refsect1 xmlns="http://docbook.org/ns/docbook"
18119N/A version="5.0" xml:lang="en"
19019N/A xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
18566N/A xsi:schemaLocation="http://docbook.org/ns/docbook
18820N/A http://docbook.org/xml/5.0/xsd/docbook.xsd">
18797N/A <title>Examples</title>
19017N/A
19017N/A <para>
10139N/A The following example adds a script to start OpenDJ at boot time
10139N/A on a Debian-based system,
10139N/A and then updates the runlevel system to use the script.
10139N/A </para>
10139N/A
10139N/A <screen>
10139N/A$ <userinput>sudo create-rc-script -f /etc/init.d/opendj -u opendj-user</userinput>
10139N/A$ <userinput>sudo update-rc.d opendj</userinput>
10139N/A </screen>
10139N/A</refsect1>
10139N/A