File: unix_service.rst

package info (click to toggle)
simplemonitor 1.15.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,520 kB
  • sloc: python: 8,725; sh: 258; makefile: 74; javascript: 69
file content (27 lines) | stat: -rw-r--r-- 674 bytes parent folder | download | duplicates (2)
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
unix_service - generic UNIX service
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Generic UNIX service check, by running ``service ... status``.

.. confval:: service

    :type: string
    :required: true

    the name of the service to check

.. confval:: state

    :type: string
    :required: false
    :default: ``running``

    the state of the service; either ``running`` (status command exits 0) or ``stopped`` (status command exits 1).

.. confval:: jail

    :type: string
    :required: false
    :default: none

    the FreeBSD jail to look for the service in; translates to the ``-j`` option to the ``service`` command (so may work on other OSes which understand that)