diff options
Diffstat (limited to 'testing/i2pd/i2pd.initd')
-rw-r--r-- | testing/i2pd/i2pd.initd | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/testing/i2pd/i2pd.initd b/testing/i2pd/i2pd.initd index 16459ecd85..5f4346aba9 100644 --- a/testing/i2pd/i2pd.initd +++ b/testing/i2pd/i2pd.initd @@ -30,13 +30,14 @@ start_pre() { if [ -z "${I2PD_USER}" ] || \ [ -z "${I2PD_GROUP}" ] || \ [ -z "${I2PD_PID}" ] || \ - [ -z "${I2PD_LOG}" ] || \ [ -z "${I2PD_OPTIONS}" ] ; then - eerror "Not all variables I2PD_USER, I2PD_GROUP, I2PD_PID, I2PD_OPTIONS, I2PD_LOG are defined." + eerror "Not all variables I2PD_USER, I2PD_GROUP, I2PD_PID, I2PD_OPTIONS are defined." eerror "Check your /etc/conf.d/i2pd." return 1 fi - checkpath -f -o "${user}" "${I2PD_LOG}" + if [ -n "${I2PD_LOG}" ]; then + checkpath -f -o "${user}" "${I2PD_LOG}" + fi checkpath -d -m 0750 -o "${user}" "${I2PD_PID_DIR}" } |