#!/bin/bash #simple script to daemonize the database #to kill use kill $(cat db.pid) ./pgweb_linux_amd64 -s --bookmark=investorsdb --bind="192.168.9.70" > db.log & echo $! > db.pid disown