From 40bff33bc759ba1807b9417af4199da4a1bfd484 Mon Sep 17 00:00:00 2001 From: Andre-Nam Date: Wed, 22 Oct 2014 18:05:04 +0200 Subject: [PATCH 1/4] added supysonic-watcher to setup.py scripts --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index e8d85ea..565211d 100755 --- a/setup.py +++ b/setup.py @@ -26,6 +26,6 @@ setup(name='supysonic', """, packages=['supysonic', 'supysonic.api', 'supysonic.frontend', 'supysonic.managers'], - scripts=['bin/supysonic-cli'], + scripts=['bin/supysonic-cli', 'bin/supysonic-watcher'], package_data={'supysonic': ['templates/*.html']} ) From e69527742671342a5ad2d9931d023aa59648c70f Mon Sep 17 00:00:00 2001 From: Andre-Nam Date: Wed, 22 Oct 2014 18:15:23 +0200 Subject: [PATCH 2/4] virtualenv support --- bin/supysonic-cli | 2 +- bin/supysonic-watcher | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/supysonic-cli b/bin/supysonic-cli index 23f97bc..5c2a704 100755 --- a/bin/supysonic-cli +++ b/bin/supysonic-cli @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # coding: utf-8 # This file is part of Supysonic. diff --git a/bin/supysonic-watcher b/bin/supysonic-watcher index 570e066..2c8e2c9 100755 --- a/bin/supysonic-watcher +++ b/bin/supysonic-watcher @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # coding: utf-8 # This file is part of Supysonic. From e63cf9fe9e2e725dc71c062ab0b371c7a6ad5671 Mon Sep 17 00:00:00 2001 From: Andre-Nam Date: Wed, 22 Oct 2014 21:12:59 +0200 Subject: [PATCH 3/4] added daemon configuration to README --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index bbc8d50..750b452 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,9 @@ Available settings are: * Section **transcoding**: see [Transcoding](https://github.com/spl0k/supysonic/wiki/Transcoding) * Section **mimetypes**: extension to content-type mappings. Designed to help the system guess types, to help clients relying on the content-type. See [the list of common types](https://en.wikipedia.org/wiki/Internet_media_type#List_of_common_media_types). +* Section **daemon** + * **log_file**: path and base name of a rolling log file. + * **log_level**: logging level. Possible values are *DEBUG*, *INFO*, *WARNING*, *ERROR* or *CRITICAL*. ### Database initialization From ecae2e681815074d7e77a3a0b60c50e0dc41b480 Mon Sep 17 00:00:00 2001 From: Andre-Nam Date: Wed, 22 Oct 2014 21:17:01 +0200 Subject: [PATCH 4/4] forgot to add watchdog as dependency --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 750b452..b11d70d 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ or as a WSGI application (on Apache for instance). But first: * simplejson (`apt-get install python-simplejson`) * [requests](http://docs.python-requests.org/) >= 1.0.0 (`pip install requests`) * [mutagen](https://code.google.com/p/mutagen/) (`apt-get install python-mutagen`) +* [watchdog](https://github.com/gorakhargosh/watchdog) (`pip install watchdog`) ### Configuration