Skip to content

Commit e053b53

Browse files
authored
fix(#559): add restart nginx cron (#578)
1 parent 890d056 commit e053b53

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

salt/nginx/init.sls

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,14 @@ nginx:
118118
/etc/ssl/private/PLACEHOLDER.pem:
119119
file.managed:
120120
- replace: False
121+
122+
restart-nginx:
123+
cron.present:
124+
- name: /usr/bin/systemctl restart nginx
125+
- user: root
126+
- minute: '0'
127+
- hour: '3'
128+
- daymonth: '*'
129+
- month: '*'
130+
- dayweek: '*'
131+
- comment: 'Daily NGINX restart'

0 commit comments

Comments
 (0)