IRC chat logs for #ltsp on irc.libera.chat (webchat)


Channel log from 26 July 2020   (all times are UTC)

00:53Faolcu has left IRC (Faolcu!5d6b9313@93.107.147.19, Remote host closed the connection)
01:09vagrantc has joined IRC (vagrantc!~vagrant@unaffiliated/vagrantc)
04:59vagrantc has left IRC (vagrantc!~vagrant@unaffiliated/vagrantc, Quit: leaving)
06:33alkisg has left IRC (alkisg!~alkisg@ubuntu/member/alkisg, Read error: Connection reset by peer)
08:13klausade has joined IRC (klausade!~klaus@host-37-191-195-145.lynet.no)
08:17klausade has left IRC (klausade!~klaus@host-37-191-195-145.lynet.no, Client Quit)
12:44alkisg has joined IRC (alkisg!~alkisg@ubuntu/member/alkisg)
13:29GodFather has joined IRC (GodFather!~rcc@d53-64-7-141.nap.wideopenwest.com)
15:44
<Vercas>
What is the right way to have host-specific services?
15:44
I mean system/root services, not user services.
15:46vsuojanen has left IRC (vsuojanen!~vsuojanen@cable-hml-58568f-194.dhcp.inet.fi, Ping timeout: 240 seconds)
15:49vsuojanen has joined IRC (vsuojanen!~vsuojanen@cable-hml-58568f-194.dhcp.inet.fi)
16:09
<Vercas>
Kludgiest way I can think of is to have a one-time systemd service that runs a bash script which checks the host info, and starts the right stuff.
16:51vagrantc has joined IRC (vagrantc!~vagrant@unaffiliated/vagrantc)
17:47RaphGro has joined IRC (RaphGro!~raphgro@fedora/raphgro)
18:19
<alkisg>
Vercas: if you mean "run a script at boot", it's POST_SERVICE_xx="run something"
18:19
If you mean "only have apache running on client01", it's MASK_SYSTEM_SERVICES
18:19
<Vercas>
First option seems to be what I'm looking for.
18:20
<alkisg>
OK you put such lines under [clients] or under [mac:address] sections
18:20
<Vercas>
Where (roughly) in the boot process is that executed?
18:20
And also what's `xx` in this context?
18:20
<alkisg>
Roughly equivalent to /etc/rc.local of old
18:20
<Vercas>
Ah.
18:20
<alkisg>
I.e. when networking is up etc
18:21
<Vercas>
That sounds alright for my needs.
18:21
I'd expect network to be up all the time. :D
18:21
<alkisg>
xx is whatever string you want, used as documentation
18:21
Yes, compared to "normal boots"
18:21
<Vercas>
Alright, will give this a try.
18:21
<alkisg>
I.e. After=networking in systemd
18:32RaphGro has left IRC (RaphGro!~raphgro@fedora/raphgro, Quit: Please remember your own message. It'll be read as soon as possible.)
21:35
<Vercas>
alkisg: That worked, thank you!
23:49shored has left IRC (shored!~shored@87-100-202-16.bb.dnainternet.fi, Read error: Connection reset by peer)
23:50shored has joined IRC (shored!~shored@87-100-202-16.bb.dnainternet.fi)