Create a service in /etc/init.d

For example, a rp-pppoe service
#!/sbin/runscript

depend() {
need net
}

start() {
ebegin "Starting ADSL"
/usr/sbin/pppoe-start
eend $? "Connection Failed"
}

stop() {
ebegin "Stopping ADSL"
/usr/sbin/pppoe-stop
eend $? "Failed to stop ADSL"
}
Place this in /etc/init.d and use it as other Services!Many apps can be used like this!

0 comments:

Post a Comment

| More

Twitter Updates