Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Won't Fix
-
1.0.15
-
None
-
None
-
debian/amd64
Description
Before 1.0.15, jsvc did not change working directory in any way, so the way to set the cwd for an application was just to cd to the proper directory before calling jsvc.
Starting with 1.0.15, the -cwd option was added, which is indeed a useful addition.
However, 1.0.15 now always changes directory, with / as the default. This means that -cwd now basically has to be used if a specific cwd is needed. Of course, -cwd is an invalid option with
+versions before 1.0.15, so now it's impossible to make an init script that works with both older and newer jsvc setups.
It's not clear to me why leaving the cwd as is if -cwd isn't used wasn't kept.
As an extra annoyance, -version doesn't work without also setting seemingly unrelated options, so adding code to set -cwd based on jsvc version is harder than it should be.