#garfield | Logs for 2016-12-10

Back
[12:01:04] <Tom_L> rue_bed how can i get zlog to start up every time the machine is turned on?
[12:01:08] <Tom_L> ie power outtage
[12:01:38] <Tom_L> dos was autoexec.bat what's linux's version of that?
[12:18:06] <Tom_L> something like this? logbot.sh
[12:18:11] <Tom_L> startbot()
[12:18:13] <Tom_L> {
[12:18:22] <Tom_L> cd /home/tom/src/logbot/
[12:18:34] <Tom_L> nohup python logbot.py $
[12:18:37] <Tom_L> }
[12:18:45] <Tom_L> startbot "$@"
[12:18:50] <Tom_L>  
[12:18:52] <Tom_L> ??
[12:20:00] <Tom_L> also what file do i add that to so it gets executed on startup?
[12:20:25] <Tom_L> btw, it's time to get up!!!
[12:21:25] <Tom_L> doesn't happen much but if i loose power, the pc restarts but the bot doesn't
[12:23:42] <rue_house> after the new startup system I dont know
[12:23:57] <Tom_L> what about the old one?
[12:24:10] <Tom_L> the server starts without any login on the new one
[12:24:11] <rue_house> you have to write a service, and make it part of the dependencies of booting the computer
[12:24:28] <Tom_L> you make it sound too complicated
[12:24:36] <rue_house> if you do alt-f2 thru alt-f6 you will get a console
[12:24:42] <rue_house> yea, they really messed it up
[12:24:43] <Tom_L> i just want a program to run and stay resident upon boot
[12:25:02] <rue_house> yea
[12:25:09] <Tom_L> would ^^ that script run ok?
[12:25:16] <Tom_L> if i put it in the init.d directory?
[12:26:45] <rue_house> init.d is usually just like modules-available, you need to have a link or copy in another dir to make it happen
[12:27:02] <Tom_L> simlink?
[12:27:09] <rue_house> there used to be dirs based on the 'runlevel'
[12:27:28] <Tom_L> i miss dos in this regard
[12:27:30] <rue_house> which is usually 2, so I'd put a link in /etc/rc2.d/
[12:27:39] <rue_house> its becomming quite a mess
[12:28:01] <Tom_L> i gotta leave but i wanna get that working today
[12:28:04] <Tom_L> willing?
[12:28:05] <rue_house> there used to be simple examples one count use to copy too
[12:28:16] <rue_house> I just woke up, I cant even think yet
[12:28:37] <Tom_L> drink some breakfast
[12:28:59] <rue_house> but I'v also had problems with trying to start programs that dont autobackground THEMSELVS
[12:29:20] <rue_house> I have 3 machines that do house automation stuff that dont always start all their services on boot
[12:29:21] <Tom_L> do i need that nohup in the line though?
[12:29:25] <Tom_L> to keep it resident?
[12:29:56] <rue_house> in theyor no, but it might not work to try to use & to background it
[12:30:12] <rue_house> nohup just keeps a program from being killed later
[12:30:18] <Tom_L> & at the end of the line?
[12:30:21] <rue_house> backgrounding it during boot is the problem
[12:30:44] <rue_house> I have not successfully started a 'service' that didn't background ITSELF
[12:31:16] <rue_house> & backgrounds a process on any normal situation, but when you use it in a script, esp a boot script, it dosn't seem to work
[12:32:42] <rue_house> there is a util called 'bg' (background) but I cant find the man page for it
[12:32:47] <rue_house> it might do it
[12:32:54] <rue_house> I'm go eat and things
[12:58:41] <Jymmmm> rue_house: Isn't it &&bg or somethign like that?
[13:04:29] <rue_house> no
[13:04:38] <rue_house> there is a ultil called bg
[13:05:35] <rue_house> oh, it only works on already backgrounded jobs
[13:06:06] <Jymmm> https://embraceubuntu.com/2005/09/07/adding-a-startup-script-to-be-run-at-bootup/
[13:06:50] <Jymmm> yeah bg and fg
[20:32:21] <Tom_L> yay! i think i got it to start on boot
[22:35:38] <Jymmm> rue_house: I'm thinking I might cast the innards of the rocket stove using mortar (I have 50lbs on hand) or clay
[22:36:24] <rue_shop3> only the flue is insulated...
[22:36:41] <rue_shop3> the steel woulnd't make a diff if the outside of it is insulated
[22:37:41] <Jymmm> I mean for the burn chamber / internal flue - Then I don't need to fabricate anything (per se)
[22:37:56] <Jymmm> just bolt it in the drum
[22:39:04] <Jymmm> rue_house: mortar and perlite that is
[22:40:44] <Tom_itx> Jymmm do you know how to get rid of the apache message on a webpage?
[22:41:19] <Tom_itx> http://tom-itx.no-ip.biz:81/~tom-itx/
[22:41:23] <Tom_itx> like that
[22:42:43] <Jymmm> Tom_itx: googled "remove apache footer" Results = http://www.ducea.com/2006/06/15/apache-tips-tricks-hide-apache-software-version/
[22:48:48] <Tom_itx> i'll try it once i have access again