struCoder / pmgo

pmgo is a process manager for Golang applications.
MIT License
625 stars 65 forks source link

PMGO don't start when the system is rebooted #39

Open maurozapata opened 5 years ago

maurozapata commented 5 years ago

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?

struCoder commented 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.

areliszxz commented 5 years ago

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

virensinhads commented 3 years ago

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

areliszxz commented 3 years ago

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