pmgo icon indicating copy to clipboard operation
pmgo copied to clipboard

PMGO don't start when the system is rebooted

Open maurozapata opened this issue 6 years ago • 4 comments
trafficstars

I have an ubuntu server, I start my go application and it's fine, but when the system reboots, my application is disabled. I need to run pmgo list or another pmgo cmd to start deamon. Is this behavior correct? I am doing something wrong?

My code is in /home/ubuntu/go/src/github/myfolder I ran pmgo start github.com/path/to/main.go appname

Is work, but when reboot don't

Is the restart supported?

maurozapata avatar Apr 20 '19 19:04 maurozapata

Hi @maurozapata PMGO won't restart when system reboots. You can write bash cmd hooks to restart your applications when system reboot.

struCoder avatar Apr 22 '19 02:04 struCoder

crontab or cron manager @reboot ( sleep 90 ; [command to init] )

areliszxz avatar May 08 '19 20:05 areliszxz

Hey Can you please with what bash cmd hooks to write to restart my application at time of system restart.

virensinhads avatar Nov 18 '20 12:11 virensinhads

crontab -e add line: @reboot ( sleep 90 ; cd [dir your appp.go]; go run yourapp.go ) save and close

areliszxz avatar Nov 19 '20 18:11 areliszxz