Home General Computer Multimedia Business Lounge
|
Solved Gammu Auto start up ubuntu
|
|
05-16-2011, 06:37 PM
(This post was last modified: 03-23-2012 06:15 PM by anbu.)
|
|||
|
|||
|
Gammu Auto start up ubuntu
om2 gmn caranya buat gammu smsd jalan pada saat start up
saya dpt scrip kya gni cuman.. mesti nyalain manual... gmn caranya nyalain pada saat booting.. tolong pencerahan bin="/usr/local/bin/gammu-smsd" configfile="/etc/smsdrc" pidfile="/var/run/gammu.pid" proc_name=`basename $0` PID=`cat $pidfile` function START_CMD { $bin -c $configfile -p $pidfile -d if [ "$?" != "0" ];then echo "ERROR - gammu did not start!" fi } function STATUS { PID=`cat $pidfile` if [ -n "$PID" ] ; then echo "$proc_name running PID: $PID" else echo "$proc_name not running" fi } # See how we were called. case "$1" in start) if [ -n "$PID" ]; then if [ "`ps -p "$PID" -o comm=`" = "" ]; then START_CMD STATUS else echo "Error - $proc_name already running!" STATUS fi else START_CMD STATUS fi ;; status) STATUS ;; stop) if [ -n "$PID" ] ; then echo "$proc_name stopping PID: $PID" kill $PID sleep 1 echo "" > $pidfile echo "$proc_name stopped" fi ;; restart|reload) $0 stop $0 start ;; *) echo $"Usage: $0 {start|stop|restart|reload|status}" exit 1 esac exit 0 kalo pake ini tinggl jalanin manual aja #/etc/init.d/gammusmsd start ato #/etc/init.d/gammusmsd restart buat matikan #/etc/init.d/gammusmsd stop tapi gmn cranya buat auto start daeomon nya pada saat startup.. |
|||
|
05-17-2011, 11:03 AM
|
|||
|
|||
|
RE: Gammu Auto start up ubuntu
ga tau deh gan..
kali aja bawah ane bisa bantu ... |
|||
|
05-17-2011, 07:29 PM
|
|||
|
|||
| RE: Gammu Auto start up ubuntu | |||
|
06-11-2011, 11:47 PM
|
|||
|
|||
|
RE: Gammu Auto start up ubuntu
taro di rc.local
caranya masuk ke filenya dan edit n masukin script itu.. Code: #nano /etc/rc.localcopas deh tu script di situ ..jadi tiap kita restart ... sistem bakal ngreload lagi script itu waktu pertama kali bootng kaya startup
|
|||
|
01-09-2012, 10:35 AM
|
|||
|
|||
RE: Gammu Auto start up ubuntu
(06-11-2011 11:47 PM)easy2study Wrote: taro di rc.local => mirip kyk run-nya windows di regedit ya bro? |
|||
|
01-09-2012, 10:37 AM
|
|||
|
|||
RE: Gammu Auto start up ubuntu
(01-09-2012 10:35 AM)mas_ipin Wrote:(06-11-2011 11:47 PM)easy2study Wrote: taro di rc.local ![]() itu buat auto startup,kalo di windows kan ngaturnya via msconfig
|
|||
|
01-17-2012, 08:05 AM
|
|||
|
|||
|
RE: Gammu Auto start up ubuntu
yups..tul mas bro,ane juga menggunakan itu di linux hasilnya lumayan...
|
|||
|
« Next Oldest | Next Newest »
|
| Topic Tools | ||||||
| ||||||
| Possibly Related Threads... | |||||
| Thread: | Author | Replies: | Views: | Last Post | |
| [Tutor] Buat SMS Gateway dengan mesin SMS Gammu part 1 | ./ rex | 11 | 1,375 |
06-05-2013 07:40 PM Last Post: davidassa |
|
| Users Browsing |
| 1 Guest(s) |















