Home | Forum | MAN Pages | Tutorials | Directory | HOWTOs | About Me | Contact
 
FAQS
» Advanced Routing & Traffic Control
» General FAQ
» Squid Proxy Server
» Sendmail
» Fetchmail
» Postfix
» Connecting Mobile Phone
» Paging from Linux
» Standard Commands
» Some common terms
Linux HOWTOs
- Single List of HOWTOs
- Advocacy
- Bootdisk-HOWTO
- Compaq-T1500-HOWTO
- DocBook Install
- ISP Setup RedHat HOWTO
- Finnish HOWTO
- IO-Perf-HOWTO
- Keyboard-and-Console-HOWTO
- Loadlin+Win95-98-ME
- Netrom-Node
- NFS-HOWTO
- Polish-HOWTO
- SCSI-Generic-HOWTO
- SMB-HOWTO
- Traffic-Control-tcng-HTB-HOWTO
- Unicode-HOWTO
- VAIO+Linux
- Wearable-HOWTO
- Xterm-Title
- ADSL Bandwidth Management
- Compile Apache
- Make a Bootdisk
- Linux-Windows9x-Grub
- Linux-Windows
- Linux Crash Recovery
- Optimise Squid
- Block websites in Squid
- Broadcast webcam in linux
- Compile RedHat Linux kernel
- Implement Firewall Security
- Increase Harddrive Performance
- Mount NTFS filesystem
- Patch / rebuild SRPM
- Secure Linux
- Set up a DHCP Server
- Set up an FTP server
- Set up Linux as a Router
- Use Cron
- Samba
Miscellaneous
» All Ports
» Spammers fetch email addresses
» Mounting NTFS in linux
» Linux Gazette
» Linux Man Pages
» Linux Directory
Linux Man Pages
- Section 1
- Section 2
- Section 3
- Section 4
- Section 5
- Section 6
- Section 7
- Section 8
Linux Directory
- General Information
- Linux Hardware
- Software / Applications
- Web Technology
- Software Development
- Linux Distributions
- Linux Publications
- Linux Beginners

linux,man,pages,linux man pages,squid,ntfs,mount
 

Name

initctl — utility to control simpleinit(8)

Synopsis

need [−r] service

display-services

provide service

OVERVIEW

The initctl programme is designed to help improve the robustness, scalability and readability of system boot scripts. It is now possible to write a modularised set of boot scripts without the complex and fragile numbered symlink scheme used in SysV-style boot scripts. Each script can simply declare, using need(8), what must run before them.

DESCRIPTION for need

The need programme is a utility that tells simpleinit(8) to start a service (usually a script in /sbin/init.d) and will wait for the service to become available. If the service is already available, it will not be started again.

The −r option is used to tell simpleinit(8) to "roll back" (stop) services up to (but not including) service. If service is not specified, all services are stopped. The −r option thus allows the system to be partially or wholly shut down in an orderly fashion. The shutdown(8) programme still needs to be run.

DESCRIPTION for display-services

When invoked as display-services it will write the list of currently available services and the list of failed services to the standard output.

DESCRIPTION for provide

When invoked as provide it tells simpleinit(8) that the parent (calling) process will be providing a service with name service. If the calling process exits successfully (status 0) the service is deemed to be available. Only one instance of service may be started, so alternate providers will block and may fail.

Using provide it is possible to have multiple potential providers for the same (generic) service (e.g. sendmail and qmail both provide a mta service), where only one actually provides the service. This may be used by service startup scripts which check for configuration files.

EXIT CODE

The exit code from need is 0 if the service was successfully started, 1 if the service failed badly, and 2 if the service is unavailable (i.e. disabled in configuration files). These exit codes reflect the exit codes from the service startup scripts.

The exit code from need -r is 0 if the service was successfully stopped, 1 if the service could not be stopped, and 2 if the service was not available to start with. The service shutdown scripts may only return 0 (for success) or 1 (for failure).

The exit code from provide is 0 if the service may be provided, 1 if it may not, and 2 if the parent process is not a child of init. It may block waiting for another provider which is initialising the service.

SIGNALS

initctl(8) uses SIGUSR1, SIGUSR2 and SIGPOLL for communication with simpleinit(8). Don't send these signals to it.

FILES

/dev/initctl

This is the control FIFO, created by simpleinit(8), which initctl(8) writes commands to.

SEE ALSO

simpleinit(8), init(8)

A more complete discussion of the new boot script system, based on need(8), is available from: http://www.atnf.csiro.au/~rgooch/linux/boot-scripts/

AUTHOR

Richard Gooch (rgooch@atnf.csiro.au)

AVAILABILITY

The Util-Linux package is available from: ftp://ftp.??.kernel.org/pub/linux/utils/util-linux/


  Copyright (C) 2000-2001  Richard Gooch

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

Richard Gooch may be reached by email at  rgooch@atnf.csiro.au
The postal address is:
  Richard Gooch, c/o ATNF, P. O. Box 76, Epping, N.S.W., 2121, Australia.

initctl.8 Richard Gooch 21-FEB-2001

 
Random Linux Commands
PPP
Point-to-Point Protocol, this is the most common method of making a dial-up connection to the Internet, and an assortment of tools are available to make this process a lot easier such as Kppp.

Common Linux terms
Linux-FAQs Forum Categories
» About Forum
» Hardware Troubleshooting in Linux
» Linux Entertainment
» Resources
» Software toubleshooting and configuration
All Linux-FAQs Forums
» Crash Recovery
» FAQs
» Forum Talk
» Games
» General
» Linux Audio Support
» Linux Hardware / Driver
» Linux Installation Support
» Linux misc.
» Linux Networking
» Linux Newbies
» Linux Printing Support
» Linux Security
» Linux Video Support
» Mail Server
» Multimedia
» Tutorials
» Web Proxy Server
» Web Server

linux,man,man pages,faqs,howtos,forum
 
Powered by HTML
Linux-faqs.com Copyright, All rights reserved www.linux-faqs.com. Peeyush Maurya.