我的系统是ubutnu 16.04,所以我需要将upstart转换为systemd,我需要做的就是添加/etc/systemd/system/gunicorn.service ??
我的新贵是
start on net-device-up
stop on shutdown
respawn
setuid yangxg
chdir /home/yangxg/sites/demo.zmrenwu.com/blogproject
exec ../env/bin/gunicorn --bind unix:/tmp/demo.zmrenwu.com.socket blogproject.wsgi:application
如何将其转换为systemd
[Unit]
Description=My script
[Service]
ExecStart=/usr/bin/my-script
[Install]
WantedBy=multi-user.target
我不清楚这些参数......我是学习枪炮的新手......