diff --git a/examples/update-firewall-source.service.example b/examples/update-firewall-source.service.example new file mode 100644 index 0000000..b6a05f8 --- /dev/null +++ b/examples/update-firewall-source.service.example @@ -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 diff --git a/examples/update-firewall-source.timer.example b/examples/update-firewall-source.timer.example new file mode 100644 index 0000000..76f8f97 --- /dev/null +++ b/examples/update-firewall-source.timer.example @@ -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