1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2025-06-28 08:52:35 +02:00

Install Systemd service unit with debian package

This commit is contained in:
Alexandre Iooss
2020-09-14 15:58:35 +02:00
parent bcb6d2138b
commit 70257dfa7d
4 changed files with 4 additions and 14 deletions

2
debian/control vendored
View File

@ -10,7 +10,7 @@ X-Python3-Version: >= 3.6
Package: ghostream
Architecture: all
Multi-Arch: foreign
Depends: ${misc:Depends}, ${python3:Depends}
Depends: ${misc:Depends}, ${python3:Depends}, uwsgi-plugin-python3
Description: simple streaming server web interface
Gostream is a web interface that uses OvenMediaEngine and NGINX streaming
capabilities to build a simple and efficient streaming server.

23
debian/ghostream.service vendored Normal file
View File

@ -0,0 +1,23 @@
[Unit]
Description=Simple streaming server
After=syslog.target
[Service]
User=www-data
WorkingDirectory=/var/local/ghostream
Environment=FLASK_CONFIG="production"
Environment=LDAP_URI="ldap://127.0.0.1:389"
Environment=LDAP_USER_DN="cn=Utilisateurs,dc=crans,dc=org"
Environment=SITE_NAME="Crans Stream"
Environment=SITE_HOSTNAME="stream.crans.org"
Environment=FAVICON="https://www.crans.org/images/favicon.ico"
EnvironmentFile=-/etc/default/ghostream
ExecStart=/usr/bin/uwsgi --http-socket 127.0.0.1:8080 --master --plugin python3 --module ghostream:app --static-map /static=/var/local/ghostream/ghostream/static
Restart=on-failure
KillSignal=SIGQUIT
Type=notify
StandardError=syslog
NotifyAccess=all
[Install]
WantedBy=multi-user.target

2
debian/rules vendored
View File

@ -2,4 +2,4 @@
export DH_VERBOSE = 1
%:
dh $@ --with python3 --buildsystem=pybuild
dh $@ --with python3,systemd --buildsystem=pybuild