a little nicer wrt pep8
[sfa.git] / systemd / sfa-db.service
index 7ad798e..6381bbc 100644 (file)
@@ -1,11 +1,11 @@
 [Unit]
 Description=SFA Database service
-Requires=postgresql
-After=postgresql
+Requires=postgresql.service
+After=postgresql.service
 
 [Service]
 Type=oneshot
-ExecStart=/bin/bash -c "/usr/bin/sfa-db-init.sh"
+ExecStart=/bin/bash -c "/usr/bin/sfa-setup.sh start-db"
 RemainAfterExit=true
 # systemd insists that we define this one
 # that does not seem useful in our case