Ghost-Config icon indicating copy to clipboard operation
Ghost-Config copied to clipboard

init.d/ghost is a Debian and/or Ubuntu specific

Open mattwillsher opened this issue 12 years ago • 3 comments

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?

mattwillsher avatar Nov 28 '13 22:11 mattwillsher

@bastilian Is the example init.d script for Ubuntu or Debian or both?

mattwillsher avatar Nov 30 '13 19:11 mattwillsher

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?

bastilian avatar Nov 30 '13 21:11 bastilian

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.

mattwillsher avatar Nov 30 '13 22:11 mattwillsher