Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 12898  / 3 Years ago, wed, july 14, 2021, 4:47:14

I got a simple script called hwtestinit which I installed using



update-rc.d hwtestinit defaults


On the surface, as far as I can inspect, all seems fine , I mean, the following files, all exists, etc.



/etc/rc0.d/K20hwtestinit -> ../init.d/hwtestinit
/etc/rc1.d/K20hwtestinit -> ../init.d/hwtestinit
/etc/rc6.d/K20hwtestinit -> ../init.d/hwtestinit
/etc/rc2.d/S20hwtestinit -> ../init.d/hwtestinit
/etc/rc3.d/S20hwtestinit -> ../init.d/hwtestinit
/etc/rc4.d/S20hwtestinit -> ../init.d/hwtestinit
/etc/rc5.d/S20hwtestinit -> ../init.d/hwtestinit


When I run the script manually, all seems fine, that is, issuing the command



/etc/init.d/hwtestinit start


Yields to the desired results.However, system is not executing the on startup, and I have no idea why. I could not find any mention of it at logs files found under /var/log and wonder ins which other log file I should look at.



The script is dumped below



#! /bin/sh

case "$1" in
start)
smarteventd -c /etc/sctest.ini
lcdaemon --lcdtest
;;
stop)
smarteventd --stop
lcdaemon --stop
;;
*)
echo "Usage: /etc/init.d/hwtestinit {start|stop}"
exit 1
;;
esac

exit 0

More From » 10.04

 Answers
5

I switched to Upstart instead of system V.



Things work fine now. Quite strange though.


[#44259] Thursday, July 15, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
needstar

Total Points: 268
Total Questions: 108
Total Answers: 117

Location: Seychelles
Member since Mon, Jun 28, 2021
3 Years ago
;