You are not logged in.
[4.13.7-1-ARCH with Gnome on Xorg]
I want to launch '/usr/bin/selektor' at startup after I get network connectivity either thru WiFi or cable Ethernet.I could easily use gnome-tweak-tool to launch Selektor upon login but I prefer to do so for all users after network connectivity is achieved. So I thought going the "service launch" way was more appropriate (do correct me if that is a dead end.)
I did look at the systemd wiki on services and units at the Autostarting wiki, as well as at this Arch forum post, but I am left with 2 questions:
$ cat /etc/systemd/system/multi-user.target.wants/selektor-launch.service
[Unit]
Description=launch Selektor at boot
[Service]
ExecStart=/usr/bin/selektor
[Install]
WantedBy=multi-user.target
$ sudo systemctl enable selektor-launch.service
Failed to enable unit: Unit file selektor-launch.service does not exist.
1/ The enable instruction above yields an error I don't grok.
2) What is the specific instruction I should include as a dependency for networking.
I thought about After= network.target, placed after the unit description above, but I am not sure this is the favored/best/preferable (don't blast me on the term!) way of doing it.
Cheers.
-ced
Last edited by Cbhihe (2017-10-21 16:53:37)
I like strawberries, therefore I'm not a bot.
Offline
1/ The enable instruction above yields an error I don't grok.
Admin-provided scripts should be put in /etc/systemd/system. Running systemctl enable <yourunit> will symlink the unit in the relevant target directory for you.
2) What is the specific instruction I should include as a dependency for networking.
Adding
After=network.target
in the unit section should do the trick.
Offline
Swell, @iswrong. Thank you.
I like strawberries, therefore I'm not a bot.
Offline
Is selektor not GUI based?
Offline
yes, it is and that induces a number of problem when starting it before gdm comes up. But I am trying things out... and might just have it launch at gdm login in the end. Sigh...
The reason I was trying to do launch Selektor early was it needs about 7 to 10s to load currently available Tor nodes and geolocations. ... sigh.
But waiting seems to be of essence in this case. I don't quite see a way of shaving off seconds.
I like strawberries, therefore I'm not a bot.
Offline