-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(PDB-468)(packaging) Fixup systemd service configuration
Systemd will not allow variable substitution in a number of places in the service definition file. Most importantly, the first argument to the ExecStart command and the User and PIDFile parameters. In addition, as the file referenced in EnvironmentFile is not interpreted by a shell, but read in directly by systemd, it can not have logic, but must be composed solely of variable assignments. This PR updates the service definition file to use a hardcoded reference to the java-1.7.0-openjdk install (checked on F19, F20 and the RHEL 7 beta). Also updates the /etc/sysconfig/puppetdb file on those platforms to conform to the format supported by systemd.
- Loading branch information
Rob Braden
committed
Feb 21, 2014
1 parent
3a43f6e
commit fee7927
Showing
5 changed files
with
33 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
########################################### | ||
# Init settings for <%= @name %> | ||
########################################### | ||
|
||
# Location of your Java binary | ||
<%- if @pe -%> | ||
JAVA_BIN="<%= @java_bin %>" | ||
<%- else -%> | ||
JAVA_BIN="/usr/lib/jvm/jre-1.7.0-openjdk/bin/java" | ||
<%- end -%> | ||
# Modify this if you'd like to change the memory allocation, enable JMX, etc | ||
JAVA_ARGS="<%= @java_args || @default_java_args -%>" | ||
|
||
# These normally shouldn't need to be edited if using OS packages | ||
USER="<%= @name -%>" | ||
INSTALL_DIR="<%= @install_dir || "/usr/share/puppetdb" -%>" | ||
CONFIG="<%= @config_dir -%>" |
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