This page presents code associated with the module/unit named above.
Summary of changes
Back to Git index
Licence (AGPLv3)
Unit-files/logrotate.timer
[Unit]
Description=Daily rotation of log files
Documentation=man:logrotate(8) man:logrotate.conf(5)
[Timer]
OnCalendar=daily
AccuracySecs=1us
Persistent=true
[Install]
WantedBy=timers.target
Unit-files/httpd-apachetop.service
[Unit]
Description=Apachetop inside tmux
After=network.target httpd.service
Documentation=man:tmux(1)
Documentation=man:apachetop(1)
[Service]
Type=notify
# EnvironmentFile=/etc/sysconfig/httpd
ExecStart=/root/monitor-techrights.sh
# ExecReload=/usr/sbin/httpd $OPTIONS -k graceful
ExecStop=/usr/bin/tmux kill-session -t atop
KillSignal=SIGCONT
PrivateTmp=true
[Install]
WantedBy=multi-user.target
Unit-files/search-db.sh
#!/bin/bash
# Licence: Public Domain, feel free to share as you see fit
#
# Author: Roy Schestowitz
echo Input string: $1
STRING=$1
grep -A2 -B2 --color=always -- $STRING /home/roy/Desktop/Text_Workspace/all-db.txt
Unit-files/.directory-listing-ok
Unit-files/rsyslog
# the systemd logrotate.timer has to be adjusted too
/var/log/syslog
{
rotate 14
daily
missingok
compress
delaycompress
sharedscripts
postrotate
/usr/lib/rsyslog/rsyslog-rotate
endscript
}
/var/log/mail.info
/var/log/mail.warn
/var/log/mail.err
/var/log/mail.log
/var/log/daemon.log
/var/log/kern.log
/var/log/auth.log
/var/log/user.log
/var/log/lpr.log
/var/log/cron.log
/var/log/debug
/var/log/messages
{
rotate 4
weekly
missingok
notifempty
compress
delaycompress
sharedscripts
}
Back to main index