Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 3
    Your question title says $1 but your question body says $!. Which is it? Commented Mar 3, 2018 at 2:22
  • Which shell is used to execute the "init script"? Commented Mar 3, 2018 at 3:45
  • 1) what user runs the script? 2) does it work if you run the script as that user, but from the command line? 3) is something else truncating the file? 4) did the start process thing actually run or did you get a "no such file or directory" error? (i.e. is PATH correctly set in the script?) Commented Mar 3, 2018 at 7:34
  • Title had typo, I've corrected that. Commented Mar 5, 2018 at 17:25
  • Using Bash shell, script being run as root, but jar file being executed as AD generic account specified in script, jar file runs as expected with no error printed, path is correct as the file is successfully created but blank. Commented Mar 5, 2018 at 17:31