Skip to content
This repository has been archived by the owner on Mar 22, 2018. It is now read-only.

Commit

Permalink
storage: Now using it's own default configuration file.
Browse files Browse the repository at this point in the history
If a configuration file is not provided to commissaire-storage-service
will default to /etc/commissaire/storage.conf.
  • Loading branch information
ashcrow authored and mbarnes committed Dec 9, 2016
1 parent 3d8d66a commit 935d5aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conf/systemd/commissaire-storage.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Documentation=https://commissaire.readthedocs.io/
After=network.target

[Service]
ExecStart=/usr/bin/commissaire-storage-service -c /etc/commisasire/storage.conf
ExecStart=/usr/bin/commissaire-storage-service
PIDFile=/var/run/commissaire-storage-service.pid
Type=simple

Expand Down
3 changes: 2 additions & 1 deletion src/commissaire_service/storage/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ def __init__(self, exchange_name, connection_url, config_file=None):
if isinstance(v, type) and
issubclass(v, models.Model)}

config_data = read_config_file(config_file)
config_data = read_config_file(
config_file, '/etc/commissaire/storage.conf')
store_handlers = config_data.get('storage_handlers', [])

# Configure store handlers from user data.
Expand Down

0 comments on commit 935d5aa

Please sign in to comment.