korsygfhrtzangaiide
Elepffwdsff
/
usr
/
local
/
bin
/
Upload FileeE
HOME
#!/bin/sh # # /etc/init.d/runonce # chkconfig: 3 95 05 # description: runonce provisioning steps # # processname: runonce # This makes sure that runlevel is set sleep 60; for file in /usr/local/runonce.d/*.sh; do if [ ! -f "$file" ]; then continue fi /bin/bash "$file" &>> /var/log/runonce.log filen=$(echo $file | cut -d '/' -f 5) mv "$file" "/usr/local/runonce.d/ran/$filen.$(date +%Y%m%dT%H%M%S)" /bin/logger -t runonce -p local3.info "$file" done if [ -f /usr/local/bin/runonce ]; then sed -i '\#/usr/local/bin/runonce#d' /var/spool/cron/root fi