Skip to content

launch.script: pid folder subdirectory might be missing #5986

Closed
@leflamm

Description

@leflamm

We're using packaged jars to deploy our applications and run them in "service"-mode.

I was going to set the environment variable $APP_NAME to (amongst other things) specify the pid and log file name. Starting the service then fails because in $PID_FOLDER there's no subdirectory $APP_NAME. If I create it manually the service starts fine.

~/git/boot/some.app/target$ export MODE="service"
~/git/boot/some.app/target$ export PID_FOLDER="/tmp"
~/git/boot/some.app/target$ export LOG_FOLDER="/tmp"
~/git/boot/some.app/target$ export APP_NAME="foo"
~/git/boot/some.app/target$ ./some.app.jar start
Operation not permitted (cannot access pid file)
~/git/boot/some.app/target$ mkdir ${PID_FOLDER}/${APP_NAME}
~/git/boot/some.app/target$ ./some.app.jar start
Started [29132]

I learned from the last issue to discuss first whether this is defective or intended behavior before providing any PRs.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions