add SQL dependance

This commit is contained in:
vincent 2020-11-04 18:24:58 +01:00
parent f96ca460eb
commit e1c504e75b
2 changed files with 2 additions and 2 deletions

View File

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

View File

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