I have installed self-hosted ghost in ubuntu, but every time i reboot the server it’s wont to start, i have to start it manually. how to make ghost start @reboot crontab?
thank before.
I have installed self-hosted ghost in ubuntu, but every time i reboot the server it’s wont to start, i have to start it manually. how to make ghost start @reboot crontab?
thank before.
Ghost should start automatically with systemd
. You can execute sudo systemctl
, and look for a Ghost entry, e.g., ghost_yoursite.service, and then check status using sudo systemctl status ghost_yoursite.service
.
If the service doesn’t exist, run ghost setup systemd
.
i’ve done this by enable /etc/rc.local
sudo -H -u username /home/username/ghost-start.sh &> /dev/null
Thanks you for your help.