diff --git a/bgp-api.service b/bgp-api.service new file mode 100644 index 0000000..d20918f --- /dev/null +++ b/bgp-api.service @@ -0,0 +1,15 @@ +[Unit] +Description=BGP api service +After=network.target + +[Service] +ExecStart=/usr/bin/python3 /opt/bgp-api/app.py +WorkingDirectory/opt/createvm-web +User=root +Restart=always +StandardOutput=syslog +StandardError=syslog +SyslogIdentifier=bgp-api + +[Install] +WantedBy=multi-user.target \ No newline at end of file