Skip to content
  • Johannes Heimansberg's avatar
    testing/3proxy: fix init script and use supervise-daemon instead of start-stop-daemon · 2c8eb6cc
    Johannes Heimansberg authored and Leo's avatar Leo committed
    There are a couple of issues with the start-stop-daemon call in the init script, that
    prevent it from working with 3proxy 0.8.13:
    - 3proxy does not understand the --pidfile and --user options that are passed to it
      by start-stop-daemon (are they meant for start-stop-daemon instead?)
    - Since 3proxy does not write its own pidfile by default, start-stop-daemon would
      need the -m option, so it would create the .pid file; instead of doing that
      supervise-daemon is now used instead, which avoids PID files altogether
    - Both start-stop-daemon and supervise-daemon get confused when passing a user name
      starting with a number via the --user option and interpret it as a numeric UID; to
      avoid this, the UID/GID of the "3proxy" user/group are now fetched with
      ``id -u``/``id -g`` and then the correct numeric UID and GID are passed
    2c8eb6cc