/etc/sv/mongrel2/run is in mongrel2-run 1.9.1-6+deb8u1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 | #!/bin/sh
if [ ! -d /var/run/mongrel2 ]; then
mkdir /var/run/mongrel2
chown mongrel2 /var/run/mongrel2
chmod 0755 /var/run/mongrel2
fi
su - mongrel2 -s /bin/sh -c "m2sh load -db /etc/mongrel2/mongrel2.sqlite -config /etc/mongrel2/mongrel2.conf"
exec su - mongrel2 -s /bin/sh -c "m2sh start -db /etc/mongrel2/mongrel2.sqlite -every"
|