Skip to content

Commit

Permalink
Merge pull request #662 from telefonicaid/hardening/612_pid_on_run_dir
Browse files Browse the repository at this point in the history
Fixed RPM package so PID file is stored in /var/run/contextBroker
  • Loading branch information
dmoranj committed Nov 25, 2014
2 parents 772063b + b40e556 commit ce8ecc7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES_NEXT_RELEASE
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ Fix: Changed max-length of service path elements from 10 characteres to 50. (Iss
Fix: Service path is no longer ignored at entity creation time for entities without type. (Issue #642)
Fix: The broker crashed on receiving compounds for some convops, e.g. /v1/contextEntities/{entityId} (Issue #647)
Fix: Using 443 as default port for "https" notifications. (Issue #639)
Fix: Fixed RPM package so PID file is stored in /var/run/contextBroker instead of /var/log/contextBroker. (Issue #612)
Fix: Payload no longer accepts 'operator' as part of a Scope. (Issue #618)
Fix: Made compound attribute values for for convenience operations (Issue #660)
2 changes: 1 addition & 1 deletion etc/config/contextBroker
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ BROKER_PORT=1026
BROKER_LOG_DIR=/var/log/contextBroker

# BROKER_PID_FILE - Where to store the pid for orion-broker
BROKER_PID_FILE=/var/log/contextBroker/contextBroker.pid
BROKER_PID_FILE=/var/run/contextBroker/contextBroker.pid

## Database configuration for orion-broker
BROKER_DATABASE_HOST=localhost
Expand Down
5 changes: 4 additions & 1 deletion rpm/SPECS/contextBroker.spec
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ exit 0
DATE=$(date "+%Y-%m-%d")
/sbin/chkconfig --add %{name}
mkdir -p /var/log/%{name}
mkdir -p /var/run/%{name}
chown -R %{owner}:%{owner} /var/log/%{name}
chown -R %{owner}:%{owner} /var/run/%{name}
# Secure the configuration file to prevent un-authorized access
chown %{owner}:%{owner} /etc/sysconfig/%{name}
chmod 600 /etc/sysconfig/%{name}
Expand Down Expand Up @@ -103,7 +105,8 @@ cp -R %{_sourcedir}/etc $RPM_BUILD_ROOT
# it as part of our install script
strip $RPM_BUILD_ROOT/usr/bin/contextBroker
chmod 555 $RPM_BUILD_ROOT/usr/bin/contextBroker
mkdir -p $RPM_BUILD_ROOT/var/%{name}
#FIXME: I think next line is not actually needed, thus it has been commented out for a quarentine period (starting on 24/11/2014)
#mkdir -p $RPM_BUILD_ROOT/var/%{name}
mkdir -p $RPM_BUILD_ROOT/etc/init.d
mkdir -p $RPM_BUILD_ROOT/etc/profile.d
mkdir -p $RPM_BUILD_ROOT/usr/share/contextBroker/tests
Expand Down

0 comments on commit ce8ecc7

Please sign in to comment.