Skip to content

Commit

Permalink
systemd::sysvwrapper configurable restart
Browse files Browse the repository at this point in the history
  • Loading branch information
jordiprats committed Jun 7, 2019
1 parent 42c6028 commit 054fc3a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 0.2.7

* configurable restart for **systemd::sysvwrapper**

## 0.2.6

* added support for **Debian 10**
Expand Down
3 changes: 2 additions & 1 deletion manifests/sysvwrapper.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
$servicename = $name,
$check_time = '10m',
$wait_time_on_startup = '1s',
$restart = 'no',
) {

if versioncmp($::puppetversion, '4.0.0') >= 0
Expand Down Expand Up @@ -38,7 +39,7 @@
"${initscript}.sysvwrapper.status",
] ],
forking => true,
restart => 'no',
restart => $restart,
pid_file => "/var/run/${servicename}.sysvwrapper.pid",
}

Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eyp-systemd",
"version": "0.2.6",
"version": "0.2.7",
"author": "eyp",
"summary": "management of systemd services, services dropins, sockets, timers, timesyncd, journald, logind and resolved",
"license": "Apache-2.0",
Expand Down

0 comments on commit 054fc3a

Please sign in to comment.