How do I create Unix (Linux actually) Services? Does creating them also start them. Do they get automatically (stopped) and uninstalled?

Thanks.

asked 11 Feb '13, 17:56

Jeff%20Melnick's gravatar image

Jeff Melnick
11101012
accept rate: 0%


The services on Linux can be created using <addUnixService> action, which takes the specified <program>, which should be an init.d-type script, puts it in /etc/init.d directory (or appropriate for current distribution) and runs the appropriate tools to create symlinks in /etc/rcX.d directories.

The service has to be started and stopped manually - such using the <runProgram> action to invoke the service command to start the service.

As for uninstallation, the <removeUnixService> action allows removing the action created by <addUnixService>. The service should first be stopped, which can also be done using the <runProgram> action to invoke the service command.

The uninstallation action should be put in <preUninstallationActionList>.

link

answered 11 Feb '13, 21:30

wojciechka's gravatar image

wojciechka ♦♦
7.8k61122
accept rate: 26%

That's pretty much what I had thought. It just doesn't seem to work for me. I'm getting an "Unknown error running post-install step" warning from everyone of my <addunixservice> actions.

I'm putting the <addunixservice> actions into a Post-install action list. Is the not the correct place to put these?

What types of issues might be causing this? Is there a way to get more (debugging) information about what the problem is? I don't really see any additional information in the log file.

link

answered 15 Feb '13, 14:00

Jeff%20Melnick's gravatar image

Jeff Melnick
11101012
accept rate: 0%

Can you run the installer with --debugtrace debug.txt and send us the debug.txt file to support@bitrock.com? For example:

$ ./installer.run --debugtrace debug.txt

Can you also send your XML code and the script you pass as <program>?

(15 Feb '13, 14:04) wojciechka ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×18
×8

Asked: 11 Feb '13, 17:56

Seen: 1,346 times

Last updated: 15 Feb '13, 14:04