[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Can not start a script with systemd



On Mon, Mar 14, 2022 at 12:24:24AM +0200, Alexis Grigoriou wrote:
>  I got it working, but not how I would rather like it. But I will post
> my solution just in case anyone benefits from it. It seems that the
> User= directive does not load the user's environment, so I ommited that
> directive.

As I said, you may need to set various environment variables such as
HOME.  Once you've identified all of the variables that are needed,
and set them in the unit file or in the wrapper script, then you can
do away with that "su" thing.


Reply to: