passenger-3.0.18 command(s) setting env variables to run commands anywhere.

26 views
Skip to first unread message

DJames

unread,
Jan 7, 2013, 12:35:18 PM1/7/13
to puppet...@googlegroups.com

obviously passenger-status and etc... commands works when you are in the path /usr/lib/ruby/gems/1.8/gems/passenger-3.0.18/bin
but what env file I need to use to set the right variable to run these commands from any path?

cat /etc/redhat-release
CentOS release 6.2 (Final) --->> is my OS.

Denmat

unread,
Jan 7, 2013, 6:31:22 PM1/7/13
to puppet...@googlegroups.com
Hi,

Options are as follows:

set your $PATH.
PATH=$PATH:<yourpath>/bin

Add a path to a file in your /etc/profile.d/<somefilename>

Symlink binaries to /usr/local/bin

If you use the RPM provided by stealthmonkeys (not the cannabis site ;) ) it will do this for you.

Cheers
Den
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/BtscNyEY2uIJ.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

DJames

unread,
Jan 9, 2013, 2:55:31 PM1/9/13
to puppet...@googlegroups.com
created it, but running the commands anywhere still doesnt work.

cat /etc/profile.d/pass.sh
PATH=$PATH:/usr/lib/ruby/gems/1.8/gems/passenger-3.0.18/bin

ln -s /usr/lib/ruby/gems/1.8/gems/passenger-3.0.18/bin /usr/bin
Reply all
Reply to author
Forward
0 new messages