$ more /etc/apache2/sites-available/carillon.conf
<VirtualHost *:80>
ServerName
example.ca ServerAdmin
webmaster@example.ca # Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# Send everything else to (Dancer2)
ProxyPass /
http://127.0.0.1:5018/ ProxyPassReverse /
http://127.0.0.1:5018/</VirtualHost>
$ more /etc/init/example.conf
description "Ex service (directory, etc)"
# Start when we get the 'filesystem' event, presumably once the file
# systems are mounted. Stop when shutting down.
start on filesystem
stop on runlevel S
respawn
respawn limit 10 5
umask 022
env PERL5LIB=/opt/example/lib
chdir /opt/example
setuid examp
exec /opt/example/bin/starman -E production bin/app.psgi --port 5018 --host 127.0.0.1 --workers 8