$ apt-get install supervisor
新建一个配置文件
/etc/supervisor/conf.d/demo.conf
[program:demo] command=/usr/local/bin/mono demo.exe -d user=www-data stderr_logfile = /var/log/supervisor/demo-err.log stdout_logfile = /var/log/supervisor/demo-stdout.log directory=/var/www/demo/
打开控制台
$ sudo supervisorctl
更新和运行
$ supervisor>update $ supervisor>start demo