Correct and clean up init.d script
authorPetter Reinholdtsen <pere@hungry.com>
Mon, 25 Jan 2016 20:04:17 +0000 (21:04 +0100)
committerGuido Günther <agx@sigxcpu.org>
Wed, 27 Jan 2016 17:19:21 +0000 (18:19 +0100)
commit4ad345ea637d6a73666e7830bb8507ef6b06aaac
tree435dccd55fd907d9fd0224daff1089d1e9065bc1
parent786e3405b1765d59a7d5bc39755d53b1e71f1ac1
Correct and clean up init.d script

Based on the changes from chrysn@fsfe.org, I had a closer look at the
init.d script and propose to change it like this:

 - Use correct path to program (/usr/bin, not /usr/sbin).
 - Stop running as root, run as user calypso, and move pidfile to a
   place writable by this user.
 - By default, only listen on 127.0.0.1.
 - Remove unused / disabled code.
 - Change indentation from spaces and tabs to 4 spaces.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
calypso-init