Changeset - 3e8008b1e687
[Not reviewed]
default
0 0 2
Dennis Fink - 11 years ago 2014-04-16 01:40:48
dennis.fink@c3l.lu
Added scripty for systemd
2 files changed with 15 insertions and 0 deletions:
0 comments (0 inline, 0 general)
Scripts/ennstatus.service
Show inline comments
 
new file 100644
 
[Unit]
 
Description=Ennstatus
 
After=network.target
 

	
 
[Service]
 
Type=oneshot
 
ExecStart=/opt/ennstatus/start.sh
 
RemainAfterExit=yes
 

	
 
[Install]
 
WantedBy=multi-user.target
Scripts/start_service_systemd.sh
Show inline comments
 
new file 100644
 
#!/bin/bash
 

	
 
source /opt/ennstatus/bin/activate
 
gunicorn -w 4 --chdir /srv/http/enn/ -D -p /tmp/ennstatus.pid -u http -g http -e ENNSTATUS_SETTINGS=/srv/http/enn/config.py -y 127.0.0.1 ennstatus:app
0 comments (0 inline, 0 general)