Skip to content
Snippets Groups Projects
Verified Commit 328e7e94 authored by David Hoese's avatar David Hoese
Browse files

Add initial systemd configs

parent ab360163
Branches
No related tags found
No related merge requests found
[Unit]
Description=MetObs Data and File API (/opt/metobs/metobs_api)
Requires=metobs_api.socket
After=network.target
[Service]
PIDFile=/run/metobs_api/pid
User=daemon
Group=metobsgrp
RuntimeDirectory=metobs_api
WorkingDirectory=/tmp
ExecStart=/opt/metobs/metobs_api/bin/gunicorn --pid /run/metobs_api/pid \
--bind unix:/run/metobs_api/socket --workers 8 metobsapi.server:app
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID
PrivateTmp=true
Restart=always
[Install]
WantedBy=multi-user.target
\ No newline at end of file
[Unit]
Description=Socket used by the MetObs API application
[Socket]
ListenStream=8090
[Install]
WantedBy=sockets.target
\ No newline at end of file
d /run/metobs_api 0755 daemon metobsgrp -
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment