I would like to install services into init.d folder in most standard way. Suppose I have script which should be run under specific user and starts the service (tomcat8 good example)


another script


Now I want to install this as init.d startup scripts so I can /etc/init.d.seviceFoo start|stop|restart. It would be nice if the service would get killed after some time refusing to stop by issuing stop command. It would be even nicer if i can do it by running simple command like

installService user startScript stopScript

Is there something like that in ubuntu ? something like brand new sysv-rc-conf with add button ?


I think you're looking for upstart. Look specifically at the setuid command.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.