1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Both LOG_DIR and PID_DIR are created during package installation with

correct permissions.
Do not try to do the same every time daemon starts.
This commit is contained in:
Dmitry Sivachenko 2014-07-02 08:52:14 +00:00
parent 2a7ba74da1
commit 297b0ffa59
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360157
5 changed files with 0 additions and 60 deletions

View File

@ -50,18 +50,6 @@ datanode_init()
do
. ${f}
done
if [ -n "${datanode_log_dir}" ]
then
HADOOP_LOG_DIR=${datanode_log_dir}
fi
if [ -n "${datanode_pid_dir}" ]
then
HADOOP_LOG_DIR=${datanode_pid_dir}
fi
install -d -m 755 -o ${datanode_user} -g ${datanode_group} ${HADOOP_PID_DIR}
install -d -m 755 -o ${datanode_user} -g ${datanode_group} ${HADOOP_LOG_DIR}
}
datanode_stop ()

View File

@ -50,18 +50,6 @@ jobtracker_init()
do
. ${f}
done
if [ -n "${jobtracker_log_dir}" ]
then
HADOOP_LOG_DIR=${jobtracker_log_dir}
fi
if [ -n "${jobtracker_pid_dir}" ]
then
HADOOP_LOG_DIR=${jobtracker_pid_dir}
fi
install -d -m 755 -o ${jobtracker_user} -g ${jobtracker_group} ${HADOOP_PID_DIR}
install -d -m 755 -o ${jobtracker_user} -g ${jobtracker_group} ${HADOOP_LOG_DIR}
}
jobtracker_stop ()

View File

@ -50,18 +50,6 @@ namenode_init()
do
. ${f}
done
if [ -n "${namenode_log_dir}" ]
then
HADOOP_LOG_DIR=${namenode_log_dir}
fi
if [ -n "${namenode_pid_dir}" ]
then
HADOOP_LOG_DIR=${namenode_pid_dir}
fi
install -d -m 755 -o ${namenode_user} -g ${namenode_group} ${HADOOP_PID_DIR}
install -d -m 755 -o ${namenode_user} -g ${namenode_group} ${HADOOP_LOG_DIR}
}
namenode_stop ()

View File

@ -50,18 +50,6 @@ secondarynamenode_init()
do
. ${f}
done
if [ -n "${secondarynamenode_log_dir}" ]
then
HADOOP_LOG_DIR=${secondarynamenode_log_dir}
fi
if [ -n "${secondarynamenode_pid_dir}" ]
then
HADOOP_LOG_DIR=${secondarynamenode_pid_dir}
fi
install -d -m 755 -o ${secondarynamenode_user} -g ${secondarynamenode_group} ${HADOOP_PID_DIR}
install -d -m 755 -o ${secondarynamenode_user} -g ${secondarynamenode_group} ${HADOOP_LOG_DIR}
}
secondarynamenode_stop ()

View File

@ -50,18 +50,6 @@ tasktracker_init()
do
. ${f}
done
if [ -n "${tasktracker_log_dir}" ]
then
HADOOP_LOG_DIR=${tasktracker_log_dir}
fi
if [ -n "${tasktracker_pid_dir}" ]
then
HADOOP_LOG_DIR=${tasktracker_pid_dir}
fi
install -d -m 755 -o ${tasktracker_user} -g ${tasktracker_group} ${HADOOP_PID_DIR}
install -d -m 755 -o ${tasktracker_user} -g ${tasktracker_group} ${HADOOP_LOG_DIR}
}
tasktracker_stop ()