-
-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds a systemd service unit file for managing the FixMyStreet Catalyst process manager. This also updates the commonlib submodule with matching changes to our install scripts.
- Loading branch information
Showing
3 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule commonlib
updated
from 26a6eb to 311a29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[Unit] | ||
Description=FixMyStreet Catalyst Application Server | ||
Documentation=https://fixmystreet.org/ | ||
After=network.target | ||
|
||
[Service] | ||
Type=forking | ||
User=fms | ||
PIDFile=/var/www/fixmystreet/fixmystreet.pid | ||
ExecStartPre=mkdir /var/www/fixmystreet/logs | ||
ExecStart=/var/www/fixmystreet/fixmystreet/script/server \ | ||
--port 9000 \ | ||
--env deployment \ | ||
--daemonize \ | ||
--pid /var/www/fixmystreet/fixmystreet.pid \ | ||
--access-log /var/www/fixmystreet/logs/fixmystreet.access.log \ | ||
--error-log /var/www/fixmystreet/logs/fixmystreet.error.log | ||
ExecStop=kill -TERM $MAINPID | ||
|
||
[Install] | ||
WantedBy=multi-user.target |