no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | tech:linux:startup_script_for_shellinabox [2014/11/15 15:13] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Start up script for Shell in a Box ====== | ||
| + | This is running on Ubuntu 12.04 | ||
| + | <code bash> | ||
| + | #!/bin/sh | ||
| + | # Start/stop the shellinaboxd daemon. | ||
| + | # | ||
| + | ### BEGIN INIT INFO | ||
| + | # Provides: | ||
| + | # Required-Start: | ||
| + | # Required-Stop: | ||
| + | # Default-Start: | ||
| + | # Default-Stop: | ||
| + | # Short-Description: | ||
| + | # Description: | ||
| + | # command line tools to a web based terminal emulator. This emulator | ||
| + | # is accessible to any JavaScript and CSS enabled web browser and | ||
| + | # does not require any additional browser plugins | ||
| + | ### END INIT INFO | ||
| + | |||
| + | test -f / | ||
| + | |||
| + | . / | ||
| + | |||
| + | case " | ||
| + | start) | ||
| + | / | ||
| + | log_end_msg $? | ||
| + | ;; | ||
| + | stop) log_daemon_msg " | ||
| + | kill -9 $(cat / | ||
| + | rm / | ||
| + | log_end_msg $? | ||
| + | ;; | ||
| + | restart) log_daemon_msg " | ||
| + | kill -9 $(cat / | ||
| + | rm / | ||
| + | / | ||
| + | | ||
| + | ;; | ||
| + | *) log_action_msg " | ||
| + | exit 2 | ||
| + | ;; | ||
| + | esac | ||
| + | exit 0 | ||
| + | </ | ||