Difference between revisions of "Novacomd Init Script"
Jump to navigation
Jump to search
Loudergood (talk | contribs) (Replaced content with 'See http://www.webos-internals.org/wiki/Accessing_Linux_Debian') |
PuffTheMagic (talk | contribs) (Do not remove this entry) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | + | <source lang="bash"> | |
| + | #!/sbin/runscript | ||
| + | |||
| + | start() { | ||
| + | ebegin "Starting novacomd" | ||
| + | start-stop-daemon --start --background --exec /opt/Palm/novacom/novacomd | ||
| + | result=$? | ||
| + | eend $result | ||
| + | } | ||
| + | |||
| + | stop() { | ||
| + | ebegin "Stopping novacomd" | ||
| + | start-stop-daemon --stop --quiet --exec /opt/Palm/novacom/novacomd | ||
| + | result=$? | ||
| + | eend $result | ||
| + | } | ||
| + | </source> | ||
Latest revision as of 22:18, 10 March 2011
<source lang="bash">
- !/sbin/runscript
start() {
ebegin "Starting novacomd"
start-stop-daemon --start --background --exec /opt/Palm/novacom/novacomd
result=$?
eend $result
}
stop() {
ebegin "Stopping novacomd"
start-stop-daemon --stop --quiet --exec /opt/Palm/novacom/novacomd
result=$?
eend $result
} </source>