#!/usr/bin/env python
# -*- coding: utf-8 -*-

# This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
# License: AGPLv3 s.t. "Commons Clause" – read LICENSE.md for details

from __future__ import absolute_import
from __future__ import print_function
import os
import sys


def cmd(s):
    print(s)
    if os.system(s):
        sys.exit(1)


cmd("smc-stop")
cmd("smc-start")
