X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=functions.zone;h=3cac124b83175c0e735394fafee768f2122c96d6;hb=5bb2429af132a2111e45ecfb8e148fb6c100f9ec;hp=defed8dd0333f1a53b425a44cde0a92ce7b6f213;hpb=cf706534b87b70d44030dfb83d79f66ccaaa0738;p=people%2Fms%2Fnetwork.git diff --git a/functions.zone b/functions.zone index defed8dd..3cac124b 100644 --- a/functions.zone +++ b/functions.zone @@ -74,6 +74,26 @@ function zone_get_hook() { config_get_hook $(zone_dir ${zone})/settings } +function zone_start() { + # This function will bring up the zone + # 'asynchronously' with help of systemd. + + local zone=${1} + assert zone_exists ${zone} + + service_start "network@${zone}" +} + +function zone_stop() { + # This function will bring down the zone + # 'asynchronously' with help of systemd. + + local zone=${1} + assert zone_exists ${zone} + + service_stop "network@${zone}" +} + function zone_create() { local zone=${1} local hook=${2}