Georg Pfuetzenreuter
9501cbf678
- setup.py to install the library as a Python package - systemd services and target for running as a daemon - sysconfig file providing environment variables to the application Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
31 lines
642 B
Desktop File
31 lines
642 B
Desktop File
# This file is shipped as part of the Takahe package.
|
|
# Author: Georg Pfuetzenreuter <mail+rpm@georg-pfuetzenreuter.net>
|
|
|
|
[Unit]
|
|
Description=Takahe
|
|
After=postgresql.service
|
|
Wants=postgresql.service
|
|
PartOf=%N.target
|
|
|
|
[Service]
|
|
User=_%N
|
|
Group=_%N
|
|
|
|
EnvironmentFile=/etc/sysconfig/%N
|
|
ExecStart=/usr/bin/gunicorn %N.%N.wsgi:application -b "$BIND"
|
|
|
|
PrivateDevices=yes
|
|
PrivateTmp=yes
|
|
ProtectControlGroups=yes
|
|
ProtectHome=yes
|
|
ProtectKernelLogs=yes
|
|
ProtectSystem=strict
|
|
RestrictAddressFamilies=AF_INET6 AF_INET AF_UNIX
|
|
SystemCallArchitectures=native
|
|
SystemCallFilter=@system-service
|
|
|
|
ReadWritePaths=/srv/%N/media
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|