Skip to content

databaselocation set for daemon. #172

Closed
wants to merge 1 commit into from

3 participants

@Mar2zz
Mar2zz commented Jul 6, 2012

Maybe nemesis can also do logfiles into DATADIR? When programfiles are protected by root ownership and a local user runs maraschino it wil give errors because it can't create a Logdir. If logdir is inside datadir which can be set @ homefolder of the running user this problem won't persist. (also logging into a different location is good for SSD's/USB's on which a lot of writing wears out lifetime.

(I don't have time anymore to write the loggerdirectory code myself, otherwise I wouldn't have asked).

@N3MIS15
Collaborator
N3MIS15 commented Jul 6, 2012

you can use --log /home/myhome/logs/maraschino.log

@Mar2zz
Mar2zz commented Jul 6, 2012

Kewl. That is not documented inside the python Maraschino.py --help.

@Mar2zz
Mar2zz commented Jul 6, 2012

I notice an issue when daemonizing, it does webroot setting by default, which gives problems if the folder where maraschino isn't writable. What is it for?

  • Starting Maraschino Traceback (most recent call last): File "Maraschino.py", line 154, in main() File "Maraschino.py", line 143, in main maraschino.initialize() File "/opt/maraschino/maraschino/init.py", line 135, in initialize f = open(less_webroot, 'w') IOError: [Errno 13] Permission denied: '/opt/maraschino/static/less/webroot.less'
@N3MIS15
Collaborator
N3MIS15 commented Jul 6, 2012

it needs to write a file with webroot url for the .less stuff. i will try to do it another way without the need for writing a file when i get time.

there will be other write issues too. trakt images come to mind and anything else we want to cache locally. eventually i plan to move trakt images to a cache folder (which will be set by user or maraschino root by default). a datadir arg should also be added so you dont need to set every path manualy

@Mar2zz
Mar2zz commented Jul 6, 2012

Ok. Is this a file that can be set anywhere on the system, regardless where maraschino.py is itself?

Maybe you can write a --datadir which will be a holder for database/logs/cache/webroot. other progs like sick, couch, head, lazyl do this also.

@N3MIS15
Collaborator
N3MIS15 commented Jul 6, 2012

you must have missed my edit :)

@Mar2zz
Mar2zz commented Jul 6, 2012

ok lol. thx you do a lot of kewl stuff with mara.

@N3MIS15 N3MIS15 referenced this pull request Jul 6, 2012
Closed

--datadir #174

@gugahoi gugahoi closed this Aug 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.