I'm trying to run "/var/lib/artemis/bin/artemis-service start" script.

-- 
    Vilius

-----Original Message-----
From: Justin Bertram <[email protected]> 
Sent: Monday, December 27, 2021 8:22 PM
To: [email protected]
Subject: Re: running Artemis under non-root user

Can you clarify how you're trying to run Artemis? I assume you're not just 
running the `artemis` command from the bin directory.


Justin


On Mon, Dec 27, 2021 at 6:34 AM Vilius Šumskas 
<[email protected]> wrote:

> Hello,
>
> I‘m trying to configure Artemis 2.20.0 to run under non-root user. So 
> far searching on Google produced zero results 😐
>
> There is a mention of ARTEMIS_USER env variable in broker startup 
> script, so I’ve tried to set ARTEMIS_USER=‘myuser‘ in artemis.profile. 
> It still runs under root for some reason.
>
> I have also tried to use systemd configuration file from here 
> https://medium.com/@hasnat.saeed/setup-activemq-artemis-on-ubuntu-18-0
> 4-76bb4975308b but still no go. As soon as systemd detects that the 
> process runs under root instead of specified user SELinux blocks the 
> execution (as expected).
>
> Is there a way to run Artemis under non-root user, and if yes, how?
>
> --
>    Best Regards,
>
>     Vilius Šumskas
>     Advantes technologies
>     IT manager
>

Reply via email to