Hi Pallet Users,
I'm converting my pallet cartes to the 0.8 version and get some
strange behaviour. I'm not sure if this is a bug or if I'm doing
something wrong.
In my configure phase I want to restart a service and then check
if it is running on a port. So I did this:
(defplan verify []
(wait-for-port-listen 9000 :max-retries 15))
(defplan restart []
(exec-checked-script
"Restarting service"
("/etc/init.d/myservice" "restart")))
(defplan configure []
(restart)
(verify))
The problem is that the "restart" command doesn't appear in the
shell script that is getting executed on the target machine.
Adding an additional command, like "sleep 5" solves the
problem. Then the command appear in the shell script.
(defplan restart []
(exec-checked-script
"Restarting service"
("/etc/init.d/myservice" "restart")
("sleep" "5")))
Is this a bug, or am I doing something wrong here?
Thanks, Roman.