How to use foreman to export to upstart?

孤街浪徒 提交于 2019-12-03 01:36:17

app is default for both the name of the app and the name of the user the application should be run as when the corresponding options (--app and --user) are not used. See the foreman man page for the available options, but note that at the time of this writing the official synopsis did not include [options]:

foreman export [options] <format> [location]

Example:

-bash> sudo foreman export --app foo --user bar upstart /etc/init
Password:
[foreman export] writing: foo.conf
[foreman export] writing: foo-web.conf
[foreman export] writing: foo-web-1.conf
[foreman export] writing: foo-worker.conf
[foreman export] writing: foo-worker-1.conf

Result:

-bash> l /etc/init/
total 80
drwxr-xr-x  12 root  wheel   408 20 Oct 09:31 .
drwxr-xr-x  94 root  wheel  3196 20 Oct 08:05 ..
-rw-r--r--   1 root  wheel   236 20 Oct 09:31 foo-web-1.conf
-rw-r--r--   1 root  wheel    41 20 Oct 09:31 foo-web.conf
-rw-r--r--   1 root  wheel   220 20 Oct 09:31 foo-worker-1.conf
-rw-r--r--   1 root  wheel    41 20 Oct 09:31 foo-worker.conf
-rw-r--r--   1 root  wheel   315 20 Oct 09:31 foo.conf

-bash> l /var/log/foo/
total 0
drwxr-xr-x   2 bar     wheel    68 20 Oct 09:31 .
drwxr-xr-x  45 root    wheel  1530 20 Oct 09:31 ..
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!