mirror of
https://github.com/CISOfy/lynis.git
synced 2025-09-26 11:19:27 +02:00
Updated systemd units
This commit is contained in:
parent
9f7e0775a5
commit
67eae302e1
@ -5,14 +5,17 @@
|
|||||||
#################################################################################
|
#################################################################################
|
||||||
#
|
#
|
||||||
# - Adjust path to link to location where Lynis binary is installed
|
# - Adjust path to link to location where Lynis binary is installed
|
||||||
# - Place this file and the timer file together in the systemd directory
|
#
|
||||||
# (e.g. /etc/systemd/system/)
|
# - Place this file together with the lynis.timer file in the related
|
||||||
# - Run: systemctl enable lynis.service
|
# systemd directory (e.g. /etc/systemd/system/)
|
||||||
|
#
|
||||||
|
# - See details in lynis.timer file
|
||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Lynis security audit and vulnerability scan
|
Description=Security audit and vulnerability scanner
|
||||||
|
Documentation=https://cisofy.com/docs/
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Nice=19
|
Nice=19
|
||||||
@ -21,4 +24,7 @@ IOSchedulingPriority=7
|
|||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/path/to/lynis audit system --cronjob
|
ExecStart=/path/to/lynis audit system --cronjob
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
#EOF
|
#EOF
|
||||||
|
@ -4,17 +4,23 @@
|
|||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
#
|
#
|
||||||
# - Place this file together with the service file in systemd directory
|
# - Place this file together with the lynis.service file in the related
|
||||||
# - Run: systemctl enable lynis.timer
|
# systemd directory (e.g. /etc/systemd/system)
|
||||||
# systemctl start lynis.service
|
#
|
||||||
|
# - Tell systemd you made changes
|
||||||
|
# systemctl daemon-reload
|
||||||
|
#
|
||||||
|
# - Enable and start the timer (so no reboot is needed):
|
||||||
|
# systemctl enable --now lynis.timer
|
||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Daily run for Lynis security audit and vulnerability scan
|
Description=Daily timer for the Lynis security audit and vulnerability scanner
|
||||||
|
|
||||||
[Timer]
|
[Timer]
|
||||||
OnCalendar=daily
|
OnCalendar=daily
|
||||||
|
RandomizedDelaySec=1800
|
||||||
Persistent=false
|
Persistent=false
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user