config/sysinv/cert-alarm/files/cert-alarm.service
Sabeel Ansari 0fa425fd94 Add cert-alarm service
This is a new service being added to alarm expiring certificates.
The service will run on all active controllers.

Initial commit is just the skeleton structure. Tested by installing
an ISO image and new service comes up under 'smc service-list'.

Story: 2008946
Task: 42852

Depends-on: https://review.opendev.org/c/starlingx/ha/+/801118
Depends-on: https://review.opendev.org/c/starlingx/stx-puppet/+/801117

Signed-off-by: Sabeel Ansari <Sabeel.Ansari@windriver.com>
Change-Id: I8ee12db6903bd2d29230e4adf9f1823b3d4655ee
2021-07-22 08:29:23 -04:00

16 lines
373 B
Desktop File

[Unit]
Description=Certificate Alarm
After=network-online.target syslog-ng.service config.service
[Service]
Type=simple
RemainAfterExit=yes
User=root
Environment=OCF_ROOT=/usr/lib/ocf
ExecStart=/usr/lib/ocf/resource.d/platform/cert-alarm start
ExecStop=/usr/lib/ocf/resource.d/platform/cert-alarm stop
PIDFile=/var/run/cert-alarm.pid
[Install]
WantedBy=multi-user.target