在引导时运行具有多个命令作为服务的脚本

时间:2016-05-04 06:42:04

标签: bash

在启动时作为服务启动脚本的最佳方法是什么。我需要以下命令才能运行。

    #!/bin/bash
  VBoxManage startvm "cuckoo-window" --type gui &
  cd  /opt/cuckoo/utils/
    sudo python api.py --host 0.0.0.0 --port 8090 &
  cd /opt/cuckoo/web/
    sudo python manage.py runserver 0.0.0.0:8008 &
    sudo python /opt/cuckoo/cuckoo.py &

0 个答案:

没有答案