mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-14 06:31:41 +00:00
10 lines
294 B
Bash
10 lines
294 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
case $1 in
|
|
sutty)
|
|
su app -c "cd /srv/http && foreman start migrate"
|
|
daemonize -c /srv/http -u app /usr/bin/foreman start sutty
|
|
;;
|
|
prometheus) daemonize -c /srv/http -p /tmp/prometheus.pid -l /tmp/prometheus.pid -u app /usr/bin/foreman start prometheus ;;
|
|
esac
|