Ghost-Config
Ghost-Config copied to clipboard
init.d/ghost is a Debian and/or Ubuntu specific
The script in init.d/ghost is very much Debian/Ubuntu specific and won't work as is on Red Hat based distributions. Perhaps it should be named to make that clear?
@bastilian Is the example init.d script for Ubuntu or Debian or both?
i did test it on ubuntu, but it should work for debian as well. and yes if it probably should be stated that it is made for these.
I will test it on debian as well and rename it or put it into folders for these two.
@mattwillsher what would the necessary changes be to make it work on red hat?
I created a rather quick n' dirty init file for Red Hat as part of the rpm packaging. Unfortunately, it relies on a non-default tool, daemonize, to manage Ghost as Red Hat doesn't support systemd yet (and it will be systemd, not upstart, in Fedora & Enterprise Linux) This is fine for the package as daemonize gets install as a dependency, but is less ideal for npm/source installs. That said, I'm trying to get RPM to the point it's as the defacto install for Red Hat/CentOS etc.
Fedora does support systemd and I'd be happy to see an init file make use of it. I can incorporate that in the package, too, as a conditional include.