You could leave the service install alone, and just set to not start the service at boot:
Create file /etc/default/fahclient with one line:
You can then manually start and stop the service with the usual commands.
If you need to start the service with extra args passed to the client, you need to use '--'. eg
Code: Select all
sudo /etc/init.d/FAHClient start -- --finish
You can also start without options, and use
But it is probably better to just use FAHControl (which you can use remotely).
Edit: you might also want to add pause-on-start true to the client config.xml
Edit2: note that if you use --finish, the client will exit after uploading but the client will immediately respawn and get more work if you don't have pause-on-start. (because service starts client with --daemon)