First commit

This commit is contained in:
Wim Pomp
2022-08-30 13:04:14 +02:00
parent 359f330f11
commit e6acbd7c7f
15 changed files with 308 additions and 0 deletions

17
matlab.service Normal file
View File

@@ -0,0 +1,17 @@
[Unit]
Description=Matlab web server
After=network-online.target firewalld.service
Wants=network-online.target
[Service]
User=matlab-user
Type=simple
ExecStart=/usr/local/bin/gunicorn --bind unix:/tmp/matlabhub.sock matlabhub.wsgi:application
ExecStop=/bin/kill -s STOP $MAINPID
ExecReload=/bin/kill -s HUP $MAINPID
TimeoutSec=0
RestartSec=2
Restart=always
[Install]
WantedBy=multi-user.target