mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-01-16 05:12:08 +08:00
add information on how to disable acme.sh timestamps, as journald already provides this functionality
@@ -13,13 +13,21 @@ SyslogIdentifier=acme.sh
|
|||||||
ExecStart=/path/to/acme.sh --cron --home /path/to/acme.sh
|
ExecStart=/path/to/acme.sh --cron --home /path/to/acme.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
**2. Test that it works before creating the timer:**
|
**2. Disable timestamps (optional):**
|
||||||
|
|
||||||
|
`/path/to/acme.sh/account.conf`
|
||||||
|
```
|
||||||
|
NO_TIMESTAMP='1'
|
||||||
|
```
|
||||||
|
|
||||||
|
**3. Test that it works before creating the timer:**
|
||||||
```
|
```
|
||||||
sudo systemctl daemon-reload
|
sudo systemctl daemon-reload
|
||||||
sudo systemctl start acme_letsencrypt
|
sudo systemctl start acme_letsencrypt
|
||||||
|
journalctl -u acme_letsencrypt.service
|
||||||
```
|
```
|
||||||
|
|
||||||
**3. Create systemd timer unit for the service above:**
|
**4. Create systemd timer unit for the service above:**
|
||||||
|
|
||||||
`/etc/systemd/system/acme_letsencrypt.timer`
|
`/etc/systemd/system/acme_letsencrypt.timer`
|
||||||
```
|
```
|
||||||
@@ -35,7 +43,7 @@ Persistent=true
|
|||||||
WantedBy=timers.target
|
WantedBy=timers.target
|
||||||
```
|
```
|
||||||
|
|
||||||
**4. Enable timer:**
|
**5. Enable timer:**
|
||||||
```
|
```
|
||||||
sudo systemctl start acme_letsencrypt.timer
|
sudo systemctl start acme_letsencrypt.timer
|
||||||
sudo systemctl enable acme_letsencrypt.timer
|
sudo systemctl enable acme_letsencrypt.timer
|
||||||
|
|||||||
Reference in New Issue
Block a user