You are not logged in.

#1 2021-06-21 09:58:44

TesirFSM42
Member
Registered: 2021-06-21
Posts: 1

Trying to create a systemd user service to automatically run openrgb p

I just want to automatically run this command:

openrgb -p usual (name of the profile)

To try this, I created a .service file in /etc/systemd/system, which looks like this:

https://drive.google.com/drive/folders/ … sp=sharing

The Exec file is located in /usr/bin and looks like this:

https://drive.google.com/drive/folders/ … sp=sharing


Did I do something wrong, because It doesn't work.

Thanks in advance

Offline

#2 2021-06-21 12:55:27

buzzwallard
Banned
Registered: 2021-05-29
Posts: 53

Re: Trying to create a systemd user service to automatically run openrgb p

TesirFSM42 wrote:

Did I do something wrong, because It doesn't work.

Thanks in advance

I have learned that the first stop in diagnosis is a look at the Arch wiki. It can be a slog because it presents a comprehensive analysis and tries to touch all the nuances of every little case. Worth the effort though.

For you with this issue I suggest you have a look here

https://wiki.archlinux.org/title/System … d_services

Good luck.

Last edited by buzzwallard (2021-06-21 12:57:34)

Offline

#3 2021-06-21 13:00:42

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Trying to create a systemd user service to automatically run openrgb p

Please post the contents of the relevant files directly onto the forums. Most people here won't follow links to download random files.

The first obvious mistake is that the service file is in the wrong location...
https://wiki.archlinux.org/title/System … asic_setup

Last edited by Slithery (2021-06-21 13:02:34)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#4 2021-06-21 14:17:30

lmn
Member
Registered: 2021-05-09
Posts: 93
Website

Re: Trying to create a systemd user service to automatically run openrgb p

A systemd service does not inherit your environment.
So depending on where that profile is stored, it could be not found.

Also you can call  openrgb directly in the service file, so your script not strictly needed.
See the openrgb wiki for an example.

As a side note:
your script is missing a shebang line. I don't know how a missing one is handled (I'd assume default to /bin/sh or user shell).

Offline

Board footer

Powered by FluxBB