Skip to content

Commit 899eb12

Browse files
committed
gridnit.conf: Fix the sample configuration
1 parent 944766c commit 899eb12

File tree

1 file changed

+30
-48
lines changed

1 file changed

+30
-48
lines changed

gridinit.conf

Lines changed: 30 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
[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
48

59
# Default:uid : STRING | INTEGER
610
# 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.
812
uid=root
913

1014
# Default:gid : STRING | INTEGER
1115
# 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.
1317
gid=root
1418

1519
# Default:include : PATTERN
@@ -43,59 +47,37 @@ limit.core_size=-1
4347
limit.max_files=8192
4448

4549
# 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
4751
# Default value : 1024
4852
limit.stack_size=1024
4953

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-
56-
[service.key0]
57-
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
64-
65-
# command : STRING
66-
# Mandatory Directive
67-
command=gridinit_testcmd /tmp/key0.out 5
68-
69-
# 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-
enabled=true
7454

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.
55+
[service.key-down]
56+
group=NS0,local
57+
command=/bin/sleep 15
58+
enabled=true
7959
on_die=respawn
80-
81-
# env.STRING : STRING
82-
#
8360
env.PATH=/bin:/usr/bin:/usr/local/bin
8461
env.LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib
62+
start_at_boot=false
8563

86-
# uid : STRING | INTEGER
87-
# Ignored if the gridinit uid is not 0
88-
uid=root
8964

90-
# gid : STRING | INTEGER
91-
# Ignored if the gridinit uid is not 0
92-
gid=root
65+
[service.key-disabled]
66+
group=NS0,local
67+
command=/bin/sleep 15
68+
enabled=false
69+
on_die=respawn
70+
env.PATH=/bin:/usr/bin:/usr/local/bin
71+
env.LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib
72+
start_at_boot=true
9373

94-
# start_at_boot : BOOL
95-
# Optional, default: true
96-
# Tells if the service has to be started when it is met for the first
97-
# time (i.e. not changed if the service is refreshed after a configuration
98-
# reload). 'start_at_boot' is overriden by 'enable' or CLI 'start' and
99-
# 'stop' commands.
74+
75+
[service.key1]
76+
group=NS1,local
77+
command=/bin/sleep 25
78+
enabled=true
79+
on_die=respawn
80+
env.PATH=/bin:/usr/bin:/usr/local/bin
81+
env.LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib
10082
start_at_boot=true
10183

0 commit comments

Comments
 (0)