diff options
-rw-r--r-- | manifests/vserver.pp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/manifests/vserver.pp b/manifests/vserver.pp index cfa5842..6b514d5 100644 --- a/manifests/vserver.pp +++ b/manifests/vserver.pp @@ -84,7 +84,7 @@ define vserver($ensure, $context, $in_domain = '', $mark = '', $legacy = false, present: { # don't start or stop the vserver, just make sure it exists, we just run a dummy status test here - exec { "vserver ${vs_name} status": + exec { "test -e \$(readlink -f /etc/vservers/${vs_name}/vdir)": require => Exec["vs_create_${vs_name}"], alias => "vs_restart_${vs_name}", } |