Skip to content

Run in detached mode πŸ”—Β #169

@jessicafarias

Description

@jessicafarias

In order to avoid to keep the terminal open and to have multiple paths listening.
I was wondering if you can implement a -d option to keep run and listening witouth having a terminal open (in detached mode or in the background from terminal).
And also a way to check all running process in smee such as docker does with -d and ps.
where: d=detach, ps=process status, rm [prcess_id] = remove/stop process

user@user:~$ smee -d
Forwarding https://smee.io/1PUc3ipJCAKIMTaR to http://127.0.0.1:3000/
Connected https://smee.io/1PUc3ipJCAKIMTaR
Detached

user@user:~$ smee ps
ID           URL                                     PATH      PORT
IDNAME       https://smee.io/1PUc3ipJCAKIMTaR         /        3000

OR:

user@user:~$ smee -d -u https://smee.io/new -P /custom_path/ -p 8080
Forwarding https://smee.io/new to http://127.0.0.1:8080/custom_path
Connected https://smee.io/new
Detached

user@user:~$ smee ps
ID             URL                                 PATH                PORT
NEWIDNAME      https://smee.io/new                 /custom_path        8080
IDNAME         https://smee.io/1PUc3ipJCAKIMTaR    /custom_path        8080

user@user:~$ smee rm NEWIDNAME
Stoping https://smee.io/new
Removed

I tried to use daemon on unix system to run it on background and I found it works for just one smee call. It doesn't work for more than 1 smee call because the smee stay alive when it displays "Connected".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions