access-ci-org / ipf

The Information Publishing Framework for publishing HPC/HTC resource information to ACCESS-CI Information Services.
Apache License 2.0
0 stars 1 forks source link

su command needs `-c` argument #9

Closed c-mart closed 7 months ago

c-mart commented 9 months ago

This fixes one of a few snags we (Jetstream2) hit when setting up IPF. Full notes from our setup experience here.

The stop() case of each init script passes a command to su (instead of starting an interactive shell), but without the needed -c argument, it breaks and it fails to remove the PID file. This PR adds the argument, after which the service stops and restarts successfully.