ab2d066a4d
snmp.service needs to read chassis serial number for one of its mibs. We save this value in state DB so that it is accessible from container. Signed-off-by: marian-pritsak <marianp@mellanox.com>
13 lines
322 B
Django/Jinja
13 lines
322 B
Django/Jinja
[Unit]
|
|
Description=SNMP container
|
|
Requires=database.service swss.service
|
|
After=database.service swss.service
|
|
|
|
[Service]
|
|
ExecStartPre=/usr/bin/{{docker_container_name}}.sh start
|
|
ExecStart=/usr/bin/{{docker_container_name}}.sh attach
|
|
ExecStop=/usr/bin/{{docker_container_name}}.sh stop
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|