forked from criteo-forks/jenkins
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert to systemd resources (sous-chefs#771)
* Convert to systemd resources Signed-off-by: Robert Detjens <detjensrobert@osuosl.org> * Manually specify java path Older version of systemd require the full path to the java binary. The current method of using node[java] is broken since the java cookbook no longer sets attributes. Signed-off-by: Robert Detjens <detjensrobert@osuosl.org> * appease lints Signed-off-by: Robert Detjens <detjensrobert@osuosl.org> * Add automatic upgrade and upgrade instructions Signed-off-by: Robert Detjens <detjensrobert@osuosl.org> * Exec with /bin/sh to support quotes in args ExecStart does not fully support shell quoting, unlike Runit. Jenkins arguments may be expecting shell quoting, so exec via /bin/sh to correctly interpret them Signed-off-by: Robert Detjens <detjensrobert@osuosl.org> Co-authored-by: davidsainty <>
- Loading branch information
1 parent
f7eb144
commit 3c66833
Showing
18 changed files
with
217 additions
and
196 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 @@ | ||
# Upgrading | ||
|
||
## (9.0.0) Runit to Systemd conversion | ||
|
||
Version 9.0.0 of this cookbook replaced the Runit services for WAR installation and JNLP slaves with Systemd services. | ||
This replacement is done mostly automatically, but some manual cleanup is needed to completely remove Runit. | ||
|
||
What is done automatically: | ||
|
||
- stop / disable the old runit service | ||
- remove the old service files in `/etc/service` and `/etc/init.d` | ||
- create / start / enable the new systemd service | ||
|
||
What needs to be done manually: | ||
|
||
- stop / disable runit manager service (`runit` / `runsvdir-start`) | ||
- uninstall runit |
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
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 |
---|---|---|
|
@@ -16,5 +16,4 @@ | |
supports 'scientific' | ||
supports 'ubuntu' | ||
|
||
depends 'runit', '>= 1.7' | ||
depends 'dpkg_autostart' |
Oops, something went wrong.