×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Aug 2008
    Posts
    5

    How to kill daemon while uninstall myapp

    My app has one executable ,it can run as non-gui or gui mode.When it runs as a daemon,I did uninstall the app in the application manager,but the daemon still running in the memory.
    I create a prerm file like this.
    exec /usr/bin/aegis-exec -s -u user -l "killall MyDaemon"
    it doesn't work too.Even more,I reinstall the app ,if there is no process named MyDaemon,it reports some errors.So i changed the sentences like this:
    count='ps -ef|grep MyDaemon'
    if [$count -gt 1];then
    exec /usr/bin/aegis-exec -s -u user -l "killall MyDaemon"
    fi
    It doesn't work too.The dpkg report that 'ps' not found.

  2. #2
    Registered User
    Join Date
    Sep 2011
    Posts
    449

    Re: How to kill daemon while uninstall myapp

    Just a guess,

    count=`ps -ef|grep MYDaemon`

    Are you using back quote here.. atleast your post shows it as normal quote.

    Also note that you need to add the following to the manifest.aegis file for giving the necessary permissions for the maintainer scripts.

    <request context="INSTALL">
    <credential name="CAP::kill" />
    </request>

    For details please see this link

  3. #3
    Registered User
    Join Date
    Aug 2008
    Posts
    5

    Re: How to kill daemon while uninstall myapp

    Thanks,kusumk!!!
    The problem was sovled. Just add this
    <aegis>
    <request context="INSTALL">
    <credential name="CAP::kill" />
    </request>
    </aegis>
    to the manifest.aegis file.
    And the prerm file simple add this "killall MyDaemon".
    Btw,I'm actually make mistake by using normal quote.
    Thanks again.

Similar Threads

  1. How to kill a process ? I can kill tasks, but...
    By protochip in forum Symbian
    Replies: 2
    Last Post: 2008-10-23, 14:05
  2. Replies: 4
    Last Post: 2008-06-14, 17:51
  3. Uninstall extra SIS files at uninstall time
    By rob_savageminds in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2007-11-01, 22:47
  4. MyApp.exe
    By Devang Shah in forum Symbian
    Replies: 1
    Last Post: 2005-04-18, 10:59

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×