flagflag  
3: 2022-02-18 (Fri) 09:42:09 iseki source 4: 2022-03-07 (Mon) 15:01:29 iseki source
Line 38: Line 38:
*** cron [#o6968d67] *** cron [#o6968d67]
 +**** 失敗 [#ybbf8460]
- %%月一または週一%% 毎日で以下の cronを流す. - %%月一または週一%% 毎日で以下の cronを流す.
- 00 3 1 * * /usr/bin/certbot renew 1>/dev/null 2>&1 && /etc/init.d/httpd restart 1>/dev/null 2>&1+-- %%00 3 1 * * /usr/bin/certbot renew 1>/dev/null 2>&1 && /etc/init.d/httpd restart 1>/dev/null 2>&1%% 
 +-- これだと 更新が無い場合も httpd が再起動する. 
 +#br 
 + 
 +**** 正解は以下 [#l9205dc3] 
 +- cron 
 + 05 4 * * * /usr/bin/certbot renew --post-hook "touch /tmp/certs_changed" 1>/dev/null 2>&1 && /usr/local/bin/restart-network-service 1>/dev/null 2>&1 
 +- /usr/local/bin/restart-network-service 
 + #!/bin/bash 
 + # 
 + if [ ! -f /tmp/certs_changed ]; then 
 +     exit 1 
 + fi 
 + rm /tmp/certs_changed 
 + # 
 + #systemctl restart cockpit 
 + # 
 + systemctl restart ltictr_proxy 
 + sleep 1 
 + systemctl restart jupyterhub 
 + #
#br #br


Front page   New List of Pages Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom)

Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthMay 2024Next Month
Su Mo Tu We Th Fr Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Today

Who's Online

39 user(s) are online (5 user(s) are browsing xpwiki)

Members: 0
Guests: 39

more...

Access Counter

Today : 3987398739873987
Yesterday : 8599859985998599
Total : 2365099323650993236509932365099323650993236509932365099323650993
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com