# Running Rasa with socketio without an activate terminal!

**URL:** <https://forum.rasa.com/t/running-rasa-with-socketio-without-an-activate-terminal/45657>\
**Category:** Rasa Open Source\
**Created:** [July 12, 2021, 4:21pm UTC](https://forum.rasa.com/t/running-rasa-with-socketio-without-an-activate-terminal/45657 "2021-07-12T16:21:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aryan192002](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@aryan192002](https://forum.rasa.com/u/aryan192002)\
**Post date:** [July 12, 2021, 4:21pm UTC](https://forum.rasa.com/t/running-rasa-with-socketio-without-an-activate-terminal/45657/1 "2021-07-12T16:21:44Z")

</div>

hello there everyone, so i have bought a digital ocean droplet for testing purposes and have installed rasa on it. i connect to it via my terminal through ssh. everything is fine. i can run rasa run -m models --enable-api --cors “\*” with no issues. it successfully runs the chat (Chatroom.js) on the droplet ip address which i use on my local server for testing further with ui and all.

issue is, droplets are 24 hours active but i cant keep the terminal which i used to connect to it and ran “rasa run -m models…” for 24 hours. once terminal is terminated, rasa (socketio) stops on the droplet as well .

i researched a bit and found we can run rasa as service and even have the code with steps - First, you have to create a service file in /etc/systemd/system/

`nano /etc/systemd/system/rasa-core.service`

```auto
[Unit]
Description=Rasa-Core
After=multi-user.target
[Service]
Type=simple
WorkingDirectory=<path-to-rasa-project-directory>
ExecStart=<path-to-python-bin>/bin/python3 -m rasa run --cors '*' --model <path-to-rasa-project-directory>/models/ --endpoints <path-to-rasa-project-directory>/endpoints.yml --credentials <path-to-rasa-project-directory>/credentials.yml
User=root
Group=daemon

```

Then run: **systemctl daemon-reload** Start service: **service rasa-core start** Check Status: **service rasa-core status**

i tried it but got something like no working directory found, so i assume i am doing something wrong with the directory. please help me out.

by the way, my directory where is stored it is literally default, like cd “rasabot” opens the directory.

thanks

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [July 13, 2021, 7:42pm UTC](https://forum.rasa.com/t/running-rasa-with-socketio-without-an-activate-terminal/45657/2 "2021-07-13T19:42:20Z")

</div>

@aryan192002 What is your actual error?

---

<div class="post-metadata">

**Author:** ![aryan192002](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@aryan192002](https://forum.rasa.com/u/aryan192002)\
**Post date:** [July 13, 2021, 7:58pm UTC](https://forum.rasa.com/t/running-rasa-with-socketio-without-an-activate-terminal/45657/3 "2021-07-13T19:58:45Z")

</div>

i cant run rasa as a service, have to run it on an active terminal…which costs maintenance

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [July 13, 2021, 7:59pm UTC](https://forum.rasa.com/t/running-rasa-with-socketio-without-an-activate-terminal/45657/4 "2021-07-13T19:59:43Z")

</div>

@aryan192002 Where you trying to deploy? @aryan192002 You can use docker or docker-compose to run the rasa.
