Content-type: text/html Man page of itruns

itruns

Section: Maintenance Commands (8)
Index Return to Main Contents
 

NAME

itruns - set up files for use by the it command  

SYNOPSIS

/sbin/itruns file [file ...] in run-state [, file [file ...] in run-state] [, ...]  

DESCRIPTION

The itruns program sets up scripts to be run by it(8). (These programs are typically used within system configuration and installation scripts.) The itruns command searches for /sbin/it.d/bin/file. If itruns finds the file, it creates one or more symbolic links from /sbin/it.d/run-state.d/file to /sbin/it.d/bin/file.

The run-state argument can be a single run state, or it can be two run states separated by either the word or or the word and. If two run states are specified with the or keyword, itruns checks for (and creates, if necessary) a directory whose name combines both run states and places a link in that directory so that the file will be executed when the it program detects either state. You can collapse two or-separated states into a single expression; for example, 2 or 3 can be expressed as 23. If the and keyword is used, itruns checks for (and creates, if necessary) two separate directories and places a link in each of them so that either state triggers execution of the file independently of the other state.

If two or more files are specified for a single run-state argument, links are created for all of the files as indicated by the run-state argument.

If two or more combinations of files and run states are specified as comma-separated expressions, itruns treats each combination individually.  

RESTRICTIONS

The itruns command must be executed from the root directory (/). The command finds only files that are located in the /sbin/it.d/bin directory.  

EXAMPLES

This example sets up the doconfig script to be run when the system is booted to run state 2: itruns doconfig in 2 Either of the command lines in this example sets up the doconfig and getdate scripts to be run when the system is booted to run state 2 or to run state 3: itruns doconfig getdate in 2 or 3 itruns doconfig getdate in 23 This example sets up the doconfig script to be run when the system is booted to run state 2 and again when the system comes to run state 3, the getdate script to be run only in run state 2, and the getsysname script to be run only in run state 3: itruns doconfig in 2 and 3, getdate in 2, getsysname in 3  

RELATED INFORMATION

Commands: it(8) delim off


 

Index

NAME
SYNOPSIS
DESCRIPTION
RESTRICTIONS
EXAMPLES
RELATED INFORMATION

This document was created by man2html, using the manual pages.
Time: 02:40:42 GMT, October 02, 2010