-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcrontab-reboot-commands
26 lines (14 loc) · 1.35 KB
/
crontab-reboot-commands
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
## 2021-07-18 - commands to put into crontab @reboot
@reboot ( echo -e "\n\nCrontab reboot on: $(date;)" >> /var/log/crontabReboot.log 2>&1 ; )
## 2021-05-13 - suppress the firewall messages on the interserver tignt-VNC
## https://forum.configserver.com/viewtopic.php?t=7147
@reboot ( sleep 2 && /usr/bin/dmesg --console-level 1 && echo "Console-level: $(cat /proc/sys/kernel/printk;)" >> /var/log/crontabReboot.log 2>&1 ; )
### from interserver: way to get perl to run properly 2021-03-23 per Joe Cooper
## also referenced in ./perl/README
@reboot ( sleep 3 && /usr/bin/mount --verbose --bind /home /var/www >> /var/log/crontabReboot.log 2>&1 ; )
### the directory /var/lock keeps getting 'clobbered' after every boot (wondering if we even need the subdirectory??)
@reboot ( sleep 5 && /usr/bin/mkdir --verbose /var/lock/bash/ >> /var/log/crontabReboot.log 2>&1 ; )
### unable to get port 10000 to STAY open after a boot:
@reboot ( sleep 7 && /usr/sbin/iptables --verbose -I INPUT 1 -p tcp --dport 10000 -j ACCEPT >> /var/log/crontabReboot.log 2>&1 ; )
## per john q @ interserver:
@reboot /admin/firstbootkvm yes