mirror of
https://github.com/rclone/rclone.git
synced 2025-02-24 06:58:40 +08:00

The latter is more portable, while the former only works on systems where /bin/bash exists (or is symlinked appropriately).
18 lines
165 B
Bash
18 lines
165 B
Bash
#!/usr/bin/env bash
|
|
|
|
case "$1" in
|
|
start)
|
|
start
|
|
;;
|
|
stop)
|
|
stop
|
|
;;
|
|
status)
|
|
status
|
|
;;
|
|
*)
|
|
echo "usage: $0 start|stop|status" >&2
|
|
exit 1
|
|
;;
|
|
esac
|