![]() The respective systemd services are automatically created or removed. To set the desired process count, call sudo openproject scale worker=number Please check your current web processes count with: We recommend to have two background worker processes. Background workers are responsible for delivering mails, copying projects, performing backups and deleting resources. By default, one background worker is spawned. Note: Depending on your free RAM on your system, we recommend you raise the default number of background processes. ![]() Where number is a positive number between 1 and round(AVAILABLE_RAM * 1.5).Īfter changing these values, simply restart the web process: sudo openproject restart web To increase or decrease the process count, call sudo openproject config:set OPENPROJECT_WEB_WORKERS=number If it returns nothing, the default process count of 4 applies. Please check your current web processes count with: sudo openproject config:get OPENPROJECT_WEB_WORKERS Each worker will take roughly 300-400MB RAM. The default from 9.0.3 onwards is 4 web processes. ![]() Note: Depending on your free RAM on your system, we recommend you raise the default number of web processes. # if using docker-compose: docker-compose run -rm web ruby -v # if user the docker all-in-one container: docker exec -it openproject ruby -v # if using docker-compose: docker-compose run -rm web bundle exec rake db:migrateĬheck the version of Ruby used by OpenProject: sudo openproject run ruby -v # if user the docker all-in-one container: docker exec -it openproject bundle exec rake db:migrate Manually launch the database migrations: sudo openproject run rake db:migrate # if using docker-compose: docker-compose run -rm web bundle exec rails console # if user the docker all-in-one container: docker exec -it openproject bundle exec rails console Launch an interactive console to directly interact with the underlying Ruby on Rails application: sudo openproject run console Get the current version of OpenProject sudo openproject run bundle exec rake version The OpenProject command line tool supports running rake tasks and known scripts. Run commands like rake tasks or rails console auth sufficient pam_rootok.soĪuth pam_succeed_if.so user = otheruserĪuth sufficient pam_succeed_if.Process control for your OpenProject installation Packaged installation Restart all the OpenProject processes sudo openproject restart If you modified your auth file to the following, any user that was part of group somegroup could su to otheruser without a password. You can modify the /etc/pam.d/su file to allow su without password. Su can only switch user without providing a password if you are root. The sudoers policyĪllows uids that are not in the password database as longĪs the targetpw option is not set. When running commands asĪ uid, many shells require that the '#' be escaped with aīackslash ('\'). See: How does sudo handle $HOME differently since 19.10?) -u user The -u (user) option causes sudo to run the specifiedĬommand as a user other than root. (Starting from Ubuntu 19.10, -H is no longer needed as this is now the default behaviour. Depending on the policy, this may be the default Target user (root by default) as specified by the passwordĭatabase. The HOME environment variable to the home directory of the The relevant parts of man sudo: -H The -H (HOME) option requests that the security policy set sudo -H -u otheruser bash -c 'echo "I am $USER, with uid $UID"' You can do that with su or sudo, no need for both.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |