1. make service file
sudo vim /etc/systemd/system/superset.service
fill this file with,
#superset.service
###########
[Unit]
Description=Visualization platform by Chrono
After=multi-user.target
[Service]
Type=simple
User=YOUR_USERNAME
ExecStart=/etc/init.d/superset
[Install]
WantedBy=default.target
2. make script
sudo vim /etc/init.d/superset
fill this file with,
#!/bin/bash
source /your/virtualenv/path/bin/activate
/your/virtualenv/path/bin/superset runserver
make script to executable
sudo chmod +x /etc/init.d/superset
3. update systemctl
sudo systemctl daemon-reload
4. start/stop/restart/status
sudo systemctl start superset
sudo systemctl stop superset
sudo systemctl restart superset
sudo systemctl status superset
'서버 교양' 카테고리의 다른 글
filebeat -> logstash -> elasticsearch(AWS), filebeat timeout connection error (0) | 2017.12.19 |
---|---|
How to rename metric column name in superset (0) | 2017.11.09 |
How to make game server log system (0) | 2017.11.03 |
Mysql visualization tool(그래프 툴) Super set! (0) | 2017.11.03 |
filebeat traceabck multiline config (0) | 2017.10.16 |