From aec12063ccc0d199f8fa0e2384aec2949b0439fd Mon Sep 17 00:00:00 2001 From: Disassembler Date: Fri, 15 Sep 2017 11:07:37 +0200 Subject: [PATCH] Use Pandora provided ctl wrapper for service handling. --- 50-pandora.sh | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/50-pandora.sh b/50-pandora.sh index 5dce809..8da3e73 100755 --- a/50-pandora.sh +++ b/50-pandora.sh @@ -49,21 +49,13 @@ chown -R pandora:pandora /srv/pandora # Populate database sudo -u pandora /srv/pandora/pandora/manage.py init_db -# Install systemd services -cp /srv/pandora/etc/systemd/system/*.service /etc/systemd/system/ -cp /srv/pandora/etc/tmpfiles.d/pandora.conf /etc/tmpfiles.d/ -systemd-tmpfiles --create /etc/tmpfiles.d/pandora.conf -systemctl daemon-reload - # Create nginx site definition cp ${SOURCE_DIR}/pandora/etc/nginx/sites-available/pandora /etc/nginx/sites-available/pandora ln -s /etc/nginx/sites-available/pandora /etc/nginx/sites-enabled/pandora -# Start services -for SERVICE in "pandora pandora-tasks pandora-encoding pandora-cron pandora-websocketd"; do - systemctl enable ${SERVICE} - systemctl start ${SERVICE} -done +# Install and start services +/srv/pandora/ctl install +/srv/pandora/ctl start systemctl restart nginx # Add portal application definition