diff --git a/router-tools.service b/router-tools.service new file mode 100644 index 0000000..fe9ca66 --- /dev/null +++ b/router-tools.service @@ -0,0 +1,15 @@ +[Unit] +Description=Router tools service +After=network.target + +[Service] +ExecStart=/usr/local/bin/gunicorn -w 4 -b 0.0.0.0:5000 app:app +WorkingDirectory=/opt/Router-tools +User=root +Restart=always +StandardOutput=syslog +StandardError=syslog +SyslogIdentifier=router-tools + +[Install] +WantedBy=multi-user.target \ No newline at end of file