Ben, I led you slightly astray with the start-stop-daemon command, it is actually
start-stop-daemon --start --oknodo --background --make-pidfile --pidfile /run/subway.pid --chdir `pwd`/subway --startas /usr/bin/node -- subway
Note the --chdir and --make-pidfile.
This is the only change necessary to make the charm work, so I just made the change, and promulgated it.
Nicely done! :)
Ben, I led you slightly astray with the start-stop-daemon command, it is actually
start-stop-daemon --start --oknodo --background --make-pidfile --pidfile /run/subway.pid --chdir `pwd`/subway --startas /usr/bin/node -- subway
Note the --chdir and --make-pidfile.
This is the only change necessary to make the charm work, so I just made the change, and promulgated it.
Nicely done! :)