-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a springboot-shutdown.target and Conflicts (#73)
Closes #72 * Add a springboot-shutdown.target and Conflicts * Fixed README.md typos * Including the new systemd target in RPM --------- Signed-off-by: Hubert Quarantel-Colombani <[email protected]>
- Loading branch information
Showing
5 changed files
with
20 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,7 @@ mkdir -p -m 0755 %{buildroot}/opt/springboot/service | |
|
||
install -m 0444 %{_builddir}/systemd/[email protected] %{buildroot}/usr/lib/systemd/system/ | ||
install -m 0444 %{_builddir}/systemd/springboot.target %{buildroot}/usr/lib/systemd/system/ | ||
install -m 0444 %{_builddir}/systemd/springboot-shutdown.target %{buildroot}/usr/lib/systemd/system/ | ||
install -m 0555 %{_builddir}/systemd/springboot-service.sh %{buildroot}/opt/springboot/bin/ | ||
|
||
install -m 0444 %{_builddir}/systemd/env.SAMPLE %{buildroot}/%{_docdir}/%{name}/examples/ | ||
|
@@ -54,6 +55,7 @@ fi | |
|
||
/usr/lib/systemd/system/[email protected] | ||
/usr/lib/systemd/system/springboot.target | ||
/usr/lib/systemd/system/springboot-shutdown.target | ||
/opt/springboot/bin/springboot-service.sh | ||
|
||
%dir %{_docdir}/%{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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Unit] | ||
Description=Shutdown target for all Springboot application services | ||
|
||
Before=shutdown.target | ||
|
||
Conflicts=springboot.target | ||
DefaultDependencies=no | ||
|
||
[Install] | ||
WantedBy=shutdown.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 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