LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Script to run at boot (https://www.linuxquestions.org/questions/debian-26/script-to-run-at-boot-225932/)

robbow52 09-03-2004 06:35 PM

Quote:

Originally posted by Dead Parrot
Well, the script seems to be executed during boot, and that's good news. :)
Next I'd suggest that you modify the /etc/init.d/local script as follows:

Code:

#!/bin/sh
if [ -x /usr/local/sbin/SentryII ]; then
        /usr/local/sbin/SentryII daemon -c ./SentryII.ini
fi

Also, I'd suggest that you check the documentation that came with this Sentry program to see if any unusual actions are required to automatically start the daemon (editing /etc/group or something like that).

This did not work either :-(...

Here is the end of the boot when it loads the script:

/etc/init.d/local: line 4: 3781 Segmentation fault /usr/local/sbin/SentryII daemon -c ./SentryII.ini

Actually, the SentryII daemon is software for my UPS. There were some issues with it and the actual install had to be hacked to work... It will not start per the documentation because of that. I will contact the manufacturer!

Thanks for all the help. It would appear to be so simple!

Dead Parrot 09-03-2004 08:55 PM

Quote:

/etc/init.d/local: line 4: 3781 Segmentation fault /usr/local/sbin/SentryII daemon -c ./SentryII.ini
Seems like my suggestion made it worse. :(

I've got one or two setuid executables on my desktop system but quite likely it's not safe to setuid any executables on a server system. The Debian init process SHOULD be able to execute any app from any /sbin/ (if both the owner and the group of this executable file are root) without any problems. I'm flat out of further suggestions. :scratch:

robbow52 09-03-2004 09:04 PM

Quote:

Originally posted by Dead Parrot
Seems like my suggestion made it worse. :(

I've got one or two setuid executables on my desktop system but quite likely it's not safe to setuid any executables on a server system. The Debian init process SHOULD be able to execute any app from any /sbin/ (if both the owner and the group of this executable file are root) without any problems. I'm flat out of further suggestions. :scratch:

Thanks for your ideas. I'll see what the manufacturer says and I'll post their answer if any!


All times are GMT -5. The time now is 04:16 PM.