shell script - resque
Kaushal Shriyan
kaushalshriyan at gmail.com
Mon May 31 13:26:49 UTC 2010
1. Hi,
The below init scripts work fine while running it by hand but does not
come up after booting up. I have ran update-rc.d resque defaults on
Ubuntu Hardy Server (8.04)
Please suggest/guide.
1.
2. #!/bin/bash
3. # Startup script for Resque Server
4.
5. start_resque=/usr/local/AddressBook/EntAddressBookDataStore/current/resque_cluster_start.sh
6. stop_resque=/usr/local/AddressBook/EntAddressBookDataStore/current/resque_cluster_stop.sh
7.
8. start() {
9. echo -n "Starting ResqueServer: "
10.
${start_resque}
11. echo "done."
12. }
13.
stop() {
14. echo -n "Shutting down ResqueServer: "
15.
${stop_resque}
16. echo "done."
17. }
18.
19. # See how we were called
20. case "$1" in
21.
start)
22. start
23. ;;
24.
stop)
25. stop
26. ;;
27.
restart)
28. stop
29. sleep 10
30.
start
31. ;;
32. *)
33.
echo "Usage: $0 {start|stop|restart}"
34. esac
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20100531/6ee1d460/attachment.html>
More information about the ubuntu-users
mailing list