|
1 | 1 | [Default]
|
2 |
| -#listen=/var/run/gridinit.sock |
3 |
| -pidfile=/var/run/gridinit.pid |
| 2 | +# Default:listen GRIDINIT_SOCK_PATH |
| 3 | +listen=/tmp/gridinit.sock |
| 4 | + |
| 5 | +# No default value |
| 6 | +# Specify a path to let gridinti write its pid file. |
| 7 | +pidfile=/tmp/gridinit.pid |
4 | 8 |
|
5 | 9 | # Default:uid : STRING | INTEGER
|
6 | 10 | # The default user ID to be applied to services. You can use even
|
7 |
| -# a logical name or its ID. |
| 11 | +# a logical name or its ID. |
8 | 12 | uid=root
|
9 | 13 |
|
10 | 14 | # Default:gid : STRING | INTEGER
|
11 | 15 | # The default group ID to be applied to services. You can use even
|
12 |
| -# a logical name or its ID. |
| 16 | +# a logical name or its ID. |
13 | 17 | gid=root
|
14 | 18 |
|
15 | 19 | # Default:include : PATTERN
|
@@ -43,59 +47,64 @@ limit.core_size=-1
|
43 | 47 | limit.max_files=8192
|
44 | 48 |
|
45 | 49 | # Default:limit.stack_size : INTEGER
|
46 |
| -# Default maximal thread stack size in kilobytes for each |
| 50 | +# Default maximal thread stack size in kilobytes for each |
47 | 51 | # Default value : 1024
|
48 | 52 | limit.stack_size=1024
|
49 | 53 |
|
50 |
| -# Default:groups_only : STRING[,STRING]... |
51 |
| -# Set this variable if you want to filter the services. Only those |
52 |
| -# matching one of the given groups will be considered by CLI |
53 |
| -# start/stop commands |
54 |
| -groups_only=NS-common,NS-stgdev |
55 | 54 |
|
56 |
| -[service.key0] |
| 55 | +[service.key-down] |
| 56 | +# group : STRING [ "," STRING ]... |
| 57 | +# A coma-separated sequence of tokens. Each tokens is the name of a |
| 58 | +# group the current service belongs to. It is usefull to have the commands |
| 59 | +# target many services at once, when specifying @groups instead of services |
| 60 | +# IDs. |
| 61 | +group=NS0,local |
| 62 | + |
| 63 | +# The command to be executed. |
| 64 | +command=/bin/sleep 15 |
57 | 65 |
|
58 |
| -# group : STRING |
59 |
| -# Optional configuration directive setting an arbitrary tag on the |
60 |
| -# service. This tag allows start/stop CLI commands to work on the current |
61 |
| -# service when an argument with the form '@STRING' is present and STRING |
62 |
| -# matches the current service's group. |
63 |
| -group=NS0 |
| 66 | +# Supersedes the default env variale with the same key. |
| 67 | +env.PATH=/bin:/usr/bin:/usr/local/bin |
64 | 68 |
|
65 |
| -# command : STRING |
66 |
| -# Mandatory Directive |
67 |
| -command=gridinit_testcmd /tmp/key0.out 5 |
| 69 | +# Supersedes the default env variale with the same key. |
| 70 | +env.LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib |
68 | 71 |
|
69 | 72 | # enabled : BOOL
|
70 |
| -# Optional directive telling if the service is allowed to start. |
71 |
| -# A disabled service cannot be started even if start CLI commands |
72 |
| -# are sent. |
| 73 | +# Tells gridinit to consider (or not) that section in the configuration. |
73 | 74 | enabled=true
|
74 | 75 |
|
75 |
| -# on_die : 'cry' | 'respawn' |
76 |
| -# Optional and dangerous directive telling what to do with the whole |
77 |
| -# gridinit when the current service dies, whatever the normality of |
78 |
| -# the death. |
| 76 | +# on_die : "respawn" | "cry" |
| 77 | +# Tells what to do when the child dies. |
| 78 | +# - "respawn": it will be respawn N times (after N attempts, it will be |
| 79 | +# considered BROKEN and it will have to be repaired. |
| 80 | +# - "cry": an alert will be logged, and that's it. |
79 | 81 | on_die=respawn
|
80 | 82 |
|
81 |
| -# env.STRING : STRING |
82 |
| -# |
83 |
| -env.PATH=/bin:/usr/bin:/usr/local/bin |
84 |
| -env.LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib |
85 |
| - |
86 |
| -# uid : STRING | INTEGER |
87 |
| -# Ignored if the gridinit uid is not 0 |
88 |
| -uid=root |
89 |
| - |
90 |
| -# gid : STRING | INTEGER |
91 |
| -# Ignored if the gridinit uid is not 0 |
92 |
| -gid=root |
93 |
| - |
94 | 83 | # start_at_boot : BOOL
|
95 | 84 | # Optional, default: true
|
96 | 85 | # Tells if the service has to be started when it is met for the first
|
97 | 86 | # time (i.e. not changed if the service is refreshed after a configuration
|
98 | 87 | # reload). 'start_at_boot' is overriden by 'enable' or CLI 'start' and
|
99 | 88 | # 'stop' commands.
|
| 89 | +start_at_boot=false |
| 90 | + |
| 91 | + |
| 92 | +[service.key-disabled] |
| 93 | +group=NS0,local |
| 94 | +command=/bin/sleep 15 |
| 95 | +enabled=false |
| 96 | +on_die=respawn |
| 97 | +env.PATH=/bin:/usr/bin:/usr/local/bin |
| 98 | +env.LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib |
| 99 | +start_at_boot=true |
| 100 | + |
| 101 | + |
| 102 | +[service.key1] |
| 103 | +group=NS1,local |
| 104 | +command=/bin/sleep 25 |
| 105 | +enabled=true |
| 106 | +on_die=respawn |
| 107 | +env.PATH=/bin:/usr/bin:/usr/local/bin |
| 108 | +env.LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib |
100 | 109 | start_at_boot=true
|
101 | 110 |
|
0 commit comments