Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • What user is the script running as (i.e., what directory is ~ in the script referring to when running as a service)? Commented Aug 8, 2023 at 11:10
  • Are you using the full paths of the commands in the script? I assume that the PATH variable of the ubuntu-user does load the commands only via e.g. bashrc, which would not happen for the service. Commented Aug 8, 2023 at 11:30
  • @FelixJN how can i make it happen for the service ? Commented Aug 8, 2023 at 15:29
  • @Kusalananda the username is Ubuntu Commented Aug 8, 2023 at 15:29