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