aboutsummaryrefslogtreecommitdiff
path: root/riemann.fmi.uni-sofia.bg/ninit/man/reload.man
blob: ced3ab407723df7a5112ef72d68a131089a77585 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
ninit-reload(8)						       ninit-reload(8)



NAME
       ninit-relaod - replace running ninit with a new version

SYNOPSIS
       ninit-reload [options] [/path/to/ninit] [ninit_options]


DESCRIPTION
       ninit-reload is used to replace a running ninit with a new version.

       It  tries to retrieve the state information about running services from
       ninit, then have ninit replace itself with the new version and  restore
       the stored state information.


OPTIONS
       Unless  the -u option is given, ninit-reload assumes you are running in
       test mode.

       -v     verbose operation

       -u     update mode

       -m     dump ninit memory buffer to stdout

       -d     dump services data to stdout

       -R     service
	      remove service from active list

       -r     number
	      remove service with number from active list.  Example:
		   ninit-reload -v /sbin/ninit
		   ninit-reload -v -r 3 -R qmail -u /sbin/ninit

       -e     string
	      update ninit environ.  Example:
	      ninit-reload -v -e ABC=12 -e UVW -u /sbin/ninit
	      This updates the variable ABC and removes UVW.  See the  environ
	      after that with: tr '\000' '\012' < /proc/1/environ

       -E     file
	      update  ninit  environ  using  file.  The syntax for file is the
	      same as in the file environ for services.

       -a     number
	      reload ninit and calculate memory buffer	to  number  additional
	      services.	 Check the result with: ps axww.

       -t     time_diff
	      add time_diff seconds to each service.  Useful if you change the
	      time with hwclock.  time_diff can also be a negative number.

       -f     data_file
	      don't retrieve services from ninit.  Use this file instead.  For
	      example you can start:

		   ninit-reload -d > /tmp/ninit.data
		   ninit-reload -v -u -f /tmp/ninit.data /sbin/ninit



ENVIRON
       ninit-reload uses the variables NINIT_MEMORY and NINIT_HOME.



AUTHOR
       This manpage was partially written by Erich Schubert <[email protected]>
       for the Debian GNU/Linux operating system.


SEE ALSO
       ninit(8), nsvc(8)



				 Dec 28, 2009		       ninit-reload(8)