# How to let grin wallet listen/owner\_api run in the server background?

**URL:** <https://forum.grin.mw/t/how-to-let-grin-wallet-listen-owner-api-run-in-the-server-background/4301>\
**Category:** Tech Support\
**Created:** [March 1, 2019, 7:29am UTC](https://forum.grin.mw/t/how-to-let-grin-wallet-listen-owner-api-run-in-the-server-background/4301 "2019-03-01T07:29:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nick](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/nick/32/1752_2.png) [@nick](https://forum.grin.mw/u/nick)\
**Post date:** [March 1, 2019, 7:29am UTC](https://forum.grin.mw/t/how-to-let-grin-wallet-listen-owner-api-run-in-the-server-background/4301/1 "2019-03-01T07:29:17Z")

</div>

I turned on SSH and after running grin wallet listen / owner\_api for a while, it was always disconnected.  
I donot know if there is a command to let grin miner run in the server background.

Important: you need to enter your password to perform grin wallet listen/owner\_api

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/grin/original/2X/6/619d998a0253913337aa4f8a12c9a27f57c1fdc4.png)

---

<div class="post-metadata">

**Author:** ![futurerheza](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@futurerheza](https://forum.grin.mw/u/futurerheza)\
**Post date:** [March 1, 2019, 8:20am UTC](https://forum.grin.mw/t/how-to-let-grin-wallet-listen-owner-api-run-in-the-server-background/4301/2 "2019-03-01T08:20:26Z")

</div>

use screen,  
so “screen ./grin wallet listen”

---

<div class="post-metadata">

**Author:** ![cfleeac](https://avatars.discourse-cdn.com/v4/letter/c/5daacb/32.png) [@cfleeac](https://forum.grin.mw/u/cfleeac)\
**Post date:** [March 1, 2019, 10:51am UTC](https://forum.grin.mw/t/how-to-let-grin-wallet-listen-owner-api-run-in-the-server-background/4301/3 "2019-03-01T10:51:00Z")

</div>

You can use tmux or systemd script to control your wallet listen/owner\_api.  
Here is a systemd script sample for grin wallet:

```
[Unit]
Description=Grin Wallet
After=network-online.target

[Service]
User=<Your username of running grin node and wallet>
ExecStart=grin wallet -p '<you password>' listen
Type=simple

[Install]
WantedBy=multi-user.target
```
