morshu-server: add proper start script and systemd service
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=Morshu TTS Server
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=owen
|
||||
WorkingDirectory=/home/owen/Desktop/ttstoy/morshu-server
|
||||
Environment=PORT=3002
|
||||
ExecStart=/usr/bin/python3 /home/owen/Desktop/ttstoy/morshu-server/server.py
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user