-
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
unknowndevQwQ
authored and
unknowndevQwQ
committed
Dec 13, 2023
1 parent
04c3cc0
commit 1b5106e
Showing
5 changed files
with
30 additions
and
3 deletions.
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
File renamed without changes.
File renamed without changes.
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,17 @@ | ||
[Unit] | ||
Description=Renew certificates acquired via acme.sh | ||
After=network.target network-online.target nss-lookup.target | ||
Wants=network-online.target nss-lookup.target | ||
Documentation=https://https://github.com/acmesh-official/acme.sh/wiki | ||
|
||
[Service] | ||
# If the version of systemd is 240 or above, then uncommenting Type=simple and commenting out Type=exec | ||
#Type=exec | ||
Type=simple | ||
# The --home argument should be the location of the acme.sh configuration directory. | ||
# This is the user unit, by default there is no need to set the --home folder | ||
#ExecStart=/usr/bin/acme.sh --cron --home %h/.acme.sh | ||
ExecStart=/usr/bin/acme.sh --cron | ||
# acme.sh returns 2 when renewal is skipped (i.e. certs up to date) | ||
SuccessExitStatus=0 2 | ||
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=Run acme.sh daily | ||
|
||
[Timer] | ||
OnCalendar=*-*-* 00:00:00 | ||
Persistent=true | ||
|
||
[Install] | ||
WantedBy=timers.target |