Ewoud Kohl van Wijngaarden
ab25630f8e
Use python2
Since CouchPotato is not Python 3 compatible, this makes sure the
correct Python version is used. Even when /usr/bin/python is Python 3.
6 years ago
maxkoryukov
94ec30fc2e
Dependencies moved to the requirements.txt, travis config changed
9 years ago
Ruud
73d37584ad
Cleanup import
11 years ago
Ruud
94064ac7da
Rework restart methods
11 years ago
Ruud
e659aba176
Clean .pyc files before starting
11 years ago
Ruud
b894139ca1
Make full path for logs
11 years ago
Ruud
675bee83ca
Path encode
11 years ago
Ruud
22e922e860
Split socket error to nr
11 years ago
Ruud Burger
4b1151bda1
Put future import after shebang
11 years ago
Ruud
08e2a3a883
Import print function
11 years ago
Ruud
799299c7cc
Code cleanup
11 years ago
Ruud
7cc55c21b6
Shutdown cleanly on quit process
12 years ago
Ruud
c4adab69cb
Just use basename of __file__ when restarting. fix #982
13 years ago
mano3m
64c044acc1
Shutdown the logger before restarting CPS. Fixes issue #587
13 years ago
Ruud
c274867571
Use settings datadir again. fix #518
13 years ago
bwq
001dfb9245
Added data_dir option to use a custom data_dir
13 years ago
Ruud
f8bae9e84e
Don't remove pidfile twice
13 years ago
Ruud
ba4a38b604
Allow select error to ctrl+c app when not in develop mode
13 years ago
Ruud
4ae91fa17a
Just print error when loader didn't finish
13 years ago
Michael J. Cohen
ee4e91d318
Default exception handler no longer assumes all remaining exceptions take (errno, string) pairs.
Previously any exception that made it all the way up to the default
exception handler would be expected to take (errno, string) pairs,
as is the python standard for exceptions thrown by system calls.
All exceptions that don't take enough arguments throw a ValueError.
Based on the errno tested, it appears that this code
is meant to silently ignore when a socket receives a SIGINT (from
e.g. a timeout.) This seems to be the only instance where handling
EINTR in this manner is desired - though having this bubble up this
far seems odd.
The existing code would also handle any other EINTR, though, which
includes those raised by OSError, WindowsError, and
anything that subclasses EnvironmentError, barring KeyboardError
because it is handled separately. This is a bug as there is already
some use of the signals module elsewhere in CouchPotato.py to trap
SIGINT and SIGTERM outside of system calls, and most of these other
EINTRs should be handled by code lower down the stack.
A default exception handler is also added, so that unhandled
exceptions will be logged, and raised.
13 years ago
Ruud
088dc5386c
Better shutdown of process
13 years ago
Ruud
d0aca61165
Try and stop running daemon first
13 years ago
Ruud
adc755dbd5
Move config parse to runner
13 years ago
Ruud
5d70369df1
More runner fixes
13 years ago
Ruud
756bffdb62
Don't show error at all?
13 years ago
Ruud
456b44e80f
Catch final log
13 years ago
Ruud
af92355e2f
JSON errors and image not loading
13 years ago
Ruud
0fe18b0109
Reloader stopped working
13 years ago
Ruud
e1f6354b34
Cleanup
13 years ago
Ruud
a6e1386584
Better logging in runner script
13 years ago
Ruud
b50647885f
More runner optimisations
13 years ago
Ruud
8a0130c9a6
Remove pidfile before restarting
13 years ago
Ruud
4e2b511c06
Optimized runner script
13 years ago
Ruud
a42ff5e038
Simpler loader script
13 years ago
Ruud
55cb53b34d
Do proper shutdown
13 years ago
Ruud
4bf430a32e
Don't fire atexit when developing
13 years ago
Ruud
a848a18d37
Cleanup on terminate
13 years ago
Ruud
5882f251de
Monitor parent process for shutdown
13 years ago
Ruud
d38ff40b54
Daemonize fix
13 years ago
Ruud
3ad0f91dc4
Daemonize and pid_file support
14 years ago
Ruud
199c17e2c1
Better shutdown and restart
14 years ago
Ruud
478e729e73
Revert "Merge branch 'refs/heads/develop'"
This reverts commit 03a414c601
, reversing
changes made to de4e47b4a4
.
14 years ago
Ruud
8e18c1e1cd
Revert "py2app fixes"
This reverts commit f70767be28
.
14 years ago
Ruud
f70767be28
py2app fixes
14 years ago
Ruud
1fb2e2947e
Remove daemon for now
14 years ago
Ruud
044a23764d
End plugins before shutdown
14 years ago
Ruud
1effeb2134
Updater
Event priority
Mootools defaults fixes
14 years ago
Ruud
5b3f6adae0
Make config file a start parameter
14 years ago
Ruud
9ff4d0bc91
Proper loading of plugins on debug
Restarting functions
14 years ago
Ruud
322762d702
Searcher, settings styling
14 years ago