I'm developing a system service in Java, and for the deployment I would like to do the following:
- Copy over the new Initd from the build
- Stop the service being deployed
- Overwrite/copy the new JAR/config example
- Start up the service.
Is there a way that I can do this without giving root access to jenkins? [For those non-jenkins folk: Jenkins uses SCP & SSH to do the copying and command sending] My concern is that if I give Jenkins root access that you're not limiting the permissions given. The scope of this is to only limit the change to that one service. (It doesn't depend on other services)
I'm willing to relax the first requirement as that it may make the solution more tricky.
/boot/initrd.img-whatever
? – derobert Oct 16 '15 at 17:51