You are not logged in.
I'm trying to make some system and user services run when I create a WIFI access point. I'm doing it by adding some NetworkManager dispatcher scripts that will do `systemctl start wlan-ap.target` when the AP is up. Then I let my custom system and user services depend on the `wlan-ap.target` by `WantedBy=wlan-ap.target`.
But when I `systemctl --user enable foo.service`, which depends on `wlan-ap.target`:
Unit /home/fishbone/.config/systemd/user/foo.service is added as a dependency to a non-existent unit wlan-ap.target.
I can guess systemd is recognizing `wlan-ap.target` as a user target?
Last edited by FishBoneEK (2024-05-30 10:12:24)
Offline
Offline
Cool, thanks seth
Guess I will need to try another approach
Offline
There're a couple of approaches in the linked SE thread.
(You can also cut out the middleman and just use a foo@.service that runs some user specific script in a defined location and as that UID)
Offline