[INTPAK-81] Consider refactoring RPM install paths Created: 20/Nov/17  Updated: 20/Nov/17

Status: Open
Project: integration-packaging
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Lowest
Reporter: Daniel Farrell Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to ODLPARENT-129 Karaf log using systemd journal Open

 Description   

We currently install all of ODL to /opt/opendaylight. This works and follows best practices, but it's possible to follow better best practices by installing various parts of ODL to various parts of the filesystem.

JankiChhatbar gave me this better best practice summary:

  • configs go to /etc/programName.conf file and/or /etc/programName.d dir.
  • libraries to /usr/lib and/or /usr/lib64
  • binary / binaries to /usr/bin or /usr/sbin
  • documentation / manpages to /usr/share (that shall rather have platform independent content while binaries are often compiled just for a given platform - but in case your binaries can run on more platforms, you can put them there - likewise sos on multi-platform python does)
  • runtime data to /var/lib/programName
  • logs under /var/log/ (and/or syslog/journal)


 Comments   
Comment by Michael Vorburger [ 20/Nov/17 ]

> logs under /var/log/ (and/or syslog/journal)

juste FYI note ODLPARENT-129 re. systemd journal logging, maybe one day (not a very high prio, as we use containers DS)

Generated at Wed Feb 07 20:03:32 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.