Revision a34d8cc0

b/daemons/daemon-util.in
46 46
  echo "@LOCALSTATEDIR@/run/ganeti/$1.pid"
47 47
}
48 48

  
49
_daemon_executable() {
50
  echo "@PREFIX@/sbin/$1"
51
}
52

  
49 53
# Checks whether the local machine is part of a cluster
50 54
check_config() {
51 55
  local server_pem=@LOCALSTATEDIR@/lib/ganeti/server.pem
......
147 151

  
148 152
  start-stop-daemon --start --quiet --oknodo \
149 153
    --pidfile $(_daemon_pidfile $name) \
150
    --startas "@PREFIX@/sbin/$name" \
154
    --startas $(_daemon_executable $name) \
151 155
    -- $args "$@"
152 156
}
153 157

  

Also available in: Unified diff