Guest User

Untitled

a guest
May 26th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. echo "[`date`] Executing" > /var/log/shutdown-pulse.log
  4. # my script to shutdown pulse
  5. echo "[`date`] Done" > /var/log/shutdown-pulse.log
  6.  
  7. root@TanLap:/etc/init.d# ls -l shutdown-pulse
  8. -rwxr-xr-x 1 root root 77 May 26 12:39 shutdown-pulse
  9.  
  10. root@TanLap:/etc/rc0.d# ls -l K02shutdown-pulse
  11. lrwxrwxrwx 1 root root 24 May 26 12:45 K02shutdown-pulse -> ../init.d/shutdown-pulse
  12.  
  13. root@TanLap:/etc/rc6.d# ls -l K02shutdown-pulse
  14. lrwxrwxrwx 1 root root 24 May 26 12:45 K02shutdown-pulse -> ../init.d/shutdown-pulse
  15.  
  16. root@TanLap:/var/log# ls -l shutdown-pulse.log
  17. ls: cannot access 'shutdown-pulse.log': No such file or directory
Add Comment
Please, Sign In to add comment