meta(docs): Add systemd example files
This commit is contained in:
parent
74a6f42171
commit
719ee22276
12
examples/update-firewall-source.service.example
Normal file
12
examples/update-firewall-source.service.example
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=firewalld direct rules generator
|
||||||
|
After=multi-user.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
RemainAfterExit=no
|
||||||
|
Environment='PATH=/usr/local/sbin:/usr/local/bin:/usr/bin' 'UFS_LOGLEVEL=INFO'
|
||||||
|
ExecStart=/opt/miniconda3/envs/update-firewall-source/bin/python /opt/python/update-firewall-source/dev/update-firewall-source.py
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
13
examples/update-firewall-source.timer.example
Normal file
13
examples/update-firewall-source.timer.example
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Run firewalld direct rules generator
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=
|
||||||
|
OnCalendar=4,5,6:00,15,30,45 Asia/Shanghai
|
||||||
|
OnCalendar=1,10,14,18,22:00 Asia/Shanghai
|
||||||
|
OnBootSec=5min
|
||||||
|
RandomizedDelaySec=2min
|
||||||
|
Persistent=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
Loading…
x
Reference in New Issue
Block a user