mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-24 23:15:26 -07:00
Merge pull request #502 from JonnyWong16/startup-tasks-after-daemonizing
Run startup tasks after daemonizing
This commit is contained in:
commit
f409cdda8f
1 changed files with 3 additions and 3 deletions
|
@ -153,12 +153,12 @@ def main():
|
||||||
# Put the database in the DATA_DIR
|
# Put the database in the DATA_DIR
|
||||||
plexpy.DB_FILE = os.path.join(plexpy.DATA_DIR, 'plexpy.db')
|
plexpy.DB_FILE = os.path.join(plexpy.DATA_DIR, 'plexpy.db')
|
||||||
|
|
||||||
# Read config and start logging
|
|
||||||
plexpy.initialize(config_file)
|
|
||||||
|
|
||||||
if plexpy.DAEMON:
|
if plexpy.DAEMON:
|
||||||
plexpy.daemonize()
|
plexpy.daemonize()
|
||||||
|
|
||||||
|
# Read config and start logging
|
||||||
|
plexpy.initialize(config_file)
|
||||||
|
|
||||||
# Force the http port if neccessary
|
# Force the http port if neccessary
|
||||||
if args.port:
|
if args.port:
|
||||||
http_port = args.port
|
http_port = args.port
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue