aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Byrne <james.byrne@origamienergy.com>2019-07-17 15:53:04 +0000
committerDenys Vlasenko <vda.linux@googlemail.com>2019-10-14 12:48:38 +0200
commited79af77a4791aa0bbcb0a8d1b4c03ccf313fa94 (patch)
tree85a7a326fa287eb7399dd529d128d074a3088de6
parenteb1395147ae98e56b455d0f3f9406725fe189822 (diff)
downloadbusybox-w32-ed79af77a4791aa0bbcb0a8d1b4c03ccf313fa94.tar.gz
busybox-w32-ed79af77a4791aa0bbcb0a8d1b4c03ccf313fa94.tar.bz2
busybox-w32-ed79af77a4791aa0bbcb0a8d1b4c03ccf313fa94.zip
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>
-rw-r--r--Config.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/Config.in b/Config.in
index 14f54aacc..b62b2abb8 100644
--- a/Config.in
+++ b/Config.in
@@ -156,12 +156,13 @@ config FEATURE_PIDFILE
156config PID_FILE_PATH 156config PID_FILE_PATH
157 string "Directory for pidfiles" 157 string "Directory for pidfiles"
158 default "/var/run" 158 default "/var/run"
159 depends on FEATURE_PIDFILE 159 depends on FEATURE_PIDFILE || FEATURE_CROND_SPECIAL_TIMES
160 help 160 help
161 This is the default path where pidfiles are created. Applets which 161 This is the default path where pidfiles are created. Applets which
162 allow you to set the pidfile path on the command line will override 162 allow you to set the pidfile path on the command line will override
163 this value. The option has no effect on applets that require you to 163 this value. The option has no effect on applets that require you to
164 specify a pidfile path. 164 specify a pidfile path. When crond has the 'Support special times'
165 option enabled, the 'crond.reboot' file is also stored here.
165 166
166config BUSYBOX 167config BUSYBOX
167 bool "Include busybox applet" 168 bool "Include busybox applet"