[
https://issues.apache.org/jira/browse/AMQ-9690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17949109#comment-17949109
]
Lin Cong commented on AMQ-9690:
-------------------------------
I followed the instructions from
[https://activemq.apache.org/components/classic/documentation/unix-shell-script
|https://activemq.apache.org/components/classic/documentation/unix-shell-script]to
run ActiveMQ as a Unix daemon on both RHEL and Ubuntu. One of the steps
involves running {{chown -R activemq:users apache-activemq-<version>}} before
starting the broker to manually change the owner of the
{{apache-activemq-<version>}} directory.
If this step is skipped, the files under {{apache-activemq-<version>}} will all
be owned by root. Wondering how only the {{data/}} subdirectory under
{{apache-activemq-<version>}} has a different owner than the rest.
> activemq always creates the data directory as root when run as an init.d
> service
> --------------------------------------------------------------------------------
>
> Key: AMQ-9690
> URL: https://issues.apache.org/jira/browse/AMQ-9690
> Project: ActiveMQ Classic
> Issue Type: Bug
> Components: Distribution
> Affects Versions: 6.1.6, 5.18.7
> Reporter: Rod Allen
> Priority: Minor
>
> when following instructions from
> [https://activemq.apache.org/components/classic/documentation/unix-shell-script]
> to create an init.d or systemd script, the function in the main activemq
> will create the data directory as the root user even if user is specified in
> the env/setenv and copied to /etc/default/activemq. This can be seen on any
> RHEL 8 like Linux such as Rocky Linux 8. Follow the steps in the linked
> article, delete the $ACTIVEMQ_DATA directory and the service script will
> create the directory as root but cannot be written to as the non-root user so
> the service cannot be stopped. Workaround of course is to just manually
> create the data directory.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact