Results 1 to 8 of 8

Thread: I need to stop a running service, then edit its run/conf file

Hybrid View

  1. #1
    Join Date
    Apr 2013
    Location
    The great grey north
    Beans
    135
    Distro
    Ubuntu 12.04 Precise Pangolin

    Question I need to stop a running service, then edit its run/conf file

    Hello,

    I recently installed CrashPlan (a backup program) on my new computer running Ubuntu 12.04 x64 desktop.

    The initial backup has stopped when it reached around 40/45%, with a program specific error.
    Googling it gave me this seemingly easy 2 steps solution: stop the service & edit one number in its run config file.
    Being such a Ubuntu noob, I am uncertain how to stop the service, and therefore unable to edit the config file.

    The how to fix is at: http://askubuntu.com/questions/12805...grade-to-12-04 (look for Christian Riedel's answer)

    The how to stop the background engine service "recipe" is at the bottom of http://support.crashplan.com/doku.ph...ine?redirect=1

    When I navigate to usr/local/crashplan/bin, I see the file "CrashPlanEngine", but then what am I supposed to do there?
    I have 4 options: Run in terminal, Display, Cancel, and Run
    Last edited by docJ; April 21st, 2013 at 10:41 AM. Reason: solved
    DocJ

  2. #2
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: I need to stop a running service, then edit its run/conf file

    First you need to navigate correct directory...
    Code:
    cd /usr/local/crashplan/bin
    Then issue the stop command...
    Code:
    ./CrashPlanEngine stop
    Cheesemill

  3. #3
    Join Date
    Apr 2013
    Location
    The great grey north
    Beans
    135
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: I need to stop a running service, then edit its run/conf file

    I dont't know if I'm doing something wrong, here's the result:
    Code:
    jlr@ub3:~$ cd /usr/local/crashplan/bin
    jlr@ub3:/usr/local/crashplan/bin$ ./CrashPlanEngine stop
    Stopping CrashPlan Engine ... Still running, killing PID=19807 ... 
    ./CrashPlanEngine: line 150: kill: (19807) - Operation not permitted
    OK
    jlr@ub3:/usr/local/crashplan/bin$
    DocJ

  4. #4
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: I need to stop a running service, then edit its run/conf file

    Sorry, you need to run the command with root privileges...
    Code:
    sudo ./CrashPlanEngine stop
    Cheesemill

  5. #5
    Join Date
    Apr 2013
    Location
    The great grey north
    Beans
    135
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: I need to stop a running service, then edit its run/conf file

    Code:
    Stopping CrashPlan Engine ... Still running, killing PID=21293 ... 
    OK

    Thanks !
    Now step2:
    I need to go to: /usr/local/crashplan/bin/run.conf and edit a number, when I try with Nautilus I get a message its read only and I can't edit it. What do I type on the terminal to edit?

    PS: Is it stopped for good (until I restart it only same way but with start instead of stop), or just rebooting would restart it, as far as you know?
    Last edited by docJ; April 20th, 2013 at 04:28 PM.
    DocJ

  6. #6
    Join Date
    Apr 2013
    Location
    The great grey north
    Beans
    135
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: I need to stop a running service, then edit its run/conf file

    OK, I managed by going gksudo nautilus, I was then able to edit the file.
    I will restart the service and see if I got rid of my program error...
    DocJ

  7. #7
    Join Date
    Apr 2013
    Location
    The great grey north
    Beans
    135
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: I need to stop a running service, then edit its run/conf file

    I think doing it with gksudo was not good, I now have an edited run.conf file and next to it a run.conf.save that seems a copy of the original unedited file
    DocJ

  8. #8
    Join Date
    Apr 2013
    Location
    The great grey north
    Beans
    135
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: I need to stop a running service, then edit its run/conf file

    I compared the files, they were identical but for the single edited number (and file name)
    I have deleted the (copy) run.conf.save and all is well

    Thanks for now, I have to increase number a bit, try again, if no joy: increase a bit again and try again, and so on...
    DocJ

Bookmarks

Posting Permissions

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