Go to advanced search

by Juel-dk
Thu Apr 17, 2014 9:49 am
Forum: Python
Topic: Python script in init.d? Cant get it working :(
Replies: 4
Views: 6443

Re: Python script in init.d? Cant get it working :(

Then I run the sudo ./HeatController.py, but that gives me these errors: ./HeatController.py: line 1: #!/usr/bin/python: No such file or directory ./HeatController.py: line 6: import: command not found These errors come from bash, not python, so the system has not recognised the #! line in the scri...
by Juel-dk
Thu Apr 17, 2014 9:23 am
Forum: Raspberry Pi OS
Topic: skill: "modprobe" is not support ?!?!
Replies: 3
Views: 821

Re: skill: "modprobe" is not support ?!?!

Thanks for your answers :)

I ended up reinstalling the Whole thing :D

I think you where right something important was misssing :(
by Juel-dk
Thu Apr 17, 2014 9:18 am
Forum: Python
Topic: Python script in init.d? Cant get it working :(
Replies: 4
Views: 6443

Re: Python script in init.d? Cant get it working :(

Hmm ok, I'm kind of a Linux/python newbe ;)

Can you give me a link to that? I cant search "best way" the forum wont let me, to common Words..
by Juel-dk
Thu Apr 17, 2014 8:50 am
Forum: Python
Topic: Python script in init.d? Cant get it working :(
Replies: 4
Views: 6443

Python script in init.d? Cant get it working :(

Hi Fellow Pi Pythons :) I have been struggling with this for hours, now im giving up and turning to you Guys, so i Really hope you can help me. I have a script called HeatController.py (controls the house' heating system.) I would like it to start running via init.d. So I have made this .sh for the ...
by Juel-dk
Sat Apr 12, 2014 9:31 pm
Forum: Raspberry Pi OS
Topic: skill: "modprobe" is not support ?!?!
Replies: 3
Views: 821

skill: "modprobe" is not support ?!?!

Hi Fellow RPi's :) My RPi had a bad startup, so i ran a fsck, and it now boots Again, but it gives me some wierd errors now :( The problem is that when the RPi at startup loads: kernel module snd-bcm2835 kernel module w1_gpio kernel module w1_therm It gives me a skill: "modprobe" is not support For ...
by Juel-dk
Wed Jan 29, 2014 4:39 pm
Forum: Raspberry Pi OS
Topic: Get a log when i start a daemon?
Replies: 9
Views: 1289

Re: Get a log when i start a daemon?

Hmm it says: rc0.d: K01heatcontroller rc1.d: K01heatcontroller rc2.d: S01heatcontroller rc3.d: S01heatcontroller rc4.d: S01heatcontroller rc5.d: S01heatcontroller rc6.d: K01heatcontroller So that's ok right? I have run the sudo update-rc.d heatcontroller enable 2 3 4 5 That made no difference.. Can ...
by Juel-dk
Tue Jan 28, 2014 9:49 pm
Forum: Raspberry Pi OS
Topic: Get a log when i start a daemon?
Replies: 9
Views: 1289

Re: Get a log when i start a daemon?

Ok, i have made a new startup scrip that points to a .sh command. When i run the "sudo /etc/init.d/heatcontroller start" It Works perfectly :D But i have addet it to the startup with: sudo update-rc.d heatcontroller defaults But it just dont start :/ When i run: ls /etc/rc*.d It shows up in the list...
by Juel-dk
Tue Jan 28, 2014 7:46 pm
Forum: Raspberry Pi OS
Topic: Get a log when i start a daemon?
Replies: 9
Views: 1289

Re: Get a log when i start a daemon?

Hi :) Sorry for the late answer, been busy :) I get this: + PATH=/home/pi:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin + DAEMON=/home/pi/heatcontroller.py + NAME=HeatController + DESC=HeatController + test -x /home/pi/heatcontroller.py + exit 0 when I run: sudo bash -x /etc/init.d/he...
by Juel-dk
Tue Jan 21, 2014 3:19 pm
Forum: Raspberry Pi OS
Topic: Get a log when i start a daemon?
Replies: 9
Views: 1289

Re: Get a log when i start a daemon?

really? no one knows this?
by Juel-dk
Mon Jan 20, 2014 9:35 pm
Forum: Raspberry Pi OS
Topic: Get a log when i start a daemon?
Replies: 9
Views: 1289

Get a log when i start a daemon?

Hi All. :) I have made a Pythonscript to control my house heat system :) I have made a daemon in /etc/init.d and run. sudo chmod 755 /etc/init.d/heatcontroller sudo update-rc.d heatcontroller defaults But the script dont start, even when i run: sudo /etc/init.d/heatcontroller start Nothing happens, ...

Go to advanced search