"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "doc/initctl" between
sysvinit-2.98.tar.xz and sysvinit-2.99.tar.xz

About: SysVinit - Linux System V style init programs.

initctl  (sysvinit-2.98.tar.xz):initctl  (sysvinit-2.99.tar.xz)
skipping to change at line 16 skipping to change at line 16
The init manual page has, up until recently, simply stated The init manual page has, up until recently, simply stated
that people wishing to understand how to send messages to init that people wishing to understand how to send messages to init
should read the init program's source code, but that is not usually practical. should read the init program's source code, but that is not usually practical.
Messages sent to the pipe to talk to init must have a special format. Messages sent to the pipe to talk to init must have a special format.
This format is defined as a C structure and the technical break-down This format is defined as a C structure and the technical break-down
is presented here: is presented here:
/* /*
* Because of legacy interfaces, "runlevel" and "sleeptime" * Because of legacy interfaces, "runlevel" and "sleeptime"
* aren't in a seperate struct in the union. * aren't in a separate struct in the union.
* *
* The weird sizes are because init expects the whole * The weird sizes are because init expects the whole
* struct to be 384 bytes. * struct to be 384 bytes.
*/ */
struct init_request { struct init_request {
int magic; /* Magic number */ int magic; /* Magic number */
int cmd; /* What kind of request */ int cmd; /* What kind of request */
int runlevel; /* Runlevel to change to */ int runlevel; /* Runlevel to change to */
int sleeptime; /* Time between TERM and KILL */ int sleeptime; /* Time between TERM and KILL */
union { union {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)