add cbc_lifecycle service systemd support

Now cbc_attach service installed by default and thus we can enable
cbc_lifecycle service too.

Signed-off-by: Alek Du <alek.du@intel.com>
Reviewed-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
Alek Du
2018-05-25 09:08:41 +08:00
committed by lijinxia
parent c4bd0db1ca
commit cbb692d910
2 changed files with 15 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
[Unit]
Description=CBC lifecycle service
[Service]
Type=simple
ExecStart=/usr/bin/cbc_lifecycle
Restart=always
Type=notify
ExecStop=/usr/bin/killall -s TERM cbc_lifecycle
[Install]
WantedBy=multi-user.target