Guest User

docker.init diff

a guest
Jul 27th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. diff --git a/docker_original.init b/docker.init
  2. index 2e8eb9e..1a1ec80 100644
  3. --- a/docker_original.init
  4. +++ b/docker.init
  5. @@ -22,7 +22,7 @@
  6. # Source function library.
  7. . /etc/init.d/functions
  8.  
  9. -prog="docker"
  10. +prog="dockerd"
  11. unshare=/usr/bin/unshare
  12. exec="/usr/bin/$prog"
  13. pidfile="/var/run/$prog.pid"
  14. @@ -40,7 +40,7 @@ start() {
  15. if ! [ -f $pidfile ]; then
  16. printf "Starting $prog:\t"
  17. echo -e "\n$(date)\n" >> $logfile
  18. - "$unshare" -m -- $exec daemon $other_args &>> $logfile &
  19. + "$unshare" -m -- $exec $other_args &>> $logfile &
  20. pid=$!
  21. touch $lockfile
  22. # wait up to 10 seconds for the pidfile to exist. see
Advertisement
Add Comment
Please, Sign In to add comment