File tree Expand file tree Collapse file tree 3 files changed +37
-0
lines changed Expand file tree Collapse file tree 3 files changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -61,4 +61,18 @@ if(SYSTEMD_FOUND)
61
61
FILES ${CMAKE_CURRENT_BINARY_DIR} /clamav-freshclam.service
62
62
DESTINATION ${SYSTEMD_UNIT_DIR}
63
63
COMPONENT programs )
64
+ configure_file (
65
+ ${CMAKE_CURRENT_SOURCE_DIR} /clamav-freshclam-once.service.in
66
+ ${CMAKE_CURRENT_BINARY_DIR} /clamav-freshclam-once.service @ONLY )
67
+ install (
68
+ FILES ${CMAKE_CURRENT_BINARY_DIR} /clamav-freshclam-once.service
69
+ DESTINATION ${SYSTEMD_UNIT_DIR}
70
+ COMPONENT programs )
71
+ configure_file (
72
+ ${CMAKE_CURRENT_SOURCE_DIR} /clamav-freshclam-once.timer.in
73
+ ${CMAKE_CURRENT_BINARY_DIR} /clamav-freshclam-once.timer @ONLY )
74
+ install (
75
+ FILES ${CMAKE_CURRENT_BINARY_DIR} /clamav-freshclam-once.timer
76
+ DESTINATION ${SYSTEMD_UNIT_DIR}
77
+ COMPONENT programs )
64
78
endif ()
Original file line number Diff line number Diff line change
1
+ [Unit]
2
+ Description=Update ClamAV virus database once
3
+ Documentation=man:freshclam(1) man:freshclam.conf(5) https://docs.clamav.net/
4
+ Wants=network-online.target
5
+ After=network-online.target
6
+
7
+ [Service]
8
+ Type=oneshot
9
+ ExecStart=@prefix@/bin/freshclam
10
+
11
+ [Install]
12
+ WantedBy=multi-user.target
Original file line number Diff line number Diff line change
1
+ [Unit]
2
+ Description=Daily ClamAV virus database update
3
+
4
+ [Timer]
5
+ OnCalendar=daily
6
+ AccuracySec=1h
7
+ RandomizedDelaySec=1h
8
+ Persistent=true
9
+
10
+ [Install]
11
+ WantedBy=timers.target
You can’t perform that action at this time.
0 commit comments