1#!/usr/bin/env python3 2# -*- coding: utf-8 -*- 3 4# This file is part of CoCalc: Copyright © 2020 Sagemath, Inc. 5# License: AGPLv3 s.t. "Commons Clause" – read LICENSE.md for details 6 7from __future__ import absolute_import 8from __future__ import print_function 9import os 10import sys 11 12 13def cmd(s): 14 print(s) 15 if os.system(s): 16 sys.exit(1) 17 18 19cmd("smc-stop") 20cmd("smc-start") 21 22