coorect template for postgress

master
vincent 2 years ago
parent e1c504e75b
commit 05a56a9e04
  1. 2
      templates/systemd/gunicorn.service.j2
  2. 2
      templates/systemd/supysonic-daemon.service.j2

@ -1,6 +1,6 @@
[Unit]
Description=gunicorn daemon for {{supysonic_name}}
After=network.target {{ 'postgresql.service' if supysonic_DB_type == 'postgres' else mysqld.service supysonic_DB_type == 'mysql' }}
After=network.target {{ 'postgresql.service' if supysonic_DB_type == 'postgres' else mysqld.service }}
[Service]
PIDFile=/run/gunicorn-{{supysonic_name}}/pid

@ -1,6 +1,6 @@
[Unit]
Description=Supysonic Daemon
After={{ 'postgresql.service' if supysonic_DB_type == 'postgres' else mysqld.service supysonic_DB_type == 'mysql' }}
After={{ 'postgresql.service' if supysonic_DB_type == 'postgres' else mysqld.service }}
After=network.target
[Service]
User=root

Loading…
Cancel
Save