summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorajacoutot <ajacoutot@openbsd.org>2017-03-20 15:45:14 +0000
committerajacoutot <ajacoutot@openbsd.org>2017-03-20 15:45:14 +0000
commit4639d931d34161bddff009cc8b5a5df09d35855a (patch)
tree1c3f64849ba842da29c78329465eb3557ace5710
parentAdd command line option -f to specify alternative config file. (diff)
downloadwireguard-openbsd-4639d931d34161bddff009cc8b5a5df09d35855a.tar.xz
wireguard-openbsd-4639d931d34161bddff009cc8b5a5df09d35855a.zip
Simplify cron(8) job example.
input from jmc@ ok tb@ deraadt@
-rw-r--r--usr.sbin/acme-client/acme-client.116
1 files changed, 4 insertions, 12 deletions
diff --git a/usr.sbin/acme-client/acme-client.1 b/usr.sbin/acme-client/acme-client.1
index abf84dd8a0c..1fde638efde 100644
--- a/usr.sbin/acme-client/acme-client.1
+++ b/usr.sbin/acme-client/acme-client.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: acme-client.1,v 1.20 2017/01/28 17:53:17 jmc Exp $
+.\" $OpenBSD: acme-client.1,v 1.21 2017/03/20 15:45:14 ajacoutot Exp $
.\"
.\" Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: January 28 2017 $
+.Dd $Mdocdate: March 20 2017 $
.Dt ACME-CLIENT 1
.Os
.Sh NAME
@@ -107,16 +107,8 @@ as above:
A daily
.Xr cron 8
job can renew the certificates:
-.Bd -literal -offset indent
-#! /bin/sh
-
-acme-client www.example.com
-
-if [ $? -eq 0 ]
-then
- /etc/rc.d/httpd reload
-fi
-.Ed
+.Pp
+.Dl acme-client www.example.com && rcctl reload httpd
.Sh SEE ALSO
.Xr openssl 1 ,
.Xr acme-client.conf 5 ,