-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
instances should not share systemd RuntimeDirectory, redis.service.er…
…b to EPP
- Loading branch information
1 parent
fb4db5f
commit b7f7478
Showing
5 changed files
with
46 additions
and
26 deletions.
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
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 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 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,29 @@ | ||
<%- | | ||
Boolean $ulimit_managed, | ||
Integer[0] $ulimit, | ||
Stdlib::Absolutepath $bin_path, | ||
Stdlib::Absolutepath $redis_file_name, | ||
Stdlib::Port $port, | ||
String[1] $instance_title, | ||
String[1] $service_name, | ||
String[1] $service_user, | ||
| -%> | ||
[Unit] | ||
Description=Redis Advanced key-value store for instance <%= $instance_title %> | ||
After=network.target | ||
After=network-online.target | ||
Wants=network-online.target | ||
|
||
[Service] | ||
RuntimeDirectory=<%= $service_name %> | ||
RuntimeDirectoryMode=2755 | ||
Type=notify | ||
ExecStart=<%= $bin_path %>/redis-server <%= $redis_file_name %> --supervised systemd | ||
ExecStop=<%= $bin_path %>/redis-cli -p <%= $port %> shutdown | ||
Restart=always | ||
User=<%= $service_user %> | ||
Group=<%= $service_user %> | ||
<%if $ulimit_managed { %>LimitNOFILE=<%= $ulimit %><% } %> | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file was deleted.
Oops, something went wrong.