File: ocf.ra%40.service

package info (click to toggle)
drbd-utils 9.22.0-1.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,768 kB
  • sloc: ansic: 48,975; xml: 11,553; cpp: 9,843; sh: 4,568; makefile: 1,029; perl: 353; ruby: 43
file content (26 lines) | stat: -rw-r--r-- 828 bytes parent folder | download | duplicates (3)
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
[Unit]
Description=Wrapper for OCF Resource Agent Instance: %I

[Service]
Type=notify
Restart=always

Environment=OCF_ROOT=/usr/lib/ocf
Environment=OCF_RESOURCE_INSTANCE=%i
Environment=monitor_inverval=30

# To be instantiated with an override.conf
# containing AGENT and OCF_RESKEY_* parameters:
#   [Service]
#   Environment=AGENT=/usr/lib/ocf/resource.d/heartbeat/IPaddr2
#    ...
#   Environment=OCF_RESKEY_ip=1.2.3.4
#   Environment=OCF_RESKEY_cidr_netmask=28
#   Environment=OCF_RESKEY_nic=eth0
#    ...

# Only the first argument is used by the wrapper,
# the %n is just to identify which is which in the process list.
# All parameterization is done via Environment= in per instance override.conf
ExecStart=/lib/drbd/scripts/ocf.ra.wrapper.sh start-and-monitor %n
ExecStopPost=/lib/drbd/scripts/ocf.ra.wrapper.sh stop %n