-
-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '2523-alert-tracks-systemd' into develop
- Loading branch information
Showing
10 changed files
with
108 additions
and
324 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,23 @@ | ||
# | ||
# systemd service unit for Alaveteli Alert Tracks daemon | ||
# | ||
[Unit] | ||
Description=<%= daemon_name %> sends Alaveteli email alerts as required | ||
After=syslog.target network.target | ||
|
||
[Service] | ||
Type=simple | ||
Environment=PATH="<%= ruby_path %>:/usr/local/bin:/usr/bin:/bin" | ||
<% unless rails_env_defined? -%> | ||
Environment=RAILS_ENV=<%= rails_env %> | ||
<% end -%> | ||
User=<%= user %> | ||
WorkingDirectory=<%= vhost_dir %>/<%= vcspath %> | ||
ExecStart=<%= vhost_dir %>/<%= vcspath %>/script/runner TrackMailer.alert_tracks_loop | ||
StandardOutput=append:<%= vhost_dir %>/<%= vcspath %>/log/<%= daemon_name %>.log | ||
StandardError=inherit | ||
Restart=on-failure | ||
RestartSec=1 | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
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
This file was deleted.
Oops, something went wrong.
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,23 @@ | ||
# | ||
# systemd service unit for Alaveteli imcoming mail poller daemon | ||
# | ||
[Unit] | ||
Description=<%= daemon_name %> imports incoming mail into Alaveteli as required | ||
After=syslog.target network.target | ||
|
||
[Service] | ||
Type=simple | ||
Environment=PATH="<%= ruby_path %>:/usr/local/bin:/usr/bin:/bin" | ||
<% unless rails_env_defined? -%> | ||
Environment=RAILS_ENV=<%= rails_env %> | ||
<% end -%> | ||
User=<%= user %> | ||
WorkingDirectory=<%= vhost_dir %>/<%= vcspath %> | ||
ExecStart=<%= vhost_dir %>/<%= vcspath %>/script/runner AlaveteliMailPoller.poll_for_incoming_loop | ||
StandardOutput=append:<%= vhost_dir %>/<%= vcspath %>/log/<%= daemon_name %>.log | ||
StandardError=inherit | ||
Restart=on-failure | ||
RestartSec=1 | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file was deleted.
Oops, something went wrong.
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,23 @@ | ||
# | ||
# systemd service unit for Alaveteli Notifications daemon | ||
# | ||
[Unit] | ||
Description=<%= daemon_name %> sends Alaveteli notifications as required | ||
After=syslog.target network.target | ||
|
||
[Service] | ||
Type=simple | ||
Environment=PATH="<%= ruby_path %>:/usr/local/bin:/usr/bin:/bin" | ||
<% unless rails_env_defined? -%> | ||
Environment=RAILS_ENV=<%= rails_env %> | ||
<% end -%> | ||
User=<%= user %> | ||
WorkingDirectory=<%= vhost_dir %>/<%= vcspath %> | ||
ExecStart=<%= vhost_dir %>/<%= vcspath %>/script/runner NotificationMailer.send_notifications_loop | ||
StandardOutput=append:<%= vhost_dir %>/<%= vcspath %>/log/<%= daemon_name %>.log | ||
StandardError=inherit | ||
Restart=on-failure | ||
RestartSec=1 | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
Oops, something went wrong.