Skip to content

Commit

Permalink
fix socket service example syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Sep 4, 2023
1 parent 21a0285 commit 9a9a83c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions REFERENCE.md
Expand Up @@ -1026,15 +1026,15 @@ systemd::manage_unit {'arcd.socket':
ensure => 'present',
unit_entry => {
'Description' => 'arcd.service',
}
},
socket_entry => {
'ListenStream' => 4241,
'Accept' => true,
'BindIPv6Only' => 'both',
},
install_entry => {
'WantedBy' => 'sockets.target',
}
},
}
systemd::manage_unit{'arcd@.service':
Expand All @@ -1044,12 +1044,12 @@ systemd::manage_unit{'arcd@.service':
unit_entry => {
'Description' => 'arc sever for %i',
},
service_entry => {
'Type' => 'simple',
'ExecStart' => /usr/sbin/arcd /usr/libexec/arcd/arcd.pl,
'StandardInput' => 'socket',
}
},
}
```

##### Remove a unit file
Expand Down
8 changes: 4 additions & 4 deletions manifests/manage_unit.pp
Expand Up @@ -38,15 +38,15 @@
# ensure => 'present',
# unit_entry => {
# 'Description' => 'arcd.service',
# }
# },
# socket_entry => {
# 'ListenStream' => 4241,
# 'Accept' => true,
# 'BindIPv6Only' => 'both',
# },
# install_entry => {
# 'WantedBy' => 'sockets.target',
# }
# },
# }
#
# systemd::manage_unit{'arcd@.service':
Expand All @@ -56,12 +56,12 @@
# unit_entry => {
# 'Description' => 'arc sever for %i',
# },
#
# service_entry => {
# 'Type' => 'simple',
# 'ExecStart' => /usr/sbin/arcd /usr/libexec/arcd/arcd.pl,
# 'StandardInput' => 'socket',
# }
# },
# }
#
# @example Remove a unit file
# systemd::manage_unit { 'my.service':
Expand Down

0 comments on commit 9a9a83c

Please sign in to comment.