Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exit 'Action' Without waiting for command to finish #229

Closed
sangeethnandakumar opened this issue Mar 5, 2023 · 2 comments
Closed

Exit 'Action' Without waiting for command to finish #229

sangeethnandakumar opened this issue Mar 5, 2023 · 2 comments

Comments

@sangeethnandakumar
Copy link

This is my action

- name: Refresh System
        uses: appleboy/ssh-action@master
        with:
          host: ***
          username: ***
          password: ***
          script: |
            pkill dotnet
            cd /home/root/pos.twileloop
            sudo service apache2 restart
            nohup dotnet Site.dll  

I want my site to run in the background by executing command using nohup.

The issue is, This action waits for the command to complete and that will never happen.
I don't want that, execute and exit. Is it possible?

@Ciel-azure
Copy link

Ciel-azure commented Mar 10, 2023

same here

solved 👍
#67

@appleboy
Copy link
Owner

duplicated of #67

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants