Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net-mgmt/icingaweb2-module-director: Enable Icinga Director Backgroun…
…d Daemon Deploys in the director don't work/finish since the last update. The reason is, that the update didn't enable the Icinga Director Background Daemon, that has been mandatory since 1.7.0, see https://github.com/Icinga/icingaweb2-module-director/blob/master/doc/75-Background-Daemon.md PR: 269227 Reported by: flo Sponsored by: Netzkommune GmbH
- Loading branch information
Showing
5 changed files
with
48 additions
and
4 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
29 changes: 29 additions & 0 deletions
29
net-mgmt/icingaweb2-module-director/files/icinga-director.in
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 @@ | ||
#!/bin/sh | ||
|
||
# PROVIDE: icinga_director | ||
# REQUIRE: LOGIN | ||
# KEYWORD: shutdown | ||
# | ||
# Add these lines to /etc/rc.conf.local or /etc/rc.conf | ||
# to enable this service: | ||
# | ||
# icinga_director_enable (bool): Set to NO by default. | ||
# Set it to YES to enable icinga_director. | ||
# icinga_director_user: The user account used to run the daemon. | ||
# Default: %%DIRECTOR_USER%% | ||
|
||
. /etc/rc.subr | ||
|
||
name=icinga_director | ||
rcvar=icinga_director_enable | ||
|
||
load_rc_config $name | ||
|
||
: ${icinga_director_enable:="NO"} | ||
: ${icinga_director_user:="%%DIRECTOR_USER%%"} | ||
|
||
pidfile=/var/run/icinga-director/${name}.pid | ||
command=/usr/sbin/daemon | ||
command_args="-c -f -P $pidfile %%PREFIX%%/bin/icingacli director daemon run" | ||
|
||
run_rc_command "$1" |
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