Use supervise-daemon(8) for the alpine service
authorrinpatch <rinpatch@sdf.org>
Mon, 24 Jun 2019 07:08:33 +0000 (10:08 +0300)
committerrinpatch <rinpatch@sdf.org>
Mon, 24 Jun 2019 07:08:33 +0000 (10:08 +0300)
rel/files/installation/init.d/pleroma

index de007c5e30fb57ddbfe6de3e01cb70ed91cb0bb5..dea1db26c8e25e87e99ce464b6b8243bc657cd56 100755 (executable)
@@ -1,5 +1,7 @@
 #!/sbin/openrc-run
 
+supervisor=supervise-daemon
+
 # Requires OpenRC >= 0.35
 directory=/opt/pleroma
 
@@ -14,5 +16,6 @@ retry="SIGTERM/30/SIGKILL/5"
 pidfile="/var/run/pleroma.pid"
 
 depend() {
-    need nginx postgresql
+    want nginx
+    need postgresql
 }