Friday 15 July 2011

c# - Cannot run mono-service -l:file.lock on Raspberry pi Debain Wheezy -



c# - Cannot run mono-service -l:file.lock on Raspberry pi Debain Wheezy -

i've written service in c#.

it runs fine on windows service. , can run 1 time on raspberry pi using command:

mono-service myservice.exe

however, command service - i.e. run daemon.

currently way know how stop service utilize 'ps' command mono process id number , using 'kill -9 ' kill process.

however doing has unfortunate conseqence unable start service again? and, far way i've managed start 1 time again first reboot.

i understand right way go start service instead:

mono-service -l:/root/myservice.lock myservice.exe

with -l:myservice.lock creating file holding process id of myservice.exe service can kill pid rather pid mono.

however, when service not start @ , no myservice.lock file created. adding sudo makes no difference, don't think permission issue - don't know linux skills limited.

i'm using latest version of software , running on raspberry pi b+.

i'm stuck here. suggestions welcome. give thanks you.

c# service mono mono-service

No comments:

Post a Comment