diff options
author | demon <demon@FreeBSD.org> | 2014-07-02 16:52:14 +0800 |
---|---|---|
committer | demon <demon@FreeBSD.org> | 2014-07-02 16:52:14 +0800 |
commit | 7a9a67e7626eed5b6466cd667fb476ecbcb3b380 (patch) | |
tree | 2be4be175b234f8e7ca544f2708e67d18ef1ac96 | |
parent | b993511531abbdbce1e2f43c685c8b228a920e35 (diff) | |
download | freebsd-ports-gnome-7a9a67e7626eed5b6466cd667fb476ecbcb3b380.tar.gz freebsd-ports-gnome-7a9a67e7626eed5b6466cd667fb476ecbcb3b380.tar.zst freebsd-ports-gnome-7a9a67e7626eed5b6466cd667fb476ecbcb3b380.zip |
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.
-rw-r--r-- | devel/hadoop/files/datanode.in | 12 | ||||
-rw-r--r-- | devel/hadoop/files/jobtracker.in | 12 | ||||
-rw-r--r-- | devel/hadoop/files/namenode.in | 12 | ||||
-rw-r--r-- | devel/hadoop/files/secondarynamenode.in | 12 | ||||
-rw-r--r-- | devel/hadoop/files/tasktracker.in | 12 |
5 files changed, 0 insertions, 60 deletions
diff --git a/devel/hadoop/files/datanode.in b/devel/hadoop/files/datanode.in index cee608a8faa5..040d4212fdbf 100644 --- a/devel/hadoop/files/datanode.in +++ b/devel/hadoop/files/datanode.in @@ -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 () diff --git a/devel/hadoop/files/jobtracker.in b/devel/hadoop/files/jobtracker.in index 6a4ed3e5b227..a03a8e8d8f63 100644 --- a/devel/hadoop/files/jobtracker.in +++ b/devel/hadoop/files/jobtracker.in @@ -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 () diff --git a/devel/hadoop/files/namenode.in b/devel/hadoop/files/namenode.in index 682c94998633..b924d2fa3606 100644 --- a/devel/hadoop/files/namenode.in +++ b/devel/hadoop/files/namenode.in @@ -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 () diff --git a/devel/hadoop/files/secondarynamenode.in b/devel/hadoop/files/secondarynamenode.in index 4b09a97e0f10..e5e8d8df22ba 100644 --- a/devel/hadoop/files/secondarynamenode.in +++ b/devel/hadoop/files/secondarynamenode.in @@ -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 () diff --git a/devel/hadoop/files/tasktracker.in b/devel/hadoop/files/tasktracker.in index ee99429f3698..07550c1c8d45 100644 --- a/devel/hadoop/files/tasktracker.in +++ b/devel/hadoop/files/tasktracker.in @@ -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 () |