Skip to content

Commit

Permalink
millora doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jordiprats committed Mar 10, 2017
1 parent 97f823b commit 231e3b0
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions README.md
Expand Up @@ -42,16 +42,35 @@ This module requires pluginsync enabled

### Beginning with systemd

basic example from eyp-kibana:
basic example:

```puppet
systemd::service { 'kibana':
execstart => "${basedir}/${productname}/bin/kibana",
require => [ Class['systemd'], File["${basedir}/${productname}/config/kibana.yml"] ],
before => Service['kibana'],
}
```

This is going to create the following service:

```
[Unit]
[Service]
ExecStart=/usr/bin/kibana
Restart=always
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=kibana
User=root
Group=root
PermissionsStartOnly=false
PrivateTmp=no
[Install]
WantedBy=multi-user.target
```
Please be aware this module defaults (documented in the [reference](#reference) section) differ from systemd's defaults

## Usage

add service dependency:
Expand Down

0 comments on commit 231e3b0

Please sign in to comment.