2019-03-21 11:19:28 -04:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
2020-02-08 19:52:15 -05:00
|
|
|
# pvcapid.py - API daemon startup stub
|
2019-03-21 11:19:28 -04:00
|
|
|
# Part of the Parallel Virtual Cluster (PVC) system
|
|
|
|
#
|
2023-12-29 11:16:59 -05:00
|
|
|
# Copyright (C) 2018-2024 Joshua M. Boniface <joshua@boniface.me>
|
2019-03-21 11:19:28 -04:00
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
2021-03-25 16:57:17 -04:00
|
|
|
# the Free Software Foundation, version 3.
|
2019-03-21 11:19:28 -04:00
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
#
|
|
|
|
###############################################################################
|
|
|
|
|
2024-09-09 10:52:44 -04:00
|
|
|
import sys
|
|
|
|
from os import path
|
|
|
|
|
|
|
|
# Ensure current directory (/usr/share/pvc) is in the system path for Gunicorn
|
|
|
|
current_dir = path.dirname(path.abspath(__file__))
|
|
|
|
sys.path.append(current_dir)
|
|
|
|
|
2020-11-07 13:11:03 -05:00
|
|
|
import pvcapid.Daemon # noqa: F401
|
2021-05-30 00:18:04 -04:00
|
|
|
|
|
|
|
pvcapid.Daemon.entrypoint()
|