I have multiple instances of ghost 3.x running on an 18.04 Ubuntu server and I’m looking to rename the systemd services without ghost-cli breaking. I’ve compiled a list of steps that I hope someone who understands the innards of ghost-cli can validate will work:
- sudo systemctl stop
- Edit ~/.ghost/config and change the names in the JSON.
- Edit the .ghost-cli file in working directory of each ghost instance with the same names.
- Rename the file in /system/files/.service to the new name.
- Rename the links in /etc/systemd/system to match what you did above.
- sudo systemctl reload-daemon
- systemctl start for each newly named ghost instance
Why am I doing this?
- I’m tired of typing: systemctl stop ghost_blogname-tld-com
- One of them is named funky because I didn’t have the config url setup properly
Did I miss anything and/or is there an easier way to do this? TIA!