aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ruby-puma/puma.initd
blob: 600dffe1e3a968f15e2515338ba12322b84af6b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
}