fix dependencies, add .service
[sfa.git] / systemd / sfa-db.service
1 [Unit]
2 Description=SFA Database service
3 Requires=postgresql.service
4 After=postgresql.service
5
6 [Service]
7 Type=oneshot
8 ExecStart=/bin/bash -c "/usr/bin/sfa-db-init.sh"
9 RemainAfterExit=true
10 # systemd insists that we define this one
11 # that does not seem useful in our case
12 ExecStop=/bin/true
13 StandardOutput=journal
14
15 [Install]
16 WantedBy=multi-user.target