--- /dev/null
+#
+## Copyright (C) 2019 Wind River Systems, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+pkg_postinst_${PN}-core () {
+ # several scritps assume /bin/python is available
+ ln -sf ${bindir}/python $D${base_bindir}/python
+}
+
+
+
RuntimeDirectory=barbican
RuntimeDirectoryMode=770
ExecStart=/usr/bin/gunicorn --pid /run/barbican/pid -c /etc/barbican/gunicorn-config.py --paste /etc/barbican/barbican-api-paste.ini
-ExecReload=/usr/bin/kill -s HUP $MAINPID
-ExecStop=/usr/bin/kill -s TERM $MAINPID
+ExecReload=/bin/kill -s HUP $MAINPID
+ExecStop=/bin/kill -s TERM $MAINPID
StandardError=syslog
Restart=on-failure
install -m 0755 -d ${D}/${datadir}/starlingx/barbican/
install -m 0755 -d ${D}/${datadir}/starlingx/barbican/backup/
install -m 0755 -d ${D}/${systemd_system_unitdir}/
+ install -m 0755 -d ${D}/var/log/barbican/
install -m 0644 ${WORKDIR}/barbican.conf ${D}/${datadir}/starlingx/barbican
install -m 0644 ${WORKDIR}/barbican-api-paste.ini ${D}/${datadir}/starlingx/barbican
install -m 0644 ${WORKDIR}/gunicorn-config.py ${D}/${datadir}/starlingx/barbican
FILES_${PN} = " \
${datadir}/starlingx/barbican/ \
${systemd_system_unitdir}/openstack-barbican-api.service \
+ /var/log/barbican \
"