Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 5 Jahren, 3 Monaten
Letzter Beitrag:
vor 5 Jahren, 3 Monaten
Beteiligte Autoren:
Marijan Tomasic, Alexandre Leclerc

Is there a Linux developer, or an advanced Linux user?

Startbeitrag von Marijan Tomasic am 07.05.2013 12:00

Is there a Linux developer, or an advanced Linux user?

I made a very simple linux daemon that only writes to the log file the current date and time every 10 seconds.

When I try to install daemon, I get the following error message:

update-rc.d: warning: WD_daemon start runlevel arguments (2 3 4 5) do not match LSB Default-Start values (3 5)
update-rc.d: warning: WD_daemon stop runlevel arguments (0 1 6) do not match LSB Default-Start values (0 1 2 4 6)

I searched the internet without success.
I have not found a solution that would help.

I tested my daemon on ubuntu desktop, ubuntu server, and Zorin lite linux.



Hi Marijan,

According to the Linux Standard Base (LSB) your deamon should start on run level 3 or 5. And it should stop on runlevel 0, 1, 2, 4, 6. (See for example http://refspecs.linuxbase.org/LSB_3.0.0/LSB-Core-generic/LSB-Core-generic/runlevels.html and http://en.wikipedia.org/wiki/Runlevel)

It make many years I did not put my hands on a linux PC/Server and I don't know if the error is due to WinDev installer or not, but the fix is to make sure you register your daemon to start on a good level and stop on a good level.

Asside that, if this is only for test purposes, you should nevertheless be able to start and stop it manually.

For the actual runlevel scripts, look into /etc/rc.d (usually) and you have subfolders (if I remember right) that contains the start and stop scritps. Make a search to get more informations.

I hope this can help a little.

Best regards,
Alexandre Leclerc

von Alexandre Leclerc - am 07.05.2013 12:26
Thank you for response Alexandre,

Here is more data:

My daemon is installed but not started.

I reviewed the script in the /etc/init.d/ and /etc/rd?.d/ and they really are not synchronized. I tried both manually corrected, but without result.

I think ServiceInstall() command set script with an error,
There is a certain bug Ubuntu distributions?

Best regards,

von Marijan Tomasic - am 08.05.2013 07:51
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.