config: PID_FILE_PATH required for FEATURE_CROND_SPECIAL_TIMES
authorJames Byrne <james.byrne@origamienergy.com>
Wed, 17 Jul 2019 15:53:04 +0000 (15:53 +0000)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 14 Oct 2019 10:48:38 +0000 (12:48 +0200)
commited79af77a4791aa0bbcb0a8d1b4c03ccf313fa94
tree85a7a326fa287eb7399dd529d128d074a3088de6
parenteb1395147ae98e56b455d0f3f9406725fe189822
config: PID_FILE_PATH required for FEATURE_CROND_SPECIAL_TIMES

When crond is built with FEATURE_CROND_SPECIAL_TIMES enabled, it creates
a file called 'crond.reboot' at CONFIG_PID_FILE_PATH, but if
FEATURE_PIDFILE is disabled, this will be an empty string and the file
will be created in the root directory, which is undesirable.

This commit makes PID_FILE_PATH depend on FEATURE_CROND_SPECIAL_TIMES as
well as FEATURE_PIDFILE so that you get sensible behaviour in crond when
FEATURE_PIDFILE is switched off.

Signed-off-by: James Byrne <james.byrne@origamienergy.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Config.in