Open maurozapata opened 5 years ago
Hi @maurozapata PMGO won't restart when system reboots. You can write bash cmd hooks to restart your applications when system reboot.
crontab or cron manager @reboot ( sleep 90 ; [command to init] )
Hey Can you please with what bash cmd hooks to write to restart my application at time of system restart.
crontab -e add line: @reboot ( sleep 90 ; cd [dir your appp.go]; go run yourapp.go ) save and close
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?