aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ruby-puma/puma.initd
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/ruby-puma/puma.initd')
-rw-r--r--unmaintained/ruby-puma/puma.initd18
1 files changed, 18 insertions, 0 deletions
diff --git a/unmaintained/ruby-puma/puma.initd b/unmaintained/ruby-puma/puma.initd
new file mode 100644
index 0000000000..600dffe1e3
--- /dev/null
+++ b/unmaintained/ruby-puma/puma.initd
@@ -0,0 +1,18 @@
+#!/sbin/openrc-run
+name=puma
+command=/usr/bin/puma
+pidfile=/var/run/puma/puma.pid
+command_args="--daemon --pidfile $pidfile ${puma_args}"
+start_stop_daemon_args="--background --user $puma_user --group $puma_group --chdir $puma_approot"
+
+depend() {
+ use logger dns
+ need net
+ after firewall
+}
+
+start_pre() {
+ checkpath --directory --owner $puma_user:$puma_group --mode 0775 \
+ /var/run/$name
+}
+