Installing The Application To Start on Reboot

Introduced in version 3.4.0, the script provides a way to embed the wrapper (and finally your application).
The script will automatically detect your OS - on Linux plattforms also some distributions - and perform the steps necessary to install the wrapper script into the initialization process of your OS.

$ sudo bin/testwrapper install
[sudo] password for tanuki:
Detected Ubuntu:
Installing service testwrapper from current directory /home/tanuki/wrapper/bin
Adding system startup for /etc/init.d/testwrapper ...
...

As the script installs itself into your OS, it is necessary to run the install (and uninstall) option as user root!

For freebsd and MacOSX users the script provides a default configuration file how launchd or initd will handle the script during the boot process. However it is possible to customize this step.

If you wish to uninstall/remove the wrapper from the system initialization run the script (as root!) passing the action parameter "remove". This will first stop the running wrapper application and finally clean itself from initialization.

$ sudo bin/testwrapper remove
[sudo] password for tanuki:
Stopping Test Wrapper Sample Application...
Stopped Test Wrapper Sample Application.
Detected Ubuntu:
Removing service testwrapper from current directory /home/tanuki/wrapper/bin
...