aboutsummaryrefslogtreecommitdiffstats
path: root/main/uwsgi/uwsgi.initd
blob: 21c4586738bbafca099809c8d464428e16568886 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/sbin/openrc-run

pidfile="/run/uwsgi/uwsgi.pid"
command="/usr/sbin/uwsgi"
command_args="--daemonize=/var/log/uwsgi.log --emperor /etc/uwsgi/conf.d --emperor-pidfile=$pidfile"

depend() {
        need net
}

start_pre() {
        checkpath --directory --owner uwsgi:uwsgi \
                --mode 0775 /run/uwsgi
}