warfare | juiceme: should be working again. | 09:43 |
---|---|---|
ac_laptop | hello people | 16:31 |
ac_laptop | is there something specific to fremantle boot process ? | 16:31 |
ac_laptop | I've put this script into /home/user: https://www.rhizogen.es.eu.org/~ac/bugs/maemo/fremantle/batt.sh and | 16:32 |
ac_laptop | written this init script: https://www.rhizogen.es.eu.org/~ac/bugs/maemo/fremantle/init.d/battd | 16:32 |
ac_laptop | then update-rc.d battd defaults and chmod +x /etc/init.d/battd | 16:32 |
ac_laptop | /etc/init.d/battd start works fine but the daemon doesn't start at boot | 16:33 |
ac_laptop | what am I doing wrong ? | 16:33 |
joerg | ac_laptop: to start with, I'm not sure /home/ is already mounted when the initscript runs. Then it#s not exactly best practice to run a user editable script from init with root permissions | 23:18 |
joerg | particularly questionable: the use if "~/" to refer to some HOME dir | 23:20 |
sixwheeledbeast | I see typos... | 23:22 |
joerg | and a "while true; do foo; sleep 42; done" is often smarter like this: "while sleep 42; do foo; done" - easier to abort with an external signal | 23:25 |
sixwheeledbeast | also messybox sleep doesn't do 1m | 23:31 |
sixwheeledbeast | does maemo upstart support sysv init scripts like that? it's been a while. | 23:43 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!