-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a6e780b
commit fd880b4
Showing
3 changed files
with
31 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,11 @@ | ||
# acme.sh-systemd | ||
systemd service for automatic Let's Encrypt(for acme.sh)renewals | ||
systemd service for automatic Let's Encrypt(for acme.sh) renewals | ||
The timer unit should be enabled. | ||
|
||
How to use | ||
|
||
mkdir -pm 0700 "/{etc,var/log}/acme.sh" | ||
|
||
add LOG_FILE='/var/log/acme.sh/acme.sh.log' | ||
|
||
acme.sh --home /etc/acme.sh command ...[parameters].... |
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,12 @@ | ||
[Unit] | ||
Description=Renew Let's Encrypt Certificates | ||
After=network.target network-online.target nss-lookup.target | ||
Wants=network-online.target nss-lookup.target | ||
[Service] | ||
# If the version of systemd is 240 or above, then uncommenting Type=simple and commenting out Type=exec | ||
#Type=exec | ||
Type=simple | ||
User=root | ||
ExecStart=/usr/bin/acme.sh --cron --home /etc/acme.sh | ||
Restart=on-failure |
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,9 @@ | ||
[Unit] | ||
Description=Bimonthly check for acme.sh(Let's Encrypt) renewals | ||
|
||
[Timer] | ||
OnCalendar=*-1/2-01 00:00:00 | ||
Persistent=yes | ||
|
||
[Install] | ||
WantedBy=timers.target |