我正在尋找一種方法來管理通過簡單配置文件和標準接口監聽不同端口上的幾個Twiggy實例。基於Twiggy的PSGI應用程序的初始化腳本
E.g.我想要一個配置,看起來像
dog 5000 /www/psgi/dog.pl
cow 5001 /www/psgi/holycow.pl
# ...
而且腳本/etc/init.d中所使用像
sudo service twiggy start
# start all services
sudo service twiggy restart dog
# cow remains intact
# ...
我的一些同事建議runit,它看起來很有希望,但是我還不夠熟悉。
在開始編寫我自己的腳本之前,我敢問:是否已經存在?
發現一個[類似的問題](http://stackoverflow.com/questions/5500943/best-init-script-for-running-an-application作爲一個單獨的用戶),但它看起來像我有一些額外的要求。 – Dallaylaen
你要定位哪個init平臺?有好的舊SysV,有暴發戶(Ubuntu),有systemd(Fedora),有BSD風格,還有launchd(OS X)等。 – Charles
@Charles好問題。我們目前使用FreeBSD,但考慮遷移到Linux(SysV) – Dallaylaen