brobostigon | morning boys and girls. | 07:28 |
---|---|---|
diplo | Anyone good with systemd ? I basically have one initd script currently that starts a few of our processes, googling to try and find the best way to do that in systemd but seem to be failing. Each service script has one program to start | 09:45 |
diplo | If anyone can point me in the right direction, I basically want to do systemctl software start | 09:46 |
diddledan | diplo: initd scripts are still supported by systemd | 09:46 |
diddledan | if you really want to rebuild them as pukka services you'll need to write a file in /etc/systemd/system/<servicename>.service then systemctl enable <servicename> and finally systemctl start <servicename> | 09:47 |
diplo | inside of that it starts 5 of our programs | 09:48 |
diplo | I read somewhere I could get one systemd script to trigger multiple others though | 09:48 |
diplo | And I can't find how | 09:48 |
diplo | :P | 09:48 |
diplo | But yeah, I know they are stull supported currently but they are being discontinued at some point | 09:49 |
diplo | I may just get the services to shutdown cleanly and then the customers can just run shutdown and the OS can shutdown them properly rather than the customer | 09:50 |
diddledan | the spec for .service files is at https://www.freedesktop.org/software/systemd/man/systemd.service.html | 09:50 |
diplo | Currrently we run service software status and it shows all 5/6 programs are running | 09:50 |
diplo | ta, reading through now | 09:51 |
diddledan | oh, it's split. there's more spec here: https://www.freedesktop.org/software/systemd/man/systemd.unit.html# | 09:52 |
diplo | thanks | 09:55 |
diplo | Tis a bit of a minefield I find :) | 09:58 |
diddledan | yeah, it's not very well documented in an "when you want to do X. you need make Y look like" | 09:59 |
diddledan | way* | 09:59 |
diddledan | it's read the spec and guess | 10:00 |
diddledan | initd scripts were much more understandable because they were scripts | 10:01 |
diplo | I guess so yeah | 10:10 |
diplo | Sorry went for a walk, stretch legs and mind :) | 10:10 |
* diddledan expands his mind | 10:12 | |
diddledan | https://www.youtube.com/watch?v=9CS7j5I6aOc | 10:13 |
diplo | hah | 10:17 |
diplo | This just got more problematic, we do some weird and wonderful stuff in our init scripts :/ | 10:49 |
m0nkey_ | diddledan: You'll find me here :) | 10:53 |
diddledan | :-) | 10:55 |
MooDoo | howdy all | 12:12 |
daftykins | \o | 12:12 |
SuperMatt | ahoy | 12:13 |
foobarry | how can i get awk to print a bash variable that's a string? e.g. export FOO=BAR; awk ' { printf "$BAR" }' | 12:16 |
foobarry | works with integers only | 12:16 |
SuperMatt | I have no idea | 12:20 |
daftykins | it's not anything to do with print vs printf is it? | 12:21 |
foobarry | got it | 12:25 |
foobarry | its just weird with bash variables | 12:25 |
foobarry | cat file | awk blah works with strings | 12:25 |
foobarry | but bash variables requires a mega hack | 12:25 |
foobarry | printf "'$FOO'" | 12:26 |
foobarry | won't be used in prod code, don't worry | 12:26 |
=== Darkstar is now known as Guest21631 | ||
daftykins | put in a quick comment "to be removed later - 12/7/2017" :D | 12:26 |
diddledan | TODO: ignore this forever more | 12:27 |
diddledan | TODOs rarely ever get revisited | 12:28 |
daftykins | ah well as a comment it'll be out of sight and out of mind :> | 12:28 |
diddledan | a bad idea: https://twitter.com/bdsams/status/885113497461370880 | 12:28 |
daftykins | at least you get to visit both and don't have to pick... | 12:29 |
foobarry | ah i know that place | 12:32 |
foobarry | in dorset | 12:32 |
daftykins | did you visit either? :) | 12:32 |
foobarry | i wanted tank museum, kids wanted monkey world | 12:32 |
foobarry | we went to durdle door instead as it was free | 12:33 |
daftykins | oof | 12:33 |
daftykins | sounds like everyone lost :D | 12:33 |
diddledan | I like that. compromise by choosing neither | 12:36 |
daftykins | heh parenting++ | 12:37 |
diddledan | lol @ hantslug mailing list: "In my experience, compiling from source is a uniquely unsatisfying form of masochism :(" | 12:38 |
daftykins | :D | 12:38 |
diplo | I've been to both, down the road from me | 12:54 |
diplo | Kids have been to the tank museum a few times | 12:54 |
diplo | Also donkey world is there as well or close by | 12:55 |
daftykins | D: where is this magical region? | 12:55 |
daftykins | diddledan: pre-emptive: down boy | 12:56 |
diplo | Bovington near wareham | 12:57 |
daftykins | wow that's almost the closest bit of land from Guernsey :> | 12:58 |
diplo | between weymouth and poole | 12:58 |
* daftykins commences swimming | 12:58 | |
daftykins | err... http://www.tankmuseum.org/whats-on/events/bovevt53878 | 13:19 |
diddledan | daleks are a kind of tank | 13:28 |
daftykins | that's true | 13:29 |
foobarry | diplo: will be going to portland for holiday this year again | 14:17 |
diddledan | I think my sdcard reader is killing any cards I put in it | 14:29 |
diplo | Never visited :) | 14:29 |
daftykins | diddledan: you must have angered it | 14:32 |
foobarry | :o | 14:32 |
foobarry | is it acceptable to have a non zero axis? | 14:32 |
foobarry | e.g. values from 5000-10,000 | 14:33 |
diddledan | I don't understand. I've put several cards into it one of which I am sure was working fine last I used it, but each one has ended-up readonly | 14:33 |
daftykins | heh i see that happen _so_ much with Linux users | 14:33 |
foobarry | re-learning R is hard | 15:05 |
foobarry | stupid brain | 15:05 |
diddledan | yarr | 15:05 |
daftykins | an eye path might help | 15:05 |
daftykins | *patch | 15:06 |
diddledan | and a parrot | 15:06 |
diddledan | pieces of 7! pieces of 7 | 15:06 |
diddledan | (that's a parrotty error) | 15:06 |
* daftykins insures 9 | 15:06 | |
diddledan | I know it's the daily fail, but still: http://www.dailymail.co.uk/news/article-4689372/PIERS-MORGAN-Thanks-Don-Jr-smoke-burst-flames.html | 15:26 |
diddledan | https://i.redditmedia.com/z5E_iew_J3mHo5oyX7b4bVA25PYiHv1fpH3WeKl-ca4.jpg?w=376&s=bb809cfffed0b698c95c9fcd77e3c991 | 16:30 |
daftykins | that's no knife! | 16:32 |
zmoylan-pi | you've played knifey spoony before... | 17:40 |
daftykins | :> | 17:46 |
=== PaulW2U_ is now known as PaulW2U |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!