[hipl-dev] more advice on systemctl - get the comments out!

  • From: Robert Moskowitz <rgm@xxxxxxxxxxxxxxx>
  • To: hipl-dev@xxxxxxxxxxxxx
  • Date: Thu, 17 Apr 2014 15:47:58 -0400

I have been trying to figure out how to get hipfw to start up in a reasonable period of time with systemctl as hipfw is right now. SO I got some interesting advice over on the Fedora list:



On 04/17/2014 02:55 PM, Tom Horsley wrote:
On Thu, 17 Apr 2014 14:07:33 -0400
Robert Moskowitz wrote:

This takes a LONG time until the failed message appears. 'ps axu|grep
hip' shows the service is running. but status shows:
I suspect some of the comments in the init.d file are confusing it.
I seem to recall we have a similar problem where there was some
old comment in the header of the script like:

# pidfile: /var/run/yaddayadda

(I just invented that, but it was something like that) and it
turned out systemd was trying to be "helpful" and parsed
the comment to detect the /var/run file it "just knew"
would be created. Deleting the comment completely made it
stop looking and it started fine after that.

So I deleted all comment lines that were not just spaces and now hipfw starts right up! Well still the error messages reported with 'systemctl status', but it seems to be working. And no waiting some 5 minutes for the prompt to come back.

Of course I can't test this on hipd right now, as hipd is not working after the lastest yum update.



Other related posts:

  • » [hipl-dev] more advice on systemctl - get the comments out! - Robert Moskowitz