Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- echo "[`date`] Executing" > /var/log/shutdown-pulse.log
- # my script to shutdown pulse
- echo "[`date`] Done" > /var/log/shutdown-pulse.log
- root@TanLap:/etc/init.d# ls -l shutdown-pulse
- -rwxr-xr-x 1 root root 77 May 26 12:39 shutdown-pulse
- root@TanLap:/etc/rc0.d# ls -l K02shutdown-pulse
- lrwxrwxrwx 1 root root 24 May 26 12:45 K02shutdown-pulse -> ../init.d/shutdown-pulse
- root@TanLap:/etc/rc6.d# ls -l K02shutdown-pulse
- lrwxrwxrwx 1 root root 24 May 26 12:45 K02shutdown-pulse -> ../init.d/shutdown-pulse
- root@TanLap:/var/log# ls -l shutdown-pulse.log
- ls: cannot access 'shutdown-pulse.log': No such file or directory
Add Comment
Please, Sign In to add comment