Advertisement
Guest User

Untitled

a guest
Jun 14th, 2013
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. author 'Bradley Ayers'
  2. description 'Enables user job "start on" stanzas to be honored at boot'
  3.  
  4. task
  5. # initctl doesn't work before dbus starts
  6. start on started dbus
  7.  
  8. script
  9. cat /etc/passwd | while read line
  10. do
  11. user=`echo $line | cut -d: -f1`
  12. home=`echo $line | cut -d: -f6`
  13. if [ -d "$home/.init" ]
  14. then
  15. su $user -c "initctl status rc-sysinit"
  16. fi
  17. done
  18. # dbus seems to start pretty late, so user jobs should listen on this
  19. # event rather thqn on net-device-up or anything.
  20. initctl emit user-jobs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement