Project

General

Profile

how can autostart redmine on centos?

Added by paulo moraes over 13 years ago

Hi gurus,

How can put redmine in autostart, me atual script is :
[root@xxx init.d]# ll
-rwxr-xr-x 1 root root 130 Set 27 11:27 autostartredmine
cat autostartredmine
ruby /var/www/redmine-svn/script/server webrick -e production -d

and I put in init.d but doens't work.
Anyone can help me.

Thanks


Replies (4)

RE: how can autostart redmine on centos? - Added by Felix Schäfer over 13 years ago

You shouldn't use webrick in production, have a look at passenger if you also use apache on that server, mongrel is also an alternative that doesn't require apache.

Other than that: What error(s) do you get with that?

RE: how can autostart redmine on centos? - Added by paulo moraes over 13 years ago

[root@noronha init.d]# service autostartredmine start
/etc/init.d/autostartredmine: line 4: ruby: command not found

why?

RE: how can autostart redmine on centos? - Added by Felix Schäfer over 13 years ago

Well, it seems the init process doesn't have the directory the ruby command is in in its PATH, put the whole path to the ruby command instead of just the command itself.

    (1-4/4)