
Sample /efs/scripts/push-reboot-notification that push/send message to iOS and Android from Linux CLI script: My cron /efs/scripts/push-reboot-notification Hence, the developer and sysadmin need to log in manually into the box and add ssh keys using a keychain script. However, this fails if the server rebooted for a kernel update. To keep it simple, Nginx would use ssh to send TLS files to all cluster nodes. Specific jobs at AWS need working ssh to replicate cluster config and TLS file replication done using hooks. Getting push notification when the Linux system comes online For further information read out tutorial on cron jobs. # This to start/stop/restart crond on systemd enabled distro such centos 7.x/debian/ubutnu/arch #įor Debian/Ubuntu Linux with systemd, try: If you are using modern distro with systemd, try the following systemctl command Under Debian / Ubuntu Linux use update-rc.d as follows to turn on service on boot: # Commands to start/stop/restart crond for Linux Execute Cron Job # Under RHEL / CentOS / Fedora, you need to use chkconfig (ntsysv) command to enable crond on boot: You also need to enable crond service via sys v / BSD init style system. In this example, 600 seconds and after that time clean-static-cache.sh gets executed at boot time. The sleep command to add delay for a specified amount of time.

The syntax is as sleep 300 & /home/wwwjobs/clean-static-cache.sh

Say your script needs to be run only after 5 minutes. How to run a cron job automatically after server reboot It is a super-simple way to run scripts on boot using cron jobs. Run a script called /home/vivek/bin/installnetkit.sh This is an easy way to give your users the ability to run a shell script or command at boot time without root access. path /to /path /to /path /to / command arg1 arg2
