diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 39d1fc0..1970d4c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -27,7 +27,7 @@ find_path(OpenCV_DIR # Opencv Package FIND_PACKAGE( OpenCV REQUIRED ) -IF (${OpenCV_VERSION} VERSION_LESS 2.4.8) +IF (${OpenCV_VERSION} VERSION_LESS 2.4.7) MESSAGE(FATAL_ERROR "OpenCV version is not compatible : ${OpenCV_VERSION}") ENDIF() @@ -91,9 +91,11 @@ add_subdirectory(video) install (TARGETS alpr DESTINATION bin) +install (TARGETS alprd DESTINATION bin) install (FILES ${CMAKE_SOURCE_DIR}/../doc/man/alpr.1 DESTINATION share/man/man1 COMPONENT doc) install (DIRECTORY ${CMAKE_SOURCE_DIR}/../runtime_data DESTINATION share/openalpr/) install (FILES ${CMAKE_SOURCE_DIR}/../config/openalpr.conf DESTINATION /etc/openalpr/ COMPONENT config) +install (FILES ${CMAKE_SOURCE_DIR}/../config/alprd.conf DESTINATION /etc/openalpr/ COMPONENT config) diff --git a/upstart/alprd.conf b/upstart/alprd.conf index a9a2dcf..257d5a1 100644 --- a/upstart/alprd.conf +++ b/upstart/alprd.conf @@ -16,8 +16,8 @@ respawn limit 5 30 env uid=watchtower env gid=watchtower -env DAEMON=/usr/local/bin/alprd -env DAEMON_ARGS="-l /var/log/watchtower/alprd.log -n 20" +env DAEMON=/usr/bin/alprd +env DAEMON_ARGS="-l /var/log/alprd.log -n 20" env PIDFILE=/var/run/alprd.pid exec start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --chuid $uid:$gid -- $DAEMON_ARGS