-
Notifications
You must be signed in to change notification settings - Fork 445
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make use of stopService loader function in rpm preun template
- update rpm preun-template to match the rpm postinst-template by making use of the `stopService` loader function - make systemv loader-functions consistent in use of `hash` builtin and redirections, and tidy up language in warning message
- Loading branch information
Showing
2 changed files
with
5 additions
and
7 deletions.
There are no files selected for viewing
4 changes: 1 addition & 3 deletions
4
src/main/resources/com/typesafe/sbt/packager/archetypes/java_server/rpm/preun-template
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
${{loader-functions}} | ||
|
||
# Halting ${{app_name}} | ||
echo "Shutdown ${{app_name}}" | ||
service ${{app_name}} stop || echo "Could not stop ${{app_name}}" | ||
stopService ${{app_name}} || echo "Could not stop ${{app_name}}" |
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