Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (36 sloc) 0.459 kB
#!/bin/sh
# Example on-master-start script
# Source function library.
. /etc/init.d/functions
start() {
echo -n $"Assuming role of master: "
touch /tmp/master
echo -n $"OK"
success $"OK"
echo
return 0
}
stop() {
echo -n $"Dropping role of master: "
rm -f /tmp/master
echo
return 0
}
restart() {
stop
start
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
*)
echo $"Usage: $0 {start|stop|restart}"
exit 1
esac
Jump to Line
Something went wrong with that request. Please try again.