188 be used:
189
190
191 example% svcprop -c -p general/enabled system/cron:default
192 true
193
194
195
196 Example 3 Displaying All Properties in a Property Group
197
198
199 On a default installation of Solaris, the following example displays
200 all properties in the general property group of each instance of the
201 network/ntp service:
202
203
204 example% svcprop -p general ntp
205 general/package astring SUNWntpr
206 general/enabled boolean true
207 general/entity_stability astring Unstable
208 general/single_instance boolean true
209
210
211
212 Example 4 Testing the Existence of a Property
213
214
215 The following example tests the existence of the general/enabled
216 property for all instances of service identity:
217
218
219 example% svcprop -q -p general/enabled identity:
220 example% echo $?
221 0
222
223
224
225 Example 5 Waiting for Property Change
226
227
228 The following example waits for the sendmail instance to change state.
276
277 0
278 Successful completion.
279
280
281 1
282 An error occurred.
283
284
285 2
286 Invalid command line options were specified.
287
288
289 SEE ALSO
290 svcs(1), inetd(1M), svcadm(1M), svccfg(1M), svc.startd(1M),
291 service_bundle(4), attributes(5), fnmatch(5), smf(5), smf_method(5),
292 smf_security(5), zones(5)
293
294
295
296 April 9, 2016 SVCPROP(1)
|
188 be used:
189
190
191 example% svcprop -c -p general/enabled system/cron:default
192 true
193
194
195
196 Example 3 Displaying All Properties in a Property Group
197
198
199 On a default installation of Solaris, the following example displays
200 all properties in the general property group of each instance of the
201 network/ntp service:
202
203
204 example% svcprop -p general ntp
205 general/package astring SUNWntpr
206 general/enabled boolean true
207 general/entity_stability astring Unstable
208
209
210
211 Example 4 Testing the Existence of a Property
212
213
214 The following example tests the existence of the general/enabled
215 property for all instances of service identity:
216
217
218 example% svcprop -q -p general/enabled identity:
219 example% echo $?
220 0
221
222
223
224 Example 5 Waiting for Property Change
225
226
227 The following example waits for the sendmail instance to change state.
275
276 0
277 Successful completion.
278
279
280 1
281 An error occurred.
282
283
284 2
285 Invalid command line options were specified.
286
287
288 SEE ALSO
289 svcs(1), inetd(1M), svcadm(1M), svccfg(1M), svc.startd(1M),
290 service_bundle(4), attributes(5), fnmatch(5), smf(5), smf_method(5),
291 smf_security(5), zones(5)
292
293
294
295 December 11, 2019 SVCPROP(1)
|