aboutsummaryrefslogtreecommitdiffstats
path: root/community/ruby-puma/puma.initd
diff options
context:
space:
mode:
Diffstat (limited to 'community/ruby-puma/puma.initd')
-rw-r--r--community/ruby-puma/puma.initd18
1 files changed, 18 insertions, 0 deletions
diff --git a/community/ruby-puma/puma.initd b/community/ruby-puma/puma.initd
new file mode 100644
index 0000000000..600dffe1e3
--- /dev/null
+++ b/community/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
+}
+