bin/external-fastcgi-server
#!/usr/bin/env perl
# ===================================================================
# File: bin/external-fastcgi-server
# Project: ShinyCMS
# Purpose: Run the external fastcgi processes
#
# Author: Denny de la Haye <2019@denny.me>
# Copyright (c) 2009-2019 Denny de la Haye
#
# ShinyCMS is free software; you can redistribute it and/or modify it
# under the terms of either the GPL 2.0 or the Artistic License 2.0
# ===================================================================
use strict;
use warnings;
# Load local helper script for reading in config
use FindBin qw( $Bin );
use lib "$Bin/lib";
require 'helpers.pl'; ## no critic
my $config = get_config();
my $domain = $config->{ domain };
# Start an external fastcgi server, 3 processes, listening on the specified socket
system( 'script/shinycms_fastcgi.pl -d -n 3 ' .
'-l /tmp/shinycms_' . $domain . '.socket ' .
'-p /tmp/shinycms_' . $domain . '.pid'
);